/* ----- Snoopy Productions — brand tokens & global styles -----
   Palette derived from the real Snoopy logo + favicon (violet→indigo gradient).
   See research/CLAUDE-DESIGN.md §5. */

:root {
  --bg:        #FFFFFF;
  --surface:   #F5F3FA;
  --surface-2: #EAE4F4;
  --text:      #1B1530;
  --text-soft: #3a3158;
  --muted:     #6A6480;
  --primary:   #6A2CB8;
  --primary-ink:#5C24A6;
  --secondary: #303180;
  --accent:    #7E33CB;
  --border:    #E6E1F0;
  --border-strong: #CFC6E4;
  --focus:     #7E33CB;
  --dark:      #1B1530;
  --dark-2:    #211A3D;
  --indigo:    #303180;
  --brand-grad: linear-gradient(120deg, #7E33CB 0%, #50329C 55%, #303180 100%);
  --brand-grad-soft: linear-gradient(120deg, #F1E8FA 0%, #E4DBF4 55%, #D6CDEA 100%);
  --shadow-card: 0 1px 2px rgba(27,21,48,0.05), 0 8px 24px -8px rgba(27,21,48,0.10);
  --shadow-pop:  0 16px 48px -12px rgba(48,49,128,0.28);
  --font-display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --container: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

img, svg { display: block; max-width: 100%; }

::selection { background: #7E33CB; color: #fff; }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----- layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

.section {
  padding: 88px 0;
}
@media (max-width: 720px) { .section { padding: 56px 0; } }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--brand-grad);
  border-radius: 2px;
}
.eyebrow.on-dark { color: #C9B6F0; }
.eyebrow.on-dark::before { background: linear-gradient(120deg, #C9B6F0, #fff); }

.h-display {
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.h-1 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.h-2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; letter-spacing: -0.015em; }
.h-3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.18; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-soft); line-height: 1.55; max-width: 60ch; }

.text-grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(126,51,203,0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(126,51,203,0.65); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-dark {
  background: var(--text);
  color: #fff;
}
.btn-dark:hover { background: var(--primary); }
.btn-light {
  background: #fff;
  color: var(--text);
}
.btn-light:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 18px 28px; font-size: 16px; }

.arrow-icon {
  width: 14px; height: 14px;
  transition: transform .2s ease;
}
.btn:hover .arrow-icon { transform: translate(3px, -3px); }

/* ----- chips / tags ----- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.chip.solid { background: var(--brand-grad); color: #fff; border-color: transparent; }
.chip.dark { background: rgba(255,255,255,0.10); color: #E5DDF5; border-color: rgba(255,255,255,0.15); }

/* ----- cards / surfaces ----- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.surface-soft { background: var(--surface); }

/* ----- nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav.on-dark {
  background: rgba(27,21,48,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  margin-right: auto;
}
.nav-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--brand-grad);
  position: relative;
  flex-shrink: 0;
}
.nav-mark::before, .nav-mark::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 4px;
}
.nav-mark::before { left: 6px; top: 6px; width: 11px; height: 11px; }
.nav-mark::after  { right: 6px; bottom: 6px; width: 12px; height: 12px; border-radius: 50%; }
.nav-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
}
.nav-name span { color: var(--muted); font-weight: 500; }
.nav.on-dark .nav-name { color: #fff; }
.nav.on-dark .nav-name span { color: #B7ABD3; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--primary); }
.nav.on-dark .nav-link { color: #C9C0DE; }
.nav.on-dark .nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav.on-dark .nav-link.active { color: #C9B6F0; }

.nav-cta { margin-left: 8px; }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-inner { height: 64px; }
}

/* ----- hero ----- */
.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(126,51,203,0.55), rgba(48,49,128,0.0) 70%);
  filter: blur(20px);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -10%;
  width: 60%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(80,50,156,0.5), rgba(48,49,128,0.0) 70%);
  filter: blur(20px);
  z-index: -1;
}

/* dotted grid overlay */
.dotgrid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* ----- work card ----- */
.work-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.work-card .img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.work-card:hover img { transform: scale(1.04); }
.work-card .img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,21,48,0) 50%, rgba(27,21,48,0.55) 100%);
  pointer-events: none;
}
.work-card .meta {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px;
  color: #fff;
  z-index: 2;
}
.work-card .meta h3 {
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}
.work-card .meta .sub {
  font-size: 12px;
  color: #D7CEEC;
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.work-card .meta-arrow {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  border-radius: 999px;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.work-card:hover .meta-arrow { background: var(--accent); color: #fff; }

.work-card .cat-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
  color: var(--secondary);
}

/* ----- pillar card ----- */
.pillar {
  position: relative;
  padding: 32px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--border-strong); }
.pillar .num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.1em;
}
.pillar h3 {
  margin-top: 14px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.pillar p {
  margin-top: 12px;
  color: var(--text-soft);
}

/* ----- service block ----- */
.service-row {
  display: grid;
  grid-template-columns: 80px 1.1fr 1.4fr 60px;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: padding .2s ease;
}
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-row:hover { padding-left: 8px; }
.service-row:hover .service-num,
.service-row:hover h3 { color: var(--primary); }
.service-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: color .2s ease;
}
.service-row h3 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.015em;
  transition: color .2s ease;
}
.service-row p { color: var(--text-soft); font-size: 15px; max-width: 52ch; }
.service-row .arrow {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--text);
  transition: background .2s, color .2s, transform .2s;
}
.service-row:hover .arrow { background: var(--brand-grad); color: #fff; transform: rotate(-45deg); }
@media (max-width: 820px) {
  .service-row { grid-template-columns: 36px 1fr 36px; }
  .service-row p { display: none; }
}

/* ----- category filter ----- */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-pill {
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  color: var(--text-soft);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .15s ease;
}
.cat-pill:hover { background: var(--surface-2); color: var(--text); }
.cat-pill.active {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(126,51,203,0.45);
}
.cat-pill .cnt {
  font-size: 11px;
  padding: 2px 7px;
  background: rgba(255,255,255,0.65);
  color: var(--secondary);
  border-radius: 999px;
  font-weight: 600;
}
.cat-pill.active .cnt {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* ----- case study ----- */
.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 720px) { .cs-meta { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.cs-meta dt {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cs-meta dd { margin: 6px 0 0; font-size: 16px; font-weight: 500; color: var(--text); }
.cs-meta dd .flag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: #FFF3CD;
  color: #8A6A00;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

.phase {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.phase .num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.phase h4 { margin-top: 12px; font-size: 18px; }
.phase p { margin-top: 8px; color: var(--text-soft); font-size: 14.5px; }

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.gallery-grid > * { border-radius: 14px; overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .4s ease; cursor: zoom-in; }
.gallery-grid > *:hover img { transform: scale(1.03); }
.gallery-grid .g-span-3 { grid-column: span 3; }
.gallery-grid .g-span-3 img { aspect-ratio: 16/9; }
.gallery-grid .g-span-2 { grid-column: span 2; }
.gallery-grid .g-span-4 { grid-column: span 4; }
.gallery-grid .g-span-4 img { aspect-ratio: 16/9; }
.gallery-grid .g-span-6 { grid-column: span 6; }
.gallery-grid .g-span-6 img { aspect-ratio: 21/9; }
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .g-span-3, .gallery-grid .g-span-2, .gallery-grid .g-span-4, .gallery-grid .g-span-6 { grid-column: span 2; }
}

/* ----- footer ----- */
.footer {
  background: var(--dark);
  color: #C9C0DE;
  padding: 88px 0 32px;
  position: relative;
  overflow: hidden;
}
.footer .footer-mega {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.06);
  white-space: nowrap;
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  pointer-events: none;
}
.footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer a { color: #C9C0DE; transition: color .15s; }
.footer a:hover { color: #fff; }

/* form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(126,51,203,0.12);
}
.field textarea { min-height: 120px; resize: vertical; }

.service-tile {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  text-align: left;
  transition: all .15s;
}
.service-tile:hover { border-color: var(--border-strong); }
.service-tile.active {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(126,51,203,0.06), rgba(126,51,203,0.02));
  color: var(--text);
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(11, 7, 25, 0.92);
  display: grid;
  place-items: center;
  padding: 40px;
  animation: lb-fade .2s ease;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 22px;
  display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* marquee */
.marquee {
  display: flex;
  gap: 56px;
  animation: marquee 38s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-item::after {
  content: "";
  width: 14px; height: 14px;
  background: var(--brand-grad);
  border-radius: 999px;
  flex-shrink: 0;
}

/* progress dot */
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* Note banner */
.note-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(126,51,203,0.06), rgba(126,51,203,0.02));
  border: 1px solid rgba(126,51,203,0.20);
  border-radius: 14px;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
}
.note-banner .ic {
  width: 22px; height: 22px;
  background: var(--brand-grad);
  border-radius: 6px;
  flex-shrink: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid; place-items: center;
}

/* enquire sticky bar (mobile) */
.mobile-bar {
  display: none;
}
@media (max-width: 720px) {
  .mobile-bar {
    display: flex;
    position: fixed; bottom: 16px; left: 16px; right: 16px;
    z-index: 60;
    gap: 8px;
  }
  .mobile-bar .btn { flex: 1; justify-content: center; }
}

/* arabic toggle text */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid var(--border);
}
.lang-toggle .lang { padding: 2px 6px; border-radius: 999px; }
.lang-toggle .lang.active { background: var(--brand-grad); color: #fff; }
.nav.on-dark .lang-toggle { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); color: #C9C0DE; }

/* page-enter */
.page { animation: pageIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* utility */
.divider {
  height: 1px;
  background: var(--border);
  width: 100%;
}
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.flex { display: flex; }
.col { flex-direction: column; }
.center { align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mb-4 { margin-bottom: 16px; }
