/* ==========================================================================
   Ripar Technologies — main stylesheet
   ========================================================================== */

:root {
  --bg: #f7f9fc;
  --bg-alt: #eef2f9;
  --bg-card: #ffffff;
  --border: #dfe6f1;

  --navy: #10233d;
  --blue: #1c6dd0;
  --cyan: #29b6f6;
  --orange: #f7941d;
  --gold: #ffb400;

  --gradient-brand: linear-gradient(120deg, var(--blue), var(--cyan) 45%, var(--orange) 75%, var(--gold));
  --gradient-text: linear-gradient(90deg, var(--navy), var(--blue) 45%, var(--orange) 100%);

  --text: #16283f;
  --text-muted: #56657c;
  --text-dim: #8b96a8;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px -20px rgba(28, 109, 208, 0.28);
  --container: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(28, 109, 208, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -16px rgba(247, 148, 29, 0.45); }

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(28, 109, 208, 0.03);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  height: 42px;
  width: 42px;
  object-fit: cover;
  border-radius: 10px;
}

.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name b { font-size: 1.05rem; letter-spacing: 0.01em; }
.brand-name span { font-size: 0.65rem; letter-spacing: 0.28em; color: var(--text-dim); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 190px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(28, 109, 208, 0.18), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -220px;
  left: -160px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(247, 148, 29, 0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(28, 109, 208, 0.05);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}

.hero-stats div b {
  display: block;
  font-size: 1.7rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats div span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual .glow-card {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-visual .glow-card img {
  width: 78%;
  border-radius: 16px;
  filter: drop-shadow(0 20px 40px rgba(28, 109, 208, 0.25));
}

.hero-visual .float-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px -10px rgba(16, 35, 61, 0.18);
}
.float-chip b { color: var(--text); font-size: 0.85rem; }
.chip-1 { top: 8%; left: -6%; }
.chip-2 { bottom: 10%; right: -8%; }

/* ---------- Logo strip ---------- */
.logo-strip {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logo-strip p {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.logo-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(28, 109, 208, 0.35);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.4rem;
}

.card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}

/* ---------- Alt section bg ---------- */
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.step .num {
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.5;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.testimonial p.quote {
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 22px;
}
.testimonial .who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy);
}
.testimonial .who b { display: block; font-size: 0.92rem; }
.testimonial .who span { font-size: 0.78rem; color: var(--text-dim); }
.stars { color: var(--blue); margin-bottom: 14px; letter-spacing: 2px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: 24px;
  padding: 64px;
  background: linear-gradient(135deg, rgba(28,109,208,0.10), rgba(247,148,29,0.10));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 520px; }
.cta-banner p { color: var(--text-muted); margin-top: 10px; max-width: 480px; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 170px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(28, 109, 208, 0.18), transparent 70%);
  pointer-events: none;
}
.page-header h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 16px;
  position: relative;
}
.page-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 18px;
  position: relative;
}
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--blue); }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-grid img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.value-list { display: grid; gap: 18px; margin-top: 10px; }
.value-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-muted);
}
.value-list li b { color: var(--text); display: block; margin-bottom: 4px; }
.value-list .tick {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--gradient-brand);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
}

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  background: var(--bg-card);
}
.team-card .avatar-lg {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
}
.team-card b { display: block; margin-bottom: 4px; }
.team-card span { font-size: 0.82rem; color: var(--text-dim); }

/* ---------- Services page ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse .sd-text { order: 2; }
.service-detail.reverse .sd-visual { order: 1; }
.sd-visual {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.sd-text .tag-num {
  font-size: 0.8rem;
  color: var(--blue);
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 14px;
}
.sd-text h2 { font-size: 1.7rem; margin-bottom: 16px; }
.sd-text p { color: var(--text-muted); margin-bottom: 20px; }
.sd-list { display: grid; gap: 10px; }
.sd-list li { display: flex; gap: 10px; color: var(--text-muted); font-size: 0.92rem; align-items: center; }
.sd-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
  flex-shrink: 0;
}

/* ---------- Success Stories ---------- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--gradient-brand);
  color: var(--navy);
  border-color: transparent;
  font-weight: 600;
}
.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.project-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(28,109,208,0.16), rgba(247,148,29,0.16));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  border-bottom: 1px solid var(--border);
}
.project-body { padding: 26px; }
.project-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-weight: 700;
}
.project-body h3 { margin: 10px 0; font-size: 1.1rem; }
.project-body p { color: var(--text-muted); font-size: 0.9rem; }
.project-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---------- Careers ---------- */
.perk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.job-list { display: grid; gap: 16px; }
.job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  flex-wrap: wrap;
  gap: 16px;
}
.job-row h3 { font-size: 1.05rem; margin-bottom: 8px; }
.job-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-dim); }
.job-meta span { display: flex; align-items: center; gap: 6px; }
.badge {
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: flex-start;
}
.contact-info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 34px;
  display: grid;
  gap: 26px;
}
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-info-item b { display: block; margin-bottom: 4px; }
.contact-info-item span, .contact-info-item a { color: var(--text-muted); font-size: 0.92rem; }

.social-row { display: flex; gap: 12px; margin-top: 6px; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.social-row a:hover { background: var(--gradient-brand); color: var(--navy); border-color: transparent; }

.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: grid; gap: 8px; margin-bottom: 20px; }
.form-group label { font-size: 0.85rem; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: #f5f8fc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--text-dim); margin-top: 14px; text-align: center; }
.form-success {
  display: none;
  background: rgba(247, 148, 29, 0.12);
  border: 1px solid var(--gold);
  color: var(--text);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.form-success.show { display: block; }

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 50px;
}
.map-frame iframe { width: 100%; height: 380px; border: 0; filter: grayscale(0.3) contrast(1.02); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin: 18px 0 22px; max-width: 300px; }
.footer-col h4 { font-size: 0.92rem; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid, .service-detail, .service-detail.reverse {
    grid-template-columns: 1fr;
  }
  .service-detail.reverse .sd-text,
  .service-detail.reverse .sd-visual { order: unset; }
  .grid-3, .grid-4, .steps, .team-grid, .perk-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { order: -1; }
}

@media (max-width: 760px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    padding: 26px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .grid-3, .grid-4, .grid-2, .steps, .team-grid, .perk-grid, .footer-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 26px; }
  section { padding: 70px 0; }
  .hero { padding: 150px 0 80px; }
  .page-header { padding: 140px 0 60px; }
  .job-row { flex-direction: column; align-items: flex-start; }
}
