/* ===== RabtCo Landing Page ===== */

:root {
  --teal: #42C4C9;
  --teal-dark: #339FA3;
  --teal-darker: #2A8286;
  --teal-tint: #E4F6F7;
  --teal-tint-2: #D9EBEC;
  --gray-900: #4A4A4A;
  --gray-800: #58595B;
  --gray-600: #6E6E6E;
  --gray-400: #9A9A9A;
  --gray-200: #E9E9E9;
  --gray-100: #F2F2F2;
  --white: #FFFFFF;

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(63, 64, 66, 0.08);
  --shadow-lg: 0 20px 50px rgba(63, 64, 66, 0.14);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

.accent { color: var(--teal); }

h1, h2, h3, h4 { color: var(--gray-800); font-weight: 700; line-height: 1.25; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(78, 199, 201, 0.35);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(78, 199, 201, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--gray-800);
  border-color: var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal-darker);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* ===== Top bar ===== */
.topbar {
  background: var(--gray-800);
  color: var(--white);
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  gap: 28px;
  padding: 8px 24px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar-inner::-webkit-scrollbar { display: none; }
.topbar-item { display: flex; align-items: center; gap: 6px; opacity: 0.9; white-space: nowrap; flex-shrink: 0; }
.topbar-item .icon {
  color: var(--teal);
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.topbar-item .icon svg { width: 100%; height: 100%; display: block; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-800);
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-800);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--teal-darker); }
.nav a:hover::after { width: 100%; }

.header-cta { margin-left: 20px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: var(--white);
}

.hero-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.shape {
  position: absolute;
  border: 46px solid var(--gray-100);
  border-radius: 50px;
}
.shape-1 { width: 340px; height: 340px; top: -90px; right: -60px; transform: rotate(8deg); }
.shape-2 { width: 220px; height: 220px; bottom: -60px; left: -80px; border-color: var(--teal-tint); transform: rotate(-12deg); }
.shape-3 { width: 140px; height: 140px; top: 45%; right: 8%; border-width: 24px; border-color: var(--gray-100); transform: rotate(20deg); }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-block;
  color: var(--teal-darker);
  background: var(--teal-tint);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 20px;
  color: var(--gray-900);
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  margin-bottom: 34px;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.8rem; color: var(--gray-900); }
.stat span { font-size: 0.85rem; color: var(--gray-600); }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-card {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--teal-tint), var(--white));
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  padding: 60px;
}
.hero-logo-card img { width: 100%; height: auto; }

/* ===== Section shared ===== */
.section { padding: 90px 0; }

.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-head.light h2 { color: var(--white); }

.tag {
  display: inline-block;
  color: var(--teal-darker);
  background: var(--teal-tint);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.tag-light { background: rgba(255,255,255,0.14); color: var(--white); }

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-sub { color: var(--gray-600); margin-top: 14px; }
.section-head.light .section-sub { color: rgba(255,255,255,0.85); }

/* ===== About ===== */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.about-quote {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 44px 36px;
  position: relative;
}
.quote-mark {
  font-size: 4rem;
  color: var(--teal);
  line-height: 1;
  font-weight: 800;
  display: block;
  margin-bottom: 10px;
}
.about-quote p { color: var(--gray-800); font-size: 1rem; }
.quote-author {
  display: block;
  margin-top: 18px;
  font-weight: 600;
  color: var(--teal-darker);
  font-size: 0.9rem;
}

.about-cards {
  display: grid;
  gap: 20px;
}
.about-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 22px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.about-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.about-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.about-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.about-card p { color: var(--gray-600); font-size: 0.92rem; }

/* ===== Services ===== */
.services { background: var(--gray-100); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-tint);
}
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; color: var(--gray-600); }

/* ===== Systems we work with ===== */
.systems { background: var(--white); }

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.systems-category {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.systems-category h3 {
  font-size: 1.02rem;
  margin-bottom: 16px;
  color: var(--teal-darker);
}
.systems-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.systems-tags span {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-800);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
}

/* ===== Why choose us ===== */
.why {
  background: linear-gradient(135deg, var(--teal-darker), var(--teal));
  position: relative;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.value-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  color: var(--white);
  backdrop-filter: blur(4px);
  transition: background 0.25s ease, transform 0.25s ease;
}
.value-card:hover { background: rgba(255,255,255,0.18); transform: translateY(-4px); }
.value-icon { font-size: 2rem; margin-bottom: 14px; }
.value-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.value-card p { font-size: 0.85rem; color: rgba(255,255,255,0.85); }

/* ===== Partners ===== */
.partners { background: var(--white); }

.partners-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
.partner-card {
  flex-shrink: 0;
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 14px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.partner-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--teal-tint-2);
}
.partner-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.partner-card span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Contact ===== */
.contact { background: var(--gray-100); }

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--gray-600); margin-bottom: 30px; max-width: 480px; }

.contact-list { display: grid; gap: 18px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item span { display: block; font-size: 0.78rem; color: var(--gray-400); }
.contact-item strong { font-size: 0.98rem; color: var(--gray-800); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.contact-form h3 { margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-note { font-size: 0.85rem; color: var(--teal-darker); min-height: 1em; text-align: center; }
.form-note.error { color: #C0392B; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ===== Footer ===== */
.footer { background: var(--gray-900); color: rgba(255,255,255,0.75); padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; max-width: 280px; color: rgba(255,255,255,0.6); }

.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  font-size: 0.82rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

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

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 280px; margin: 0 auto 30px; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .systems-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header { backdrop-filter: none; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    background: var(--white);
    flex-direction: column;
    padding: 100px 30px;
    gap: 24px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .nav.open { transform: translateX(0); }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }
}

@media (max-width: 760px) {
  .topbar-item:nth-child(3) { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .systems-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 60px; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}

body.menu-open { overflow: hidden; }

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
