/*
Theme Name: Farrukh Portfolio
Description: Minimal personal portfolio for Farrukh Sharif
Author: Farrukh Sharif
Version: 4.1
*/

/* ── RESET ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #f5f4f0;
  --text:   #0e0e0d;
  --muted:  #9b9990;
  --border: #e2e0da;
  --gold:   #c9a84c;
  --silver: #9b9b9b;
  --bronze: #a0673a;
  --nav-h:  64px;
  --max:    1100px;
  --px:     clamp(24px, 5vw, 60px);
}

html { font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
p { margin: 0; }

/* ── NAV ─────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--px);
}
.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-name {
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text);
}
.site-nav { display: flex; gap: 32px; }
.site-nav a {
  font-size: .9rem;
  font-weight: 400;
  color: var(--muted);
  transition: color .15s;
  letter-spacing: .01em;
}
.site-nav a:hover,
.site-nav a.active-link { color: var(--text); }

/* ── LAYOUT ──────────────────────────────── */
.site-main { padding-top: var(--nav-h); min-height: 100vh; }
.wrap      { max-width: var(--max); margin: 0 auto; padding: 0 var(--px); }

/* ── HERO ────────────────────────────────── */
.hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero .sub { font-size: .95rem; color: var(--muted); }

/* ── PROJECT LIST ────────────────────────── */
.project-row {
  display: grid;
  /* left: title+client | right: awards+year */
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: opacity .15s;
}
.project-row:hover { opacity: .6; }

.proj-left  { min-width: 0; }
.proj-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 4px;
  /* prevent very long titles from breaking layout */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proj-client { font-size: .875rem; color: var(--muted); }

.proj-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.proj-year { font-size: .875rem; color: var(--muted); }

/* ── AWARD PILLS ─────────────────────────── */
/* On LIST page: show pills in a row, max 3 visible */
.awards {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 340px;
}

.pill {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  line-height: 1.5;
  white-space: nowrap;
}
.pill-gold   { background: rgba(201,168,76,.12);  color: var(--gold); }
.pill-silver { background: rgba(155,155,155,.12); color: var(--silver); }
.pill-bronze { background: rgba(160,103,58,.12);  color: var(--bronze); }
.pill-more   { background: rgba(155,155,155,.08); color: var(--muted); }

/* On SINGLE page: awards wrap freely */
.proj-head .awards {
  max-width: none;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

/* ── SINGLE PROJECT ──────────────────────── */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 52px 0 44px;
  font-size: .875rem;
  color: var(--muted);
  transition: color .15s;
}
.back:hover { color: var(--text); }

.proj-head {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.proj-head h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.proj-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.meta-block span:first-child {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: 6px;
}
.meta-block span:last-child {
  font-size: .9rem;
  font-weight: 500;
}
.meta-sep { width: 1px; height: 14px; background: var(--border); }

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 52px 0;
  background: var(--border);
}
.video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

.proj-body { padding-bottom: 80px; }
.proj-body h2 {
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 44px 0 14px;
}
.proj-body p {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 16px;
}

/* ── ABOUT ───────────────────────────────── */
.about-wrap  { padding: 72px 0 80px; }
.about-wrap h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 48px;
}
.about-body { max-width: 640px; }
.about-body p { font-size: 1.05rem; line-height: 1.85; margin-bottom: 24px; }

/* ── CONTACT ─────────────────────────────── */
.contact-wrap { padding: 72px 0 80px; }
.contact-wrap h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 48px;
}
.contact-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:first-child { border-top: 1px solid var(--border); }
.c-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 120px;
  flex-shrink: 0;
}
.c-val { font-size: 1rem; transition: color .15s; }
.c-val:hover { color: var(--muted); }

/* ── FOOTER ──────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px var(--px);
}
.site-footer .footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer p {
  font-size: .8rem;
  color: var(--muted);
}

/* ── HIDE WP DEFAULT FOOTER JUNK ─────────── */
#wp-footer,
.wp-footer { display: none; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 700px) {
  .project-row  {
    grid-template-columns: 1fr;
  }
  .proj-right   { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .awards       { justify-content: flex-start; max-width: none; }
  .contact-row  { flex-direction: column; gap: 4px; }
}
