/* ============================================================
   LERUO CAPITAL: SHARED COMPONENTS
   Loaded after styles.css. Pages opt in with <body class="ds">.
   Colours come only from the tokens in styles.css.
   ============================================================ */

:root {
  --tint-green:   #EDF1EC;                 /* featured band: --off-white mixed with --green-text */
  --gold-tint:    rgba(198,162,91,.16);    /* icon tile background, from --gold */
  --shadow-card:  0 10px 30px rgba(7,23,15,.07);
  --shadow-lift:  0 18px 44px rgba(7,23,15,.14);
  --shadow-big:   0 30px 70px rgba(7,23,15,.20);
  --container:    1200px;
  --gap:          24px;
  --ease-ds:      cubic-bezier(.2,.7,.2,1);
}

.ds { font-size: 17px; }
.ds p { color: var(--ink-2); }

/* ---- Layout ------------------------------------------------ */
.ct { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.sec { padding-block: clamp(4.5rem, 8vw, 7rem); background: var(--white); }
.sec--tint { background: var(--tint); }
.sec--tint-green { background: var(--tint-green); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.sec-head h2, .ds-feature-copy h2, .why-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--green);
  margin: 0;
}
.sec-head p.sub { margin: 1rem auto 0; color: var(--ink-2); }
.eyebrow-ds {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .9rem;
}

/* ---- Buttons ----------------------------------------------- */
.btn-ds {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 .98rem/1 var(--sans);
  padding: 15px 26px; border-radius: 8px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease-ds), box-shadow .2s var(--ease-ds), background-color .2s, color .2s, border-color .2s;
}
.btn-ds:hover { transform: translateY(-2px); }
.btn-ds--gold { background: var(--gold); color: var(--green); }
.btn-ds--gold:hover { background: var(--gold-soft); color: var(--green); box-shadow: 0 10px 26px rgba(198,162,91,.35); }
.btn-ds--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ds--line:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-ds--dark { background: var(--green); color: var(--on-dark); }
.btn-ds--dark:hover { background: var(--green-mid); color: var(--on-dark); box-shadow: 0 10px 26px rgba(7,23,15,.25); }
.ds-link { text-transform: none; letter-spacing: 0; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .95rem; color: var(--green); text-decoration: none; transition: gap .2s var(--ease-ds), color .2s; }
.ds-link:hover { gap: .7rem; color: var(--gold); }

/* ---- Cards ------------------------------------------------- */
.ds-grid { display: grid; gap: var(--gap); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.ds-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow-card);
  transition: transform .2s var(--ease-ds), box-shadow .2s var(--ease-ds), border-color .2s;
}
.ds-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(198,162,91,.45); }
.icon-tile { width: auto; height: auto; background: none; border-radius: 0; color: var(--green); display: block; margin-bottom: 1.3rem; }
.icon-tile svg { width: 44px; height: 44px; stroke-width: 2.4; }
.ds-card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; color: var(--green); margin: 0 0 .55rem; }
.ds-card p { font-size: .98rem; line-height: 1.6; margin: 0; }
.ds-no { position: absolute; top: 18px; right: 22px; font-size: 36px; font-weight: 700; line-height: 1; color: var(--green); opacity: .12; pointer-events: none; }

/* ---- Featured band ---------------------------------------- */
.ds-feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ds-feature-copy .lead-ds { font-size: 1.05rem; line-height: 1.7; margin: 1.1rem 0 1.5rem; color: var(--ink-2); }
.tick-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .85rem; }
.tick-list li { position: relative; padding-left: 2.1rem; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307170F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/68% no-repeat;
}
.layered { position: relative; padding: 0 0 2.5rem 2.5rem; }
.layer-main { width: 100%; display: block; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-big); background: #fff; }
.layer-float { position: absolute; left: 0; bottom: 0; width: 46%; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-big); background: #fff; }

/* ---- App card (wide, laptop mockup) ----------------------- */
.ds-card.app-card { background: none; border: 0; box-shadow: none; border-radius: 0; display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; padding: 0; }
.ds-card.app-card:hover { transform: none; box-shadow: none; border-color: transparent; }
.app-card .icon-tile { margin-bottom: 1.1rem; }
.app-card h3 { font-size: 1.6rem; }
.app-card .ds-link { margin-top: 1.4rem; }
.app-card img { width: 100%; display: block; }

/* ---- Showcase cards (websites, branding) ------------------ */
.show-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.show-panel { background: var(--tint); display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; }
.show-panel img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .4s var(--ease-ds); }
.show-panel--cover img { object-fit: cover; }
.show-card:hover .show-panel img { transform: scale(1.03); }
.show-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.show-body h3 { margin: 0; }
.show-body p { flex: 1; }
.show-body .ds-link { margin-top: .9rem; }

/* ---- Why strip -------------------------------------------- */
.why { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; align-items: center; }
.why-head p { margin: 1rem 0 0; }
.why-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.why-col { padding: 0 1.75rem; border-left: 1px solid rgba(7,23,15,.14); }
.why-col:first-child { border-left: 0; padding-left: 0; }
.why-col svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 1rem; }
.why-col h3 { font-size: 1.05rem; font-weight: 700; color: var(--green); margin: 0 0 .4rem; }
.why-col p { font-size: .93rem; line-height: 1.55; margin: 0; }

/* ---- CTA band --------------------------------------------- */
.cta-ds { position: relative; overflow: hidden; background: var(--green); color: var(--on-dark); text-align: center; padding-block: clamp(4.5rem, 8vw, 6.5rem); }
.cta-ds::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400' viewBox='0 0 1200 400' fill='none' stroke='%23C6A25B' stroke-opacity='.22'%3E%3Cpath d='M-50 340C200 300 330 120 600 150S980 330 1250 210'/%3E%3Cpath d='M-50 370C220 340 350 160 610 190S990 360 1250 250'/%3E%3Cpath d='M-50 310C190 260 320 80 590 110S970 300 1250 170'/%3E%3Cpath d='M-50 280C180 220 310 40 580 70S960 270 1250 130'/%3E%3C/svg%3E") center/cover no-repeat,
    radial-gradient(ellipse at 15% 0%, rgba(198,162,91,.14), transparent 55%);
}
.cta-ds .ct { position: relative; }
.cta-ds h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; color: #fff; margin: 0 auto 2rem; max-width: 22ch; }

/* ---- Motion ------------------------------------------------ */
.fx { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-ds), transform .7s var(--ease-ds); }
.fx.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fx { opacity: 1; transform: none; transition: none; }
  .ds-card, .btn-ds, .show-panel img, .ds-link { transition: none; }
  .ds-card:hover, .btn-ds:hover { transform: none; }
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 1000px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .ds-feature, .ds-card.app-card, .why { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .why-cols { grid-template-columns: 1fr; gap: 1.75rem; }
  .why-col { border-left: 0; padding: 0; }
  .layered { padding: 0 0 1.5rem 1rem; }
}

/* ---- Overrides for legacy rules that share a class name --------- */
.ds .ds-link::after { display: none; }
.ds-card h3 { text-align: left; }
