/* ==========================================================================
   LAVA XCOMMERCE — Styles
   Theme: Red / modern & dynamic. Responsive, one-page.
   ========================================================================== */

:root {
  --red:        #E4002B;
  --red-bright: #FF1E3C;
  --red-dark:   #A80020;
  --red-deep:   #6E0016;
  --ink:        #170609;
  --ink-2:      #2a1418;
  --paper:      #ffffff;
  --paper-2:    #fff5f6;
  --muted:      #6b5257;
  --line:       rgba(228, 0, 43, 0.14);
  --shadow:     0 20px 50px -20px rgba(168, 0, 32, 0.35);
  --shadow-sm:  0 8px 24px -12px rgba(168, 0, 32, 0.30);
  --radius:     20px;
  --container:  1160px;
  --font:       'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display:    'Sora', var(--font);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-weight: 700;
  font-size: .96rem;
  padding: .85em 1.5em;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(228, 0, 43, .8);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(228, 0, 43, .9); }
.btn-ghost {
  background: #fff;
  color: var(--red-dark);
  border-color: var(--red);
}
.btn-ghost:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.btn-nav {
  background: var(--red);
  color: #fff;
  padding: .6em 1.15em;
  font-size: .9rem;
}
.btn-nav:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 6px 24px -16px rgba(0, 0, 0, .4);
  padding: 8px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; }
.brand-logo {
  height: 46px; width: auto;
  background: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .35);
  transition: height .3s ease;
}
.site-header.scrolled .brand-logo { height: 40px; box-shadow: none; }
.brand-text, .footer-brand { display: flex; align-items: baseline; gap: 4px; font-family: var(--display); }
.brand-mark { font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; color: var(--red); }
.brand-sub  { font-weight: 700; font-size: .78rem; letter-spacing: .22em; color: var(--ink); text-transform: uppercase; }

/* Hero is now light, so the header uses dark text in both states. */

.nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-2);
  position: relative;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .25s ease;
}
.nav-link:hover { color: var(--red); }
.nav-link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 26px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, background .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  color: var(--ink);
  background:
    radial-gradient(80% 80% at 88% -5%, #ffe1e7 0%, rgba(255, 245, 246, 0) 55%),
    radial-gradient(70% 70% at 0% 100%, #ffeede 0%, rgba(255, 245, 246, 0) 50%),
    linear-gradient(180deg, #ffffff 0%, var(--paper-2) 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .22;
  animation: float 14s ease-in-out infinite;
}
.blob-1 { width: 460px; height: 460px; top: -120px; right: -60px; background: #ff5b6e; }
.blob-2 { width: 380px; height: 380px; bottom: -140px; left: -100px; background: #ff9d5b; opacity: .16; animation-delay: -5s; }
.grid-glow {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(228, 0, 43, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228, 0, 43, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 60% 25%, #000 0%, transparent 68%);
}
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-30px) translateX(20px); }
}

.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--red-dark);
  padding: .5em 1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero-title .grad {
  background: linear-gradient(90deg, var(--red-bright), var(--red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  max-width: 640px;
  color: var(--muted);
  margin-bottom: 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-pills li {
  font-size: .84rem;
  font-weight: 600;
  color: var(--red-dark);
  padding: .45em 1em;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* ---------- Section heads ---------- */
.section-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.tag {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--red);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.section-sub { color: var(--muted); font-size: 1.05rem; margin-top: 14px; }

/* ---------- Pillars intro ---------- */
.pillars { padding: 90px 0 0; background: var(--paper); }

/* ---------- Services ---------- */
.services { padding: 46px 0 100px; background: var(--paper); }
.services .container { display: grid; gap: 24px; }

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 26px;
  align-items: start;
  padding: 34px 34px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(var(--red-bright), var(--red-dark));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }

.service-index {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--red);
  opacity: .5;
  padding-top: 6px;
}
.service-icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  box-shadow: 0 12px 24px -12px rgba(228, 0, 43, .8);
}
.service-icon svg { width: 30px; height: 30px; }

.service-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.service-body p { color: var(--muted); max-width: 62ch; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li {
  font-size: .82rem;
  font-weight: 600;
  color: var(--red-dark);
  padding: .4em .9em;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.chips-flags li { color: var(--ink); }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--red-dark), var(--red-deep));
  color: #fff;
  text-align: center;
  padding: 74px 0;
}
.cta-inner h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}
.cta-inner p { color: rgba(255, 255, 255, .88); margin-bottom: 28px; font-size: 1.08rem; }

/* ---------- Contact ---------- */
.contact { padding: 100px 0; background: var(--paper-2); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.contact-card {
  text-align: center;
  padding: 40px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.contact-icon {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--red);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.contact-icon svg { width: 26px; height: 26px; }
.contact-card h3 { font-family: var(--display); font-size: 1.15rem; margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 54px 0 30px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px 40px;
  align-items: center;
}
.footer-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-logo {
  height: 56px; width: auto;
  background: #fff;
  padding: 8px 14px;
  border-radius: 12px;
}
.footer-company {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  color: #fff !important;
  width: 100%;
}
.footer-brand p { color: rgba(255, 255, 255, .6); font-size: .92rem; width: 100%; }
.footer-brand .footer-company + p { margin-top: 2px; }
.footer-nav { display: flex; gap: 26px; justify-content: flex-end; flex-wrap: wrap; }
.footer-nav a { color: rgba(255, 255, 255, .78); font-weight: 600; transition: color .2s ease; }
.footer-nav a:hover { color: #fff; }
.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 22px;
  color: rgba(255, 255, 255, .55);
  font-size: .88rem;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 92px 22px 28px;
    background: #fff;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .35);
    transform: translateY(-120%);
    transition: transform .35s ease;
    z-index: -1;
  }
  .nav.open { transform: translateY(0); }
  .site-header:not(.scrolled) .nav .nav-link { color: var(--ink-2); }
  .nav-link { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .btn-nav { margin-top: 12px; align-self: flex-start; }
}

@media (max-width: 720px) {
  .service-card {
    grid-template-columns: auto 1fr;
    gap: 16px 18px;
    padding: 26px 22px;
  }
  .service-index {
    grid-column: 1 / -1;
    order: -1;
    padding-top: 0;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-brand { align-items: center; text-align: center; }
}

@media (max-width: 420px) {
  .service-icon { width: 50px; height: 50px; }
  .service-icon svg { width: 24px; height: 24px; }
  .hero { padding-top: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
