/* ========================================================================
   Taqneik — single-page portfolio site
   Palette and rhythm matched to the source PDF: dark warm bg, cream
   typography, gold accent bar, multi-hued service cards.
   ======================================================================== */

:root {
  --bg:            #15141a;
  --bg-alt:        #1a1920;
  --surface:       #1f1d26;
  --surface-2:     #26242e;
  --border:        rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);

  --text:          #f0e7d8;   /* warm cream — used for h1/h2 */
  --text-2:        #e6dccb;   /* slightly cooler cream — used for h3/h4 */
  --muted:         #8e8a86;   /* body copy */
  --muted-2:       #6a6661;   /* secondary meta */

  --gold:          #d4ad7f;
  --gold-strong:   #e7c79b;
  --gold-soft:     rgba(212, 173, 127, 0.18);

  --teal:          #6fb8a6;
  --peach:         #d99b76;
  --purple:        #b3a1d4;
  --coral:         #e08e75;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow:    0 6px 24px rgba(0, 0, 0, 0.35);

  --container: 1140px;
  --container-narrow: 720px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset / base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h2 { font-size: clamp(2rem, 4vw + 0.5rem, 3rem); }
h3 { font-size: 1.4rem; color: var(--text-2); }
h4 { font-size: 1.05rem; color: var(--text-2); }
p  { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: var(--container-narrow); }

/* Navigation ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 20, 26, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-logo {
  height: 36px;
  width: 36px;
  border-radius: 8px;
  object-fit: cover;
  /* JPEG bg is near-black; this lifts only the gold mark visually */
  mix-blend-mode: lighten;
}
.brand-name {
  color: var(--text);
  font-size: 1.1rem;
}
/* Accessible hidden text — keeps the wordmark in the DOM for SEO/a11y */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.93rem;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--border-strong);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  color: var(--text-2) !important;
}
.nav-cta:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-strong) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0 9px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-2);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.25rem;
    gap: 0.85rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle { display: flex; }
}

/* Shared section + typographic primitives ------------------------------ */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.eyebrow-center { text-align: center; }
.section-title {
  font-size: clamp(2.25rem, 4.5vw + 0.5rem, 3.5rem);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.section-title-center {
  display: block;
  text-align: center;
}
.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 0 2.5rem;
}
.section-lead-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 3rem;
}
.subhead {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}
.accent-bar {
  display: block;
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 0.6rem;
}
.accent-bar-center { margin-left: auto; margin-right: auto; }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease),
              background 0.2s var(--ease),
              color 0.2s var(--ease),
              border-color 0.2s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: #1a1611;
}
.btn-primary:hover {
  background: var(--gold-strong);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-strong);
}
.btn-block {
  width: 100%;
  padding: 1rem 1.4rem;
}

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  position: relative;
}
.hero-dots {
  position: absolute;
  top: -1rem;
  right: 1rem;
  width: 220px;
  height: 110px;
  background-image: radial-gradient(circle, rgba(212, 173, 127, 0.35) 1.2px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: 0.55;
  pointer-events: none;
}
.hero-title {
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}
/* Hero brand image (full lockup). The JPEG's dark canvas is lifted out
   via mix-blend-mode: lighten so only the gold mark + wordmark show. */
.hero-logo {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: -1.5rem 0 -0.5rem -1.25rem;
  mix-blend-mode: lighten;
  user-select: none;
  pointer-events: none;
}
.hero-tagline {
  color: var(--gold-strong);
  font-size: clamp(1.15rem, 1.5vw + 0.6rem, 1.55rem);
  font-weight: 500;
  margin: 1.25rem 0 1rem;
}
.hero-services {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 2.25rem;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  color: var(--muted);
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* About — feature list -------------------------------------------------- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .feature-list { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
}
.feature-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.feature-list h4 { margin-bottom: 0.25rem; }
.feature-list p  { margin: 0; color: var(--muted); }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.55rem;
  flex-shrink: 0;
}
.dot-gold { background: var(--gold); }

/* Services -------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 880px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.service-stripe {
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 4px;
  border-radius: 0 0 4px 4px;
}
.service-teal   .service-stripe { background: var(--teal); }
.service-peach  .service-stripe { background: var(--peach); }
.service-purple .service-stripe { background: var(--purple); }
.service-coral  .service-stripe { background: var(--coral); }

.service-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
  margin: 0 0 0.5rem;
}
.service-card h3 { margin-bottom: 0.65rem; }
.service-desc {
  color: var(--muted);
  font-size: 0.97rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.service-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.service-teal   .service-list li::before { background: var(--teal); }
.service-peach  .service-list li::before { background: var(--peach); }
.service-purple .service-list li::before { background: var(--purple); }
.service-coral  .service-list li::before { background: var(--coral); }

/* Work / case studies --------------------------------------------------- */
.case {
  margin-bottom: 3rem;
}
.case-header h3 {
  font-size: clamp(1.6rem, 2.5vw + 0.6rem, 2.1rem);
  color: var(--text);
  margin-bottom: 0.35rem;
}
.case-sub {
  color: var(--muted-2);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.case-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.case-block { }
.case-label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.case-block p { color: var(--muted); margin: 0; }
.impact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.impact-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
}
.impact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.impact-gold   li::before { background: var(--gold); }
.impact-purple li::before { background: var(--purple); }
.impact-coral  li::before { background: var(--coral); }

/* Process — steps ------------------------------------------------------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}
.steps li {
  display: flex;
  gap: 1.5rem;
  position: relative;
}
.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 56px;
  bottom: -2rem;
  width: 1px;
  border-left: 1px dashed rgba(212, 173, 127, 0.3);
}
.step-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e7c79b, #d4ad7f);
  color: #1a1611;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(212, 173, 127, 0.18);
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--muted); margin: 0; }

/* Tech table ------------------------------------------------------------ */
.tech-table {
  display: flex;
  flex-direction: column;
}
.tech-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--border);
}
.tech-row:last-child { border-bottom: none; }
.tech-label {
  flex-shrink: 0;
  width: 110px;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
}
.tech-tag {
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.02);
}

/* Engagement / pricing -------------------------------------------------- */
.pricing { align-items: stretch; }
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  background: linear-gradient(160deg, #d4ad7f, #b8915f);
  color: #1a1611;
  border: 1px solid var(--gold);
}
.price-card-featured h3,
.price-card-featured .price-eyebrow,
.price-card-featured .price-amount,
.price-card-featured .price-desc { color: #1a1611; }
.price-card-featured .check-list li { color: #2a221a; }
.price-card-featured .check-list li::before { color: #1a1611; }
.price-card-featured .price-best,
.price-card-featured .price-best span { color: #2a221a; }

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1611;
  color: var(--gold-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
}
.price-eyebrow {
  font-size: 0.95rem;
  color: var(--text-2);
  font-weight: 600;
  margin: 0;
}
.price-amount {
  font-size: 1.85rem;
  color: var(--text);
  font-weight: 700;
  margin: 0.25rem 0 0.75rem;
}
.price-desc {
  color: var(--muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  min-height: 3.5em;
}
.price-card-featured .price-desc {
  border-bottom-color: rgba(26, 22, 17, 0.2);
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}
.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}
.price-best {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted-2);
}
.price-best span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-2);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
}
.pricing-footnote {
  text-align: center;
  margin-top: 2rem;
  color: var(--muted-2);
  font-size: 0.92rem;
}

/* Contact form --------------------------------------------------------- */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: var(--shadow);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 580px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field > span {
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 600;
}
.field em { color: var(--muted-2); font-style: normal; font-weight: 400; }
.field input,
.field select,
.field textarea {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.hp { display: none !important; }
.form-status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}
.form-status.is-error   { color: #e08e75; }
.form-status.is-success { color: #6fb8a6; }
.form-status.is-info    { color: var(--gold-strong); }
.contact-meta {
  text-align: center;
  margin-top: 2rem;
  color: var(--muted-2);
  font-size: 0.9rem;
}

/* Footer ---------------------------------------------------------------- */
.footer {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-brand {
  margin: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.footer-tagline { margin: 0; color: var(--muted); font-size: 0.92rem; }
.footer-meta { margin: 0; color: var(--muted-2); font-size: 0.85rem; }

/* Reveal-on-scroll ------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}
