/* ==========================================================================
   Doom's Digital Services — home.css  (Home page only)
   Requires base.css
   ========================================================================== */

.grad { background: linear-gradient(100deg, var(--orange) 10%, #ffa23a 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn--outline-light { border: 1.5px solid rgba(255, 255, 255, 0.7); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--orange-600); transform: translateY(-2px); }

/* ---------- HERO (video card — ported from the Yukti reference) ---------- */
.hero { position: relative; background: #fff; padding: 0; }
.ep-card { position: relative; overflow: hidden; background: #eceff4; min-height: min(82svh, 700px); padding-bottom: 110px; display: flex; flex-direction: column; justify-content: center; }
.ep-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #eceff4; }
.ep-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; pointer-events: none; }
/* keep the copy on the quiet left side of the frame */
.ep-card::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.32) 36%, transparent 62%); }
.ep-copy { position: relative; z-index: 3; padding-top: clamp(40px, 5vw, 76px); }
.ep-copy > * { max-width: 640px; }
.ep-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(8, 9, 14, 0.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #4a5568; }
.ep-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }
.hero h1 { margin: 22px 0 18px; color: #15151b; font-size: clamp(30px, 3.7vw, 50px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 6px; margin-bottom: -6px; }
.hero h1 .ln > span { display: block; animation: rise 0.9s var(--ease) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 em { font-style: normal; color: var(--orange); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.ep-sub { font-size: clamp(14.5px, 1.15vw, 16px); line-height: 1.65; color: #4d5566; max-width: 48ch; }
.ep-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.ep-call { background: rgba(255, 255, 255, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* floating pill along the bottom edge */
.ep-bar { position: absolute; z-index: 4; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(8, 9, 14, 0.08); white-space: nowrap; max-width: calc(100% - 32px); box-shadow: 0 4px 14px rgba(20, 30, 80, 0.08); }
.ep-mark { width: 36px; height: 36px; flex: none; border-radius: 10px; display: block; }
.ep-stat { font-size: 13px; color: #64748b; }
.ep-stat b { font-weight: 700; color: #0a1b33; }
.ep-sep { width: 1px; height: 16px; background: rgba(8, 9, 14, 0.12); flex: none; }
.ep-pill { display: inline-flex; align-items: center; gap: 4px; padding: 9px 14px 9px 18px; border-radius: 999px; background: var(--orange); font-size: 12.5px; font-weight: 600; color: #fff; transition: background-color 0.25s; }
.ep-pill svg { width: 14px; height: 14px; }
.ep-pill:hover { background: var(--orange-600); }

@media (max-width: 1080px) { .ep-card { min-height: 0; padding-bottom: 112px; } .ep-copy > * { max-width: none; } }
@media (max-width: 760px) {
  /* on a tall narrow box the clip drops to the lower half and fades in */
  .ep-card { padding-bottom: 96px; background: #edf0f6; justify-content: flex-start; }
  .ep-bg { top: auto; bottom: 0; height: 56%; }
  .ep-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #edf0f6 0%, rgba(237, 240, 246, 0.72) 22%, transparent 44%); }
  .ep-video { object-position: 58% center; }
  .ep-card::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.24) 42%, transparent 64%); }
  .ep-eyebrow { font-size: 10.5px; letter-spacing: 0.1em; }
  .ep-bar { gap: 10px; bottom: 18px; padding: 5px 5px 5px 7px; }
  .ep-mark { width: 32px; height: 32px; }
  .ep-bar .ep-stat ~ .ep-stat, .ep-sep { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero h1 .ln > span { animation: none; } }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; padding: 30px 0; background: #fff; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); border: 0; }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff; font-size: 15px; font-weight: 500; color: #4a4d59; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(calc(-50% - 7px)); } }

/* ==========================================================================
   SECTIONS — simple, airy, premium. One clear idea per section, generous
   white space, hairline borders, one soft radius. Each section fits a single
   screen on desktop; blue is the calm contrast colour (technologies, quotes).
   ========================================================================== */
:root { --sec-h: calc(100svh - var(--header-h)); --rad: 22px; }
html { scroll-padding-top: var(--header-h); } /* normal free scrolling — no snapping */

.sec { position: relative; background: #fff; min-height: max(var(--sec-h), 620px); padding: clamp(44px, 6.5vh, 88px) 0; display: flex; align-items: center; }
.sec > .container { width: 100%; }
.sec--soft { background: #f7f7fa; }
.sec--blue { background: radial-gradient(110% 90% at 80% 0%, #2a62ff 0%, #1747d6 48%, #0f2f9e 100%); color: #fff; }
.sec h2 { font-size: clamp(28px, 3.3vw, 46px); line-height: 1.12; margin-top: 16px; letter-spacing: -0.025em; }
.sec-head { max-width: 780px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); }
.sec--blue .eyebrow { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.24); color: #fff; }
.sec--blue .eyebrow::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.3); }
.sec--blue .sec-head p { color: rgba(255, 255, 255, 0.8); }
.ctaw { position: relative; }

/* ---------- Services ---------- */
.svc { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.svc__left p { margin-top: 14px; max-width: 42ch; font-size: clamp(15px, 1.2vw, 17px); }
.svc__view { position: relative; margin-top: clamp(24px, 4vh, 40px); border-radius: var(--rad); overflow: hidden; aspect-ratio: 16 / 9; max-height: 30vh; width: 100%; background: #eceff4; }
.svc__view img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s, transform 0.8s var(--ease); }
.svc__view img.is-swap { opacity: 0; transform: scale(1.04); }
.svc__tag { position: absolute; left: 14px; bottom: 14px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 999px; }
.svc__list { border-top: 1px solid var(--line); }
.svc__list li { border-bottom: 1px solid var(--line); }
.svc__list a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px; padding: clamp(11px, 1.7vh, 17px) 6px; transition: padding 0.35s var(--ease), background 0.3s; border-radius: 12px; }
.svc__list .n { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; }
.svc__list b { display: block; font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.015em; transition: color 0.25s; }
.svc__list small { display: block; margin-top: 3px; color: var(--muted); font-size: clamp(12.5px, 1vw, 14px); }
.svc__list .go { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all 0.3s var(--ease); }
.svc__list .go svg { width: 16px; height: 16px; }
.svc__list a:hover, .svc__list a:focus-visible, .svc__list a.is-on { padding-left: 18px; background: #fff7f1; }
.svc__list a:hover b, .svc__list a.is-on b { color: var(--orange); }
.svc__list a:hover .go, .svc__list a.is-on .go { background: var(--orange); border-color: var(--orange); color: #fff; transform: rotate(45deg); }

/* ---------- Technologies ---------- */
.tech { display: flex; flex-direction: column; gap: clamp(28px, 5vh, 52px); }
.tgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; max-width: 980px; margin-inline: auto; width: 100%; }
.tcell { display: flex; align-items: center; gap: 14px; background: #fff; color: var(--ink); border-radius: 18px; padding: 16px 20px; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.tcell img { width: 34px; height: 34px; flex: none; }
.tcell span { font-size: 14.5px; font-weight: 500; line-height: 1.2; }
.tcell:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(5, 15, 70, 0.28); }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.why__media { position: relative; }
.why__media img { width: 100%; aspect-ratio: 4 / 4.6; max-height: 70vh; object-fit: cover; border-radius: var(--rad); }
.why__badge { position: absolute; right: -18px; bottom: 28px; background: #fff; border-radius: 18px; padding: 14px 20px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(20, 20, 30, 0.12); }
.why__badge b { font-size: 30px; color: var(--orange); font-weight: 700; line-height: 1; }
.why__badge span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.why__copy p { margin-top: 14px; max-width: 52ch; font-size: clamp(15px, 1.2vw, 17px); }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; margin-top: clamp(22px, 4vh, 36px); }
.why__list li { display: flex; gap: 14px; align-items: flex-start; }
.ck { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--orange-100); color: var(--orange); display: grid; place-items: center; }
.ck svg { width: 16px; height: 16px; }
.why__list b { display: block; font-size: 16px; font-weight: 600; }
.why__list span:not(.ck) { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 2px; }
.why__stats { display: flex; gap: clamp(24px, 4vw, 56px); margin-top: clamp(24px, 4vh, 40px); padding-top: clamp(20px, 3vh, 30px); border-top: 1px solid var(--line); }
.num b { display: block; font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.num span { font-size: 13.5px; color: var(--muted); }

/* ---------- Process ---------- */
.proc { display: flex; flex-direction: column; gap: clamp(36px, 7vh, 72px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; border-top: 1px dashed rgba(255, 106, 0, 0.45); }
.step__n { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 1.5px solid var(--orange); color: var(--orange); font-weight: 600; font-size: 15px; margin-bottom: 22px; transition: all 0.3s var(--ease); }
.steps li:hover .step__n { background: var(--orange); color: #fff; }
.steps h3 { font-size: clamp(18px, 1.7vw, 22px); margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; max-width: 30ch; }
.proc__ind { text-align: center; color: var(--muted); font-size: 14.5px; max-width: 70ch; margin-inline: auto; padding-top: clamp(16px, 3vh, 28px); border-top: 1px solid var(--line); }

/* ---------- Testimonials (blue) ---------- */
.quote { text-align: center; display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 4vh, 40px); }
.qslides { position: relative; width: 100%; max-width: 860px; min-height: clamp(230px, 34vh, 300px); }
.qslide { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s; }
.qslide.is-on { opacity: 1; visibility: visible; transform: none; }
.qslide blockquote { margin: 0; font-size: clamp(20px, 2.4vw, 32px); line-height: 1.4; font-weight: 500; letter-spacing: -0.015em; }
.stars { color: #ffb36b; letter-spacing: 4px; font-size: 18px; }
.qslide figcaption { display: flex; align-items: center; gap: 14px; text-align: left; }
.av { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; }
.qslide small { display: block; opacity: 0.75; font-size: 13px; }
.qnav { display: flex; gap: 10px; }
.qnav button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); padding: 0; transition: all 0.3s var(--ease); }
.qnav button.is-on { width: 30px; border-radius: 999px; background: #fff; }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.faq__intro h2 { font-size: clamp(30px, 3.6vw, 50px); }
.faq__intro p { margin-top: 14px; font-size: clamp(15px, 1.2vw, 17px); max-width: 40ch; }
.faq__list { display: grid; gap: 12px; }
.faq { border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: border-color 0.25s, box-shadow 0.25s; }
.faq[open] { border-color: rgba(255, 106, 0, 0.45); box-shadow: 0 8px 24px rgba(20, 20, 30, 0.06); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 64px 20px 24px; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--orange-100); color: var(--orange); display: grid; place-items: center; font-size: 20px; font-weight: 500; transition: all 0.3s; }
.faq[open] summary::after { content: "–"; background: var(--orange); color: #fff; }
.faq p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Smaller screens: natural flow ---------- */
@media (max-width: 1100px), (max-height: 700px) {
  .sec { min-height: 0; display: block; padding-block: 64px; }
  .svc, .why, .faq__inner { grid-template-columns: 1fr; gap: 34px; }
  .svc__view { max-height: none; }
  .tgrid { grid-template-columns: repeat(3, 1fr); }
  .why__media { max-width: 520px; } .why__media img { max-height: none; } .why__badge { right: 12px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; } .steps::before { display: none; }
}
@media (max-width: 600px) {
  .tgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .tcell { padding: 13px 14px; gap: 10px; } .tcell span { font-size: 13px; }
  .why__list { grid-template-columns: 1fr; } .why__stats { gap: 20px; flex-wrap: wrap; }
  .steps { grid-template-columns: 1fr; }
  .svc__list a { grid-template-columns: 34px 1fr auto; gap: 10px; } .svc__list .go { width: 34px; height: 34px; }
  .qslides { min-height: 360px; }
}
@media (prefers-reduced-motion: reduce) { .qslide { transition: none; } }
