/* ============================================================
   DayWeb Design — Global Styles
   Brand: #ff914d (orange) · dark-grey · white
   ============================================================ */

:root {
  --brand: #ff914d;
  --brand-600: #f97316;
  --brand-700: #ea6a1f;
  --brand-soft: #fff4ec;
  --ink: #1c1c1e;
  --ink-800: #2b2b2e;
  --ink-soft: #5c5c63;
  --ink-mute: #8a8a92;
  --bg: #ffffff;
  --bg-soft: #f7f6f4;
  --bg-dark: #141416;
  --line: #ececec;
  --line-dark: #26262a;
  --shadow-sm: 0 1px 2px rgba(20, 20, 22, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(20, 20, 22, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(20, 20, 22, 0.25);
  --shadow-brand: 0 18px 40px -14px rgba(255, 145, 77, 0.55);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: "Inter Tight", "Inter", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

::selection { background: var(--brand); color: #fff; }

/* ---------- Layout helpers ---------- */
.container-x { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-700);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .35s var(--ease-out), background .25s, box-shadow .35s, color .25s;
  will-change: transform;
}
.btn svg { transition: transform .35s var(--ease-out); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 22px 46px -14px rgba(255,145,77,.7); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-dark:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s, box-shadow .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-link { position: relative; font-weight: 500; color: var(--ink-800); font-size: .96rem; padding: .4rem 0; transition: color .25s; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--brand);
  transition: width .3s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--ink); }

/* dropdown */
.has-dropdown .dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: .6rem;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 12px; transition: background .2s; }
.dropdown a:hover { background: var(--bg-soft); }

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 120; background: #fff; transform: translateX(100%); transition: transform .5s var(--ease-out); }
.mobile-menu.open { transform: translateX(0); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 2rem;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s;
  will-change: transform;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-700); margin-bottom: 1.4rem; transition: background .4s, color .4s, transform .5s var(--ease-out);
}
.card:hover .card-icon { background: var(--brand); color: #fff; transform: scale(1.06) rotate(-4deg); }

/* ---------- Marquee ---------- */
.marquee { display: flex; overflow: hidden; user-select: none; gap: 4rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 4rem; align-items: center; flex-shrink: 0; animation: marquee 32s linear infinite; }
@keyframes marquee { to { transform: translateX(calc(-100% - 4rem)); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Reveal (GSAP fallback if JS off) ---------- */
.reveal { opacity: 0; }
.no-js .reveal, .reduce-motion .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Section rhythm ---------- */
.section { padding: 6.5rem 0; }
@media (max-width: 768px) { .section { padding: 4.5rem 0; } }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

/* ---------- Process timeline ---------- */
.step-num {
  font-family: "Inter Tight", sans-serif; font-weight: 700; font-size: 1.1rem;
  width: 54px; height: 54px; border-radius: 999px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--brand-700); flex-shrink: 0; transition: all .4s;
}
.step:hover .step-num { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Testimonials ---------- */
.testi-track { display: flex; transition: transform .6s var(--ease-out); }
.testi-slide { min-width: 100%; }

/* ---------- Stat ---------- */
.stat-num { font-family: "Inter Tight", sans-serif; font-weight: 700; letter-spacing: -.03em; }

/* ---------- Footer ---------- */
.footer-link { color: rgba(255,255,255,.62); transition: color .25s, padding-left .25s; }
.footer-link:hover { color: #fff; padding-left: 4px; }

/* ---------- Magnetic wrapper ---------- */
.magnetic { display: inline-block; will-change: transform; }

/* ---------- Media / images ---------- */
.media-frame { position: relative; border-radius: 26px; overflow: hidden; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge-float {
  position: absolute; background: #fff; border-radius: 18px; padding: 1rem 1.25rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .8rem;
}

/* ---------- Blob / decorative ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; pointer-events: none; }

/* progress bar top */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--brand); z-index: 200; width: 0; }

/* ---------- Services tabs (interactive) ---------- */
.svc-tabs {
  position: relative; display: flex; gap: .25rem; align-items: stretch;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.svc-tabs::-webkit-scrollbar { display: none; }
.svc-pill {
  position: absolute; top: .4rem; left: 0; height: calc(100% - .8rem); width: 0;
  background: var(--brand); border-radius: 999px; box-shadow: var(--shadow-brand);
  transform: translateX(0); z-index: 0;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}
.svc-tab {
  position: relative; z-index: 1; flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem; padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .96rem;
  color: var(--ink-soft); white-space: nowrap; cursor: pointer; background: transparent; border: 0;
  transition: color .3s var(--ease-out); font-family: inherit;
}
.svc-tab:hover { color: var(--ink); }
.svc-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.svc-tab.is-active { color: #fff; }
.svc-tab-icon { display: inline-grid; place-items: center; }
.svc-tab-icon svg { width: 20px; height: 20px; }

.svc-stage { margin-top: 2.75rem; }
.svc-panel[hidden] { display: none; }
.svc-subcard { margin-top: 1.75rem; border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.4rem; background: #fff; }

@media (max-width: 640px) {
  .svc-tab-label { font-size: .9rem; }
  .svc-tab { padding: .7rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-pill { transition: none; }
}
