:root {
  --bg: #e7e7e7;
  --bg-alt: #e7e7e7;
  --card: #ffffff;
  --accent: #7b2d2a;
  --accent-soft: rgba(123, 45, 42, 0.12);
  --text-main: #1c1c1c;
  --text-muted: #555555;
  --border-subtle: #d4d4d4;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.12);
  --transition-fast: 0.25s ease;
  --transition-med: 0.35s cubic-bezier(0.33, 0.85, 0.56, 1.02);
  --section-padding: 72px;
  --container-width: 1100px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, Inter,
    "SF Pro Text", sans-serif;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* adjust to your header height */

}

body {
  font-family: var(--font-sans);
  background: url("bg.png") no-repeat center center fixed;
  background-size: cover;
  color: var(--text-main);
}

/* remove section-alt gradient so it blends */
.section-alt {
  background: transparent;
}

/* keep the nice card look just on the box */
.about-box {
  background: #ffffff;
}

/* Layout */
.section {
  padding: var(--section-padding) 16px;
}

.container {
  margin: 0 auto;
  max-width: var(--container-width);
}

/* HEADER + PILL NAVBAR */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: transparent;
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.header.active {
  background: rgba(231, 231, 231, 0.96);
  border-bottom-color: rgba(200, 200, 200, 0.9);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 16px;
}

.brand-logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-bar-pill {
  flex: 1;
  max-width: 760px;
  padding: 6px 10px;
  background: #7b2d2a;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: #f9fafb;
  margin-left: auto;
}

.nav-pill-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.85rem;
}

.nav-pill-links a {
  color: #fcefee;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-pill-links a:hover {
  color: #ffffff;
}

.nav-email-pill {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #1c1c1c;
  font-size: 0.8rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

/* base */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #f9fafb;
  font-size: 1.2rem;
  cursor: pointer;
}

/* HERO */
.hero {
  padding-top: 120px;
  opacity: 0;
  transform: translateY(8px);
  animation: heroFadeIn 0.6s ease-out forwards;
  animation-delay: 0.1s;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-grid > div:first-child {
  max-width: 540px;
}

.eyebrow {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 16px;
  color: #1c1c1c;
}

.hero-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  text-decoration: none;
}

.btn.primary {
  background: #7b2d2a;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(123, 45, 42, 0.35);
  color: var(--text-main);
}

.btn.ghost:hover {
  border-color: rgba(123, 45, 42, 0.9);
  animation:cubic-bezier(0.895, 0.03, 0.685, 0.22);
  color: var(--accent);
}

.w-full {
  width: 100%;
}

/* Hero card */
.hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
  max-width: 360px;
  margin-left: auto;
}

.hero-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding: 6px 0;
  color: var(--text-main);
}

.hero-card-row span:first-child {
  color: var(--text-muted);
}

.service-icon {
  width: 60px;
  margin-bottom: 10px;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.35));
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(123, 45, 42, 0.08);
  color: #7b2d2a;
  font-size: 0.7rem;
}

.hero-graph-wrapper {
  margin: 10px 0;
}

/* hero graph subtle animated gradient */
.hero-graph {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 68px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    rgba(123, 45, 42, 0.18),
    rgba(123, 45, 42, 0.28),
    rgba(123, 45, 42, 0.4)
  );
  background-size: 200% 100%;
  animation: heroGradientShift 8s ease-in-out infinite;
}

@keyframes heroGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-graph-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.hero-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Sections / cards */
.section-title {
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: #1c1c1c;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 520px;
}

/* Infinite scrolling cards container */
.cards-scroller {
  position: relative;
  overflow: hidden;
  margin-top: 26px;
}

.cards-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: cardsInfiniteScroll 22s linear infinite;
}

@keyframes cardsInfiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* individual cards reused inside track */
.card {
  width: 320px;              /* fixed, narrower width */
  min-width: 320px;          /* keep same as width for scroll track */
  height: 250px;             /* increase height to your liking */
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 20px 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.16);
  border-color: rgba(123, 45, 42, 0.35);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #7b2d2a;
}

.card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* About */
.about-grid {
  display: grid;
  gap: 26px;
  align-items: flex-start;
}

.steps {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.steps li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.steps span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(123, 45, 42, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--accent);
  flex-shrink: 0;
  background: #fbeeee;
}

.about-box {
  padding: 18px 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.about-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.16);
  border-color: rgba(123, 45, 42, 0.35);
}

.about-box h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #7b2d2a;
}

.about-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 26px;
  align-items: flex-start;
}

.contact-cards {
  margin-top: 20px;
  margin-bottom: 18px;
  display: grid;
  gap: 12px;
}

.contact-pill {
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid rgba(150, 150, 150, 0.85);
  background: linear-gradient(to right, #ffffff, #f5f5f5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.contact-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.16);
  border-color: rgba(123, 45, 42, 0.35);
}

.contact-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.contact-pill .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #7b2d2a;
}

.contact-pill a {
  font-size: 0.88rem;
  color: #1c1c1c;
  text-decoration: none;
  word-break: break-all;
}

.contact-pill a:hover {
  color: var(--accent);
}

/* Contact form */
.contact-form {
  padding: 20px 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  max-width: 520px;
  margin-left: auto;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: #1c1c1c;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(150, 150, 150, 0.9);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #999999;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(123, 45, 42, 0.35);
  background: #ffffff;
}

/* Inline rows for desktop, stacked on mobile */
.form-row-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Go to top */
.go-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: #7b2d2a;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
  z-index: 45;
}

.go-top.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 80px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #7b2d2a;
  box-shadow: 0 16px 40px rgba(32, 86, 51, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 50;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 55px rgba(32, 86, 51, 0.75);
  background: #7b2d2a;
}

.wa-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* Slide-in animation – refined */
.slide-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

.slide-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
/* Desktop+ */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .section {
    padding: 48px 14px;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .brand-logo img {
    height: 46px;
  }

  .nav-bar-pill {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 4px 8px;
    border-radius: 999px;
    gap: 10px;
    justify-content: space-between;
  }

  .nav-pill-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    font-size: 0.78rem;
  }

  .nav-pill-links li {
    white-space: nowrap;
  }

  .nav-email-pill {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .hero-card {
    max-width: 100%;
    margin: 18px 0 0;
  }

  .contact-form {
    max-width: 100%;
    margin-left: 0;
  }

  .form-row-inline {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 76px;
    width: 40px;
    height: 40px;
  }

  .go-top {
    right: 12px;
    bottom: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-pill-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #7b2d2a;
    gap: 12px;
    justify-content: space-around;
  }

  .nav-pill-links.is-open {
    display: flex;
  }
}
