/* =============================================
   LOOPLN — services.css
   ============================================= */

/* =============================================
   SERVICES HERO
   ============================================= */

.sv-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--white);
  padding: calc(var(--nav-h) + 48px) 44px 100px;
}

.sv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.sv-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 180px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,80 C360,160 720,20 1080,100 C1260,140 1380,60 1440,80' fill='none' stroke='%23c8f135' stroke-width='1.2' opacity='0.45'/%3E%3Cpath d='M0,130 C300,90 600,160 900,120 C1100,95 1300,145 1440,110' fill='none' stroke='%23c8f135' stroke-width='0.7' opacity='0.28'/%3E%3C/svg%3E") no-repeat bottom center / 100%;
  pointer-events: none;
  z-index: 1;
}

.sv-hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.sv-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.sv-hero-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.sv-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
  color: var(--black);
  margin-bottom: 32px;
}

.sv-hero-headline em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 2px var(--black);
  position: relative;
}

.sv-hero-headline em::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 3px;
  background: var(--lime);
  border-radius: 2px;
}

.sv-hero-sub {
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 500;
  color: rgba(0,0,0,0.42);
  line-height: 1.65;
  margin-bottom: 40px;
}

.sv-hero-cta { align-self: flex-start; }

.sv-hero-scroll {
  position: absolute;
  right: 44px; bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

/* =============================================
   SERVICES ACCORDION LIST
   ============================================= */

.sv-list {
  padding: 120px 44px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.sv-item {
  border-bottom: 1px solid rgba(0,0,0,0.07);
  overflow: hidden;
}

.sv-item:first-of-type { border-top: 1px solid rgba(0,0,0,0.07); }

.sv-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  cursor: pointer;
  gap: 16px;
}

.sv-item-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.sv-index {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lime);
  flex-shrink: 0;
  width: 28px;
}

.sv-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--black);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.28s;
}

.sv-item.open .sv-item-icon { background: var(--lime); color: var(--black); }

.sv-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--black);
  transition: color 0.28s;
}

.sv-item:hover .sv-name { color: rgba(0,0,0,0.7); }
.sv-item.open   .sv-name { color: var(--black); }

.sv-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.1) !important;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, transform 0.35s var(--ease);
  outline: none;
}

.sv-item.open .sv-toggle {
  background: var(--lime) !important;
  border-color: var(--lime) !important;
  transform: rotate(180deg);
}

/* Accordion body */
.sv-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1), padding 0.4s ease;
  padding: 0 0 0 88px; /* align with name */
}

.sv-item.open .sv-item-body {
  max-height: 500px;
  padding: 0 0 36px 88px;
}

.sv-desc {
  font-size: 15px;
  color: rgba(0,0,0,0.58);
  line-height: 1.82;
  margin-bottom: 16px;
}

.sv-desc:last-of-type { margin-bottom: 24px; }

.sv-includes { display: flex; flex-direction: column; gap: 10px; }

.sv-includes-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.sv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sv-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 100px;
  padding: 5px 13px;
  transition: background 0.22s, border-color 0.22s;
}

.sv-tags span:hover {
  background: var(--lime-bg);
  border-color: var(--lime);
}

/* =============================================
   INCLUDED IN EVERY PROJECT
   ============================================= */

.sv-included {
  padding: 120px 44px;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: var(--white);
}

.sv-included .section-label { color: rgba(0,0,0,0.38); }
.sv-included .label-num     { color: var(--lime); }

.sv-included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.sv-inc-item {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 36px;
  border: none;
  transition: transform 0.35s var(--ease);
}

.sv-inc-item::before {
  content: '';
  position: absolute;
  inset: 10px 12px 10px 0;
  z-index: -2;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 2px;
  background: rgba(200,241,53,0.14);
  box-shadow: 0 14px 26px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 0 100%);
  transform: rotate(-1deg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
}

.sv-inc-item::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  width: 54px;
  height: 14px;
  z-index: -1;
  border-radius: 1px;
  background: rgba(255,255,255,0.46);
  transform: translateX(-50%) rotate(-2deg);
}

.sv-inc-item:nth-child(2)::before { background: rgba(226,224,255,0.54); transform: rotate(1deg); }
.sv-inc-item:nth-child(3)::before { background: rgba(216,241,235,0.58); transform: rotate(-0.7deg); }
.sv-inc-item:nth-child(4)::before { background: rgba(255,235,205,0.58); transform: rotate(1.2deg); }
.sv-inc-item:nth-child(5)::before { background: rgba(235,232,255,0.58); transform: rotate(-1deg); }
.sv-inc-item:nth-child(6)::before { background: rgba(224,241,214,0.58); transform: rotate(0.8deg); }

.sv-inc-item > * { position: relative; z-index: 1; }
.sv-inc-item:hover { transform: translateY(-4px); }
.sv-inc-item:hover::before { background: rgba(200,241,53,0.2); box-shadow: 0 20px 34px rgba(0,0,0,0.1), 0 3px 6px rgba(0,0,0,0.05); }

.sv-inc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(200,241,53,0.1);
  border: 1px solid rgba(200,241,53,0.2);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sv-inc-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
}

.sv-inc-desc {
  font-size: 13px;
  color: rgba(0,0,0,0.5);
  line-height: 1.72;
}

/* =============================================
   FAQ
   ============================================= */

.sv-faq {
  padding: 120px 44px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.sv-faq-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sv-faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.sv-faq-item:first-child { border-top: 1px solid rgba(0,0,0,0.07); }

.sv-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  gap: 16px;
  text-align: left;
  background: transparent !important;
  border: none !important;
  outline: none;
  transition: color 0.22s;
}

.sv-faq-q span {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
  transition: color 0.22s;
}

.sv-faq-item.open .sv-faq-q span { color: var(--black); }

.faq-arrow {
  flex-shrink: 0;
  color: var(--gray);
  transition: transform 0.35s var(--ease), color 0.22s;
}

.sv-faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--lime);
}

.sv-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1), padding 0.35s ease;
  padding: 0;
}

.sv-faq-item.open .sv-faq-a {
  max-height: 300px;
  padding-bottom: 28px;
}

.sv-faq-a p {
  font-size: 15px;
  color: rgba(0,0,0,0.55);
  line-height: 1.82;
}

/* =============================================
   SERVICES CTA
   ============================================= */

.sv-cta {
  position: relative;
  padding: 180px 44px;
  background: var(--white);
  text-align: center;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.sv-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 2px;
  background: var(--lime);
}

.sv-cta-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.sv-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sv-cta-btns {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.sv-cta-sec {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.24s;
}

.sv-cta-sec span {
  display: inline-block;
  transition: transform 0.28s var(--ease);
}

.sv-cta-sec:hover { color: var(--black); }
.sv-cta-sec:hover span { transform: translate(2px,-2px); }

/* Active menu link */
.menu-link--active { color: rgba(255,255,255,0.5) !important; }
.menu-link--active:hover { color: var(--white) !important; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 960px) {
  .sv-included-grid { grid-template-columns: repeat(2, 1fr); }
  .sv-inc-item { border: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .sv-hero {
    padding: calc(var(--nav-h) + 32px) 24px 80px;
    min-height: 100svh;
  }
  .sv-hero-scroll { display: none; }

  .sv-list     { padding: 80px 24px; }
  .sv-included { padding: 80px 24px; }
  .sv-faq      { padding: 80px 24px; }
  .sv-cta      { padding: 120px 24px; }

  .sv-item.open .sv-item-body { padding: 0 0 28px 64px; }
  .sv-item-body { padding: 0 0 0 64px; }

  .sv-included-grid { grid-template-columns: 1fr; }
  .sv-inc-item { border: none !important; }
  .sv-inc-item { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .sv-hero {
    padding: calc(var(--nav-h) + 20px) 18px 72px;
  }

  .sv-hero-headline { font-size: clamp(38px, 12vw, 72px); }
  .sv-hero-sub { font-size: 14px; }

  .sv-list     { padding: 64px 18px; }
  .sv-included { padding: 64px 18px; }
  .sv-faq      { padding: 64px 18px; }
  .sv-cta      { padding: 96px 18px; }

  .sv-item-head { padding: 22px 0; }
  .sv-item-left { gap: 12px; }
  .sv-index     { display: none; }
  .sv-item-icon { width: 36px; height: 36px; border-radius: 10px; }
  .sv-name      { font-size: clamp(17px, 5vw, 26px); }
  .sv-toggle    { width: 36px; height: 36px; }

  .sv-item-body,
  .sv-item.open .sv-item-body { padding-left: 48px; }

  .sv-faq-q span { font-size: 15px; }

  .sv-cta-btns { flex-direction: column; gap: 14px; }

  .section-label { margin-bottom: 44px; }
}

@media (max-width: 360px) {
  .sv-hero-headline { font-size: clamp(32px, 11vw, 56px); }
  .sv-item-body,
  .sv-item.open .sv-item-body { padding-left: 0; }
}

/* Paper texture for the hero surface */
.sv-hero {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 82% 22%, rgba(210,237,88,0.1), transparent 28%),
    radial-gradient(circle at 16% 72%, rgba(226,224,255,0.16), transparent 24%),
    linear-gradient(rgba(23,24,23,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,24,23,0.014) 1px, transparent 1px);
  background-size: auto, auto, 34px 34px, 34px 34px;
}

.sv-hero::before { opacity: 0.48; }
.sv-hero::after { opacity: 0.28; }
.sv-hero-noise { opacity: 0.08; mix-blend-mode: multiply; }
