/* ============================================================
   EL KAG SERVICES — site stylesheet
   Palette: ink #0A100D · emerald #1E6B4A · jade #35A97C
            gold #E8AC33 · soft gold #F5CE7B · paper #F6F4EC
   Type:    Bricolage Grotesque (headlines)
            Instrument Sans (body) · IBM Plex Mono (labels)
   ============================================================ */

:root {
  --ink: #0A100D;
  --ink2: #101915;
  --emerald: #1E6B4A;
  --jade: #35A97C;
  --gold: #E8AC33;
  --gold-soft: #F5CE7B;
  --paper: #F6F4EC;
  --slate: #5C6660;
  --line: rgba(232, 172, 51, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Instrument Sans', -apple-system, sans-serif;
  overflow-x: hidden;
}
.mono { font-family: 'IBM Plex Mono', monospace; }
h1, h2, h3, h4 { font-family: 'Bricolage Grotesque', sans-serif; }
img { max-width: 100%; display: block; }

/* ---------- scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
}

/* ---------- top nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.nav.scrolled {
  background: rgba(10, 16, 13, 0.85);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav-in {
  max-width: 1200px; margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.brand-name { font-family: 'Bricolage Grotesque'; font-weight: 700; letter-spacing: 3px; font-size: 15px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: rgba(246, 244, 236, 0.72); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a.active { color: var(--gold-soft); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* hamburger */
.menu-btn {
  background: rgba(246, 244, 236, 0.06);
  border: 1px solid rgba(246, 244, 236, 0.2);
  border-radius: 10px; padding: 10px 12px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
}
.menu-btn span { width: 18px; height: 2px; background: var(--paper); border-radius: 2px; }

/* ---------- side menu (drawer) ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(5, 8, 6, 0.6);
  backdrop-filter: blur(3px); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
  background: var(--ink2); border-left: 1px solid var(--line); z-index: 100;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  padding: 28px; display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-close {
  align-self: flex-end; background: none; border: 1px solid rgba(246, 244, 236, 0.2);
  color: var(--paper); border-radius: 8px; width: 38px; height: 38px;
  font-size: 18px; cursor: pointer;
}
.drawer nav { margin-top: 28px; display: flex; flex-direction: column; }
.drawer nav a {
  color: var(--paper); text-decoration: none;
  font-family: 'Bricolage Grotesque'; font-size: 24px; font-weight: 600;
  padding: 14px 4px; border-bottom: 1px solid rgba(246, 244, 236, 0.08);
  transition: color 0.3s, padding-left 0.3s;
}
.drawer nav a:hover { color: var(--gold-soft); padding-left: 10px; }
.drawer nav a small {
  display: block; font-family: 'IBM Plex Mono'; font-size: 10px;
  letter-spacing: 2px; color: var(--jade); margin-bottom: 4px; font-weight: 400;
}
.drawer-foot { margin-top: auto; font-size: 12px; color: rgba(246, 244, 236, 0.45); line-height: 1.8; }
.drawer-foot a { color: var(--gold-soft); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 170px 28px 120px;
  min-height: 82vh; display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero.short { min-height: 52vh; padding: 160px 28px 80px; }
.aurora { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(60px) saturate(1.05); opacity: 0.45; }
.hero-in { position: relative; max-width: 1200px; margin: 0 auto; width: 100%; }
.eyebrow { font-size: 12px; letter-spacing: 3px; color: var(--jade); margin-bottom: 20px; }
.eyebrow.gold { color: var(--gold); }
.eyebrow.emerald { color: var(--emerald); }
.hero h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 650; line-height: 1.02; letter-spacing: -0.025em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--jade), var(--gold) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 580px; font-size: 18px; line-height: 1.65; color: rgba(246, 244, 236, 0.68); margin-top: 26px; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  font-family: 'Instrument Sans'; font-weight: 600; font-size: 15px;
  border: none; border-radius: 10px; padding: 14px 26px; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: transform 0.25s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn.small { padding: 10px 18px; font-size: 13.5px; }
.btn.big { padding: 17px 34px; font-size: 16px; }
.btn-gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-soft));
  color: #221503; box-shadow: 0 8px 28px rgba(232, 172, 51, 0.24);
}
.btn-gold:hover { box-shadow: 0 12px 36px rgba(232, 172, 51, 0.36); }
.btn-ghost {
  background: rgba(246, 244, 236, 0.06); color: var(--paper);
  border: 1px solid rgba(246, 244, 236, 0.2);
}
.btn-ghost:hover { border-color: var(--jade); }

/* ---------- sections ---------- */
.section { padding: 110px 28px; }
.section.dark { background: var(--ink); }
.section.light { background: var(--paper); color: #17211B; }
.section-in { max-width: 1200px; margin: 0 auto; }
.sec-head { max-width: 680px; margin-bottom: 56px; }
.sec-head h2, .cta h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 650; letter-spacing: -0.02em; line-height: 1.08;
}
.ink-h { color: #17211B; }
.sec-sub { margin-top: 16px; font-size: 16.5px; line-height: 1.65; color: rgba(246, 244, 236, 0.6); }
.sec-sub.on-light { color: var(--slate); }

/* ---------- product cards (home + products page) ---------- */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.bento-card {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--ink2); display: flex; flex-direction: column;
  text-decoration: none; color: var(--paper);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s;
}
.bento-card:hover { transform: translateY(-5px); border-color: rgba(232, 172, 51, 0.4); }
.bento-card.big { grid-column: span 2; }
.bento-card.big .bento-body { max-width: 640px; }
.bento-art { height: 180px; position: relative; overflow: hidden; }
.bento-card.big .bento-art { height: 220px; }
.bento-art img, .bento-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.bento-body { padding: 24px 26px 28px; }
.tag { font-size: 10px; letter-spacing: 2.5px; color: var(--gold); margin-bottom: 10px; }
.bento-body h3 { font-size: 26px; font-weight: 650; margin-bottom: 8px; }
.bento-desc { font-size: 14.5px; line-height: 1.6; color: rgba(246, 244, 236, 0.62); }
.bento-stat { margin-top: 16px; font-size: 12px; color: var(--jade); }

/* ---------- services ---------- */
.svc-stack { display: flex; flex-direction: column; gap: 22px; }
.svc {
  display: grid; grid-template-columns: 380px 1fr;
  border: 1px solid #DDD8C8; border-radius: 22px; overflow: hidden;
  background: #FFFFFF; transition: transform 0.35s, box-shadow 0.35s;
}
.svc:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(23, 33, 27, 0.08); }
.svc-art { min-height: 240px; overflow: hidden; }
.svc-art img, .svc-art svg { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: 38px 42px; }
.svc-idx { font-size: 12px; letter-spacing: 2px; color: var(--emerald); }
.svc-body h3 { font-size: 29px; font-weight: 650; margin: 10px 0 12px; color: #17211B; }
.svc-body p { font-size: 15.5px; line-height: 1.65; color: var(--slate); max-width: 560px; }
.svc-body ul { list-style: none; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.svc-body li { font-size: 14px; color: #2A362E; }
.tick { color: var(--gold); margin-right: 8px; }

/* ---------- process ---------- */
.proc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.proc-step { border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; background: var(--ink2); }
.proc-num { font-size: 12px; color: var(--gold); letter-spacing: 2px; }
.proc-step h4 { font-size: 21px; font-weight: 650; margin: 14px 0 8px; }
.proc-step p { font-size: 14px; line-height: 1.6; color: rgba(246, 244, 236, 0.6); }

/* ---------- proof / stats ---------- */
.proof { text-align: center; max-width: 820px; }
.proof blockquote { font-family: 'Bricolage Grotesque'; font-size: clamp(24px, 3.2vw, 36px); font-weight: 500; line-height: 1.3; color: #17211B; }
.qmark { color: var(--gold); font-size: 1.4em; vertical-align: -0.1em; margin-right: 4px; }
.attrib { margin-top: 22px; font-size: 12px; letter-spacing: 2.5px; color: var(--slate); }
.stats { display: flex; justify-content: center; gap: 56px; margin-top: 58px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-v { font-family: 'Bricolage Grotesque'; font-size: 34px; font-weight: 700; color: var(--emerald); }
.stat-l { font-size: 11px; letter-spacing: 2px; color: var(--slate); }

/* ---------- product detail (products.html) ---------- */
.pd { padding: 90px 28px; border-top: 1px solid var(--line); }
.pd-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pd:nth-of-type(even) .pd-in { direction: rtl; }
.pd:nth-of-type(even) .pd-in > * { direction: ltr; }
.pd h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 650; letter-spacing: -0.02em; }
.pd p.lede { margin-top: 16px; font-size: 16.5px; line-height: 1.7; color: rgba(246, 244, 236, 0.65); }
.pd ul { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.pd li { font-size: 15px; color: rgba(246, 244, 236, 0.8); }
.pd .btn { margin-top: 28px; }
.pd-gallery { display: grid; gap: 14px; }
.pd-shot {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  cursor: zoom-in; background: var(--ink2);
  transition: transform 0.35s, border-color 0.35s;
}
.pd-shot:hover { transform: scale(1.015); border-color: rgba(232, 172, 51, 0.4); }
.pd-shot img, .pd-shot svg { width: 100%; display: block; }
.pd-shot-caption { font-size: 11px; letter-spacing: 2px; color: rgba(246, 244, 236, 0.4); padding: 10px 14px; border-top: 1px solid var(--line); }

/* ---------- lightbox (image zoom) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(5, 8, 6, 0.92);
  display: flex; align-items: center; justify-content: center; padding: 4vw;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img, .lightbox svg { max-width: 100%; max-height: 88vh; border-radius: 14px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7); }
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  background: rgba(246, 244, 236, 0.08); border: 1px solid rgba(246, 244, 236, 0.25);
  color: var(--paper); border-radius: 10px; width: 44px; height: 44px;
  font-size: 20px; cursor: pointer;
}

/* ---------- customer stories ---------- */
.stories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.story {
  border: 1px solid #DDD8C8; border-radius: 20px; background: #FFFFFF;
  padding: 34px 34px 30px; display: flex; flex-direction: column;
  transition: transform 0.35s, box-shadow 0.35s;
}
.story:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(23, 33, 27, 0.08); }
.story .tag { color: var(--emerald); }
.story blockquote { font-family: 'Bricolage Grotesque'; font-size: 21px; font-weight: 500; line-height: 1.4; color: #17211B; margin: 6px 0 18px; }
.story .who { font-size: 13px; color: var(--slate); }
.story .result { margin-top: 20px; padding-top: 18px; border-top: 1px solid #E8E4D6; display: flex; gap: 34px; }
.story .result div { display: flex; flex-direction: column; gap: 3px; }
.story .result .v { font-family: 'Bricolage Grotesque'; font-size: 24px; font-weight: 700; color: var(--emerald); }
.story .result .l { font-size: 10.5px; letter-spacing: 2px; color: var(--slate); font-family: 'IBM Plex Mono'; }

/* ---------- team / about ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--ink2); }
.member-photo { aspect-ratio: 1; background: linear-gradient(140deg, #123B29, #1E6B4A 60%, #0A100D); position: relative; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque'; font-size: 42px; font-weight: 700; color: rgba(246, 244, 236, 0.25);
}
.member-body { padding: 18px 20px 22px; }
.member-body h4 { font-size: 17px; font-weight: 650; }
.member-body p { font-size: 12px; color: var(--jade); margin-top: 4px; font-family: 'IBM Plex Mono'; letter-spacing: 1px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { border: 1px solid #DDD8C8; border-radius: 18px; background: #fff; padding: 30px 28px; }
.value h4 { font-size: 20px; font-weight: 650; color: #17211B; }
.value p { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--slate); }

/* ---------- CTA + footer ---------- */
.cta { position: relative; padding: 130px 28px; overflow: hidden; background: var(--ink); text-align: center; }
.cta-in { position: relative; }
.cta h2 { margin-bottom: 34px; }
.cta-note { margin-top: 22px; font-size: 12px; letter-spacing: 2px; color: rgba(246, 244, 236, 0.5); }

.foot { border-top: 1px solid var(--line); background: var(--ink); }
.foot-in {
  max-width: 1200px; margin: 0 auto; padding: 40px 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col .h { font-size: 11px; letter-spacing: 2px; color: var(--gold); font-family: 'IBM Plex Mono'; margin-bottom: 4px; }
.foot-col a { color: rgba(246, 244, 236, 0.6); text-decoration: none; font-size: 13.5px; }
.foot-col a:hover { color: var(--gold-soft); }
.foot-base {
  max-width: 1200px; margin: 0 auto; padding: 20px 28px;
  border-top: 1px solid rgba(246, 244, 236, 0.06);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 11px; letter-spacing: 2px; color: rgba(246, 244, 236, 0.4);
  font-family: 'IBM Plex Mono';
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .svc { grid-template-columns: 1fr; }
  .svc-art { height: 180px; }
  .proc { grid-template-columns: 1fr 1fr; }
  .pd-in { grid-template-columns: 1fr; gap: 32px; }
  .pd:nth-of-type(even) .pd-in { direction: ltr; }
  .stories { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.big { grid-column: span 1; }
  .proc { grid-template-columns: 1fr; }
  .stats { gap: 30px; }
  .team { grid-template-columns: 1fr; }
}
