/* ==========================================================================
   Mekuanint Tewende — portfolio styles
   Single hand-written stylesheet (replaces the old Zain template CSS).
   Palette is taken from the existing site and logo: near-black + gold #c49b66.
   Change the look in one place: the :root tokens below.
   ========================================================================== */

/* Fonts (self-hosted, latin subset) */
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/rubik-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/rubik-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/rubik-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/josefin-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/josefin-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #0f0f10;
  --bg-alt: #161617;
  --surface: #1c1c1e;
  --surface-2: #232326;
  --line: #2e2e32;
  --text: #f3f3f4;
  --muted: #a5a5ab;
  --accent: #c49b66;
  --accent-strong: #d8b182;
  --accent-ink: #14110c;
  --danger: #ff8d8d;
  --success: #7fd6a0;
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Josefin Sans", "Rubik", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; vertical-align: -.125em; }
a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 500; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--accent-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; min-height: 46px;
  font: 500 1rem/1.2 var(--font-body);
  border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
  text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-outline { border-color: var(--accent); color: var(--accent-strong); background: transparent; }
.btn-outline:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: #4a4a50; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); color: #fff; }
.btn-sm { padding: .6em 1.15em; min-height: 40px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(15,15,16,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: background .25s, border-color .25s;
}
.site-header.is-scrolled { background: rgba(15,15,16,.94); border-bottom-color: var(--line); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 48px; width: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.primary-nav a:not(.btn) {
  display: block; padding: 10px 14px; border-radius: 999px; color: #d6d6da; text-decoration: none; font-size: .95rem;
}
.primary-nav a:not(.btn):hover { color: #fff; }
.primary-nav a.is-active { color: var(--accent-strong); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; cursor: pointer; align-items: center; justify-content: center; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 56px) 0 72px;
  background:
    radial-gradient(900px 500px at 85% 40%, rgba(196,155,102,.14), transparent 60%),
    #070708;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-strong); font-weight: 500; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; margin-bottom: 20px; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: #c9c9ce; max-width: 38em; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 22px; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: #d6d6da; background: rgba(255,255,255,.03); }
.chips-sm li { padding: 3px 11px; font-size: .8rem; }
.direct { font-size: .95rem; color: var(--muted); margin: 0; }
.hero-media { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.hero-media img {
  width: 100%; border-radius: 28px;
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 46%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 82% at 50% 46%, #000 62%, transparent 100%);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.section-intro { color: var(--muted); font-size: 1.05rem; margin: 0; }
.notice { margin: 20px 0 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #d0d0d4; font-size: .95rem; }
.fineprint { color: var(--muted); font-size: .88rem; margin: 28px 0 0; text-align: center; }

/* ---------- Offers ---------- */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.offer {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px 28px;
}
.offer-featured { border-color: var(--accent); background: linear-gradient(180deg, #211d17, var(--surface) 40%); }
.offer-badge { position: absolute; top: -13px; left: 28px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; }
.offer-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(196,155,102,.14); color: var(--accent-strong); font-size: 1.35rem; margin-bottom: 18px; }
.offer h3 { font-size: 1.5rem; margin-bottom: 10px; }
.offer-for { color: #c9c9ce; font-size: .98rem; }
.offer h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 8px 0 10px; font-weight: 500; }
.ticks { list-style: none; margin-bottom: 20px; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: .95rem; color: #dcdce0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.facts { margin: auto 0 18px; border-top: 1px solid var(--line); }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 500; }
.needs { margin-bottom: 20px; font-size: .92rem; }
.needs summary { cursor: pointer; color: var(--accent-strong); font-weight: 500; padding: 6px 0; }
.needs ul { margin: 8px 0 0 18px; color: #c9c9ce; }
.needs li { margin-bottom: 4px; }

/* ---------- Case studies ---------- */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding: 48px 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 8px; }
.case-flip .shots { order: 2; }
.shots { display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + 16px); }
.shots-rest-2 { grid-template-columns: 1fr 1fr; }
.shots-rest-2 .shot-main { grid-column: 1 / -1; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; }
.shot img { width: 100%; }
.badge { display: inline-block; font-size: .78rem; letter-spacing: .04em; color: var(--accent-strong); border: 1px solid rgba(196,155,102,.45); border-radius: 999px; padding: 3px 12px; margin-bottom: 14px; }
.case h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.case-summary { color: #d0d0d4; font-size: 1.05rem; }
.case-details { margin: 18px 0 20px; }
.case-details > div { margin-bottom: 14px; }
.case-details dt { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--accent-strong); margin-bottom: 2px; }
.case-details dd { margin: 0; color: #c9c9ce; font-size: .97rem; }
.case-links { display: flex; flex-wrap: wrap; gap: 12px; }
.projects-cta { text-align: center; margin: 24px 0 0; color: var(--muted); font-size: 1.05rem; }

/* ---------- Process ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { margin: 0; color: #c0c0c5; font-size: .93rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-media img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; max-width: 440px; }
.about-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.about-copy p { color: #c9c9ce; }
.stack-title { font-size: 1.2rem; margin: 26px 0 10px; }
.stack { margin: 0 0 24px; }
.stack > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.stack dt { color: var(--muted); }
.stack dd { margin: 0; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { width: 44px; height: 44px; font-size: 1.1rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #d6d6da; transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact-info h3, .quote-card h3 { font-size: 1.4rem; margin-bottom: 16px; }
.contact-list { list-style: none; margin-bottom: 32px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.contact-list .icon { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: rgba(196,155,102,.14); color: var(--accent-strong); }
.contact-list .label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--text); word-break: break-word; }
.next-list { margin-left: 20px; color: #c9c9ce; }
.next-list li { margin-bottom: 8px; }

.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; scroll-margin-top: calc(var(--header-h) + 12px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .92rem; margin-bottom: 6px; font-weight: 500; }
.req { color: var(--accent-strong); }
.opt { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; min-height: 46px;
  background: #121214; color: var(--text); border: 1.5px solid #3a3a40; border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; /* 16px avoids iOS zoom */
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid rgba(196,155,102,.45); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .86rem; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.hint { color: var(--muted); font-size: .84rem; margin: 6px 0 0; }
.field-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }
.field-check label { margin: 0; font-weight: 400; color: #cfcfd3; }
.field-check .field-error { grid-column: 2; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-box { margin-bottom: 18px; }
.turnstile-box:empty { display: none; }

.btn-spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(20,17,12,.3); border-top-color: var(--accent-ink); border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin-top: 16px; border-radius: var(--radius-sm); font-size: .96rem; }
.form-status:empty { display: none; }
.form-status.is-success, .form-status.is-error { padding: 14px 16px; }
.form-status.is-success { background: rgba(127,214,160,.1); border: 1px solid rgba(127,214,160,.5); color: #d6f5e2; }
.form-status.is-error { background: rgba(255,141,141,.08); border: 1px solid rgba(255,141,141,.5); color: #ffdede; }
.form-status a { color: inherit; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0a0b; border-top: 1px solid var(--line); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr; gap: 40px; margin-bottom: 36px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 30em; font-size: .95rem; }
.footer-title { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
.site-footer ul { list-style: none; margin-bottom: 18px; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: #d6d6da; text-decoration: none; }
.site-footer li a:hover { color: var(--accent-strong); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .offers { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .case { grid-template-columns: 1fr; gap: 24px; }
  .case-flip .shots { order: 0; }
  .shots { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-media img { max-width: 360px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(15,15,16,.98); border-bottom: 1px solid var(--line);
    padding: 12px 20px 22px; display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a:not(.btn) { padding: 14px 12px; border-radius: 8px; font-size: 1.05rem; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; }
  .hero { padding-top: calc(var(--header-h) + 32px); padding-bottom: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-media { max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .quote-card { padding: 22px 18px; }
  .steps { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .shots-rest-2 { grid-template-columns: 1fr 1fr; }
  .stack > div { grid-template-columns: 1fr; gap: 2px; }
  .brand img { height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .nav-toggle, .quote-card, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}
