/*
Theme Name: Blueprint Portfolio
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A blueprint-drafting themed portfolio for WordPress developers. Built with a Home, Designs, and Contact sheet. Edit the CONTENT marked "EDIT ME" in the template files, and edit colors/fonts in the :root block below.
Version: 1.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: blueprint-portfolio
*/

/* ============================================
   DESIGN TOKENS — change your palette/fonts here
   ============================================ */
:root {
  --ink: #0B1E2D;          /* primary background */
  --panel: #10293D;        /* card / panel background */
  --panel-raised: #14314A; /* hovered / raised panel */
  --line: #22475E;         /* hairline dividers, grid lines */
  --line-soft: #1A3549;    /* fainter grid lines */
  --cyan: #6FE3FF;         /* blueprint accent — lines, callouts */
  --amber: #FFB627;        /* warm accent — CTAs, highlights */
  --paper: #F4F7F5;        /* primary text on dark */
  --slate: #93ACBC;        /* secondary / muted text */
  --slate-dim: #5E7C8E;    /* tertiary text, captions */

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius: 3px;
  --container: 1180px;
  --edge: clamp(20px, 5vw, 64px);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

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

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ============================================
   BLUEPRINT GRID BACKGROUND — the recurring motif
   ============================================ */
.grid-bg {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
}

/* registration / crosshair marks — used at section corners like on a drafting sheet */
.reg-mark { position: relative; }
.reg-mark::before, .reg-mark::after {
  content: '';
  position: absolute;
  background: var(--slate-dim);
  pointer-events: none;
}
.reg-mark::before { width: 13px; height: 1px; }
.reg-mark::after { width: 1px; height: 13px; }
.reg-mark.tl::before, .reg-mark.tl::after { top: 0; left: 0; }
.reg-mark.tr::before, .reg-mark.tr::after { top: 0; right: 0; }
.reg-mark.tr::before { left: auto; }
.reg-mark.tr::after { left: auto; }

/* ============================================
   LAYOUT
   ============================================ */
.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--edge); padding-right: var(--edge); }
.sheet { padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); position: relative; }
.sheet + .sheet { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--cyan); display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--amber); color: var(--ink); font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); background: #ffc655; }
.btn-ghost { border-color: var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 30, 45, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.02em; color: var(--paper); }
.logo strong { color: var(--amber); }
.primary-nav ul { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
}
.primary-nav a:hover, .primary-nav a.current { color: var(--paper); background: var(--panel); }
.primary-nav a .num { color: var(--cyan); margin-right: 6px; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; }

/* ============================================
   HERO
   ============================================ */
.hero { padding-top: clamp(56px, 9vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.04;
  color: var(--paper);
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-sub { margin-top: 22px; font-size: 18px; color: var(--slate); max-width: 46ch; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.spec-row { display: flex; gap: 34px; margin-top: 56px; flex-wrap: wrap; }
.spec {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.spec .val { font-family: var(--font-display); font-size: 30px; color: var(--paper); font-weight: 700; }
.spec .val .unit { font-size: 15px; color: var(--cyan); font-family: var(--font-mono); margin-left: 3px; }
.spec .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-dim); margin-top: 4px; }

/* blueprint diagram — the signature element */
.blueprint-diagram {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 24px 24px;
}
.blueprint-diagram .tag {
  position: absolute; top: -11px; left: 20px;
  background: var(--ink); padding: 0 8px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--slate-dim); text-transform: uppercase;
}
.blueprint-diagram svg { width: 100%; height: auto; display: block; }

.bp-line { fill: none; stroke: var(--cyan); stroke-width: 1.4; opacity: 0.85; }
.bp-draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s ease forwards 0.3s; }
.bp-fill { opacity: 0; animation: reveal 0.8s ease forwards; }
.bp-fill.f1 { animation-delay: 1.6s; }
.bp-fill.f2 { animation-delay: 1.85s; }
.bp-fill.f3 { animation-delay: 2.1s; }
.bp-fill.f4 { animation-delay: 2.35s; }
.bp-label { font-family: 'JetBrains Mono', monospace; font-size: 8px; fill: var(--slate-dim); letter-spacing: 0.05em; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes reveal { to { opacity: 1; } }

/* ============================================
   PROCESS (sequence — numbering justified: real ordered steps)
   ============================================ */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.process-item { background: var(--ink); padding: 30px 24px; }
.process-item .idx { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); }
.process-item h3 { font-size: 19px; margin-top: 14px; color: var(--paper); }
.process-item p { margin-top: 10px; font-size: 14.5px; color: var(--slate); }

/* ============================================
   SECTION HEADS
   ============================================ */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); color: var(--paper); }
.section-head .desc { color: var(--slate); max-width: 42ch; font-size: 15.5px; }

/* ============================================
   DESIGN / PROJECT CARDS
   ============================================ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 22px; margin-top: 44px; }
.proj-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.proj-card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.proj-thumb {
  aspect-ratio: 4/3;
  position: relative;
  display: flex; align-items: flex-end;
  padding: 14px;
}
.proj-thumb .frame {
  position: absolute; inset: 10px;
  border: 1px dashed rgba(244,247,245,0.25);
  border-radius: 2px;
}
.proj-thumb .tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(11,30,45,0.55); color: var(--paper); padding: 4px 8px; border-radius: 2px; position: relative; z-index: 1;
}
.proj-body { padding: 18px 18px 20px; }
.proj-body h3 { font-size: 17px; color: var(--paper); }
.proj-meta { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--slate-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.proj-body p.desc { margin-top: 10px; font-size: 13.5px; color: var(--slate); }

/* filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.filter-btn {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; color: var(--slate);
  transition: all 0.15s ease;
}
.filter-btn:hover { color: var(--paper); border-color: var(--slate); }
.filter-btn.active { background: var(--cyan); color: var(--ink); border-color: var(--cyan); font-weight: 600; }

.designs-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--slate-dim); margin-top: 10px; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative;
}
.cta-banner h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 20ch; }
.cta-banner .sub { color: var(--slate); margin-top: 10px; max-width: 40ch; }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; margin-top: 48px; }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; color: var(--paper); font-family: var(--font-body); font-size: 15px;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.form-status { margin-top: 16px; font-family: var(--font-mono); font-size: 13px; }
.form-status.success { color: var(--cyan); }
.form-status.error { color: #ff8a7a; }

.contact-side { border-left: 1px solid var(--line); padding-left: 40px; }
.contact-side .item { margin-bottom: 28px; }
.contact-side .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-dim); }
.contact-side .val { margin-top: 6px; font-size: 17px; color: var(--paper); }
.contact-side .val a:hover { color: var(--cyan); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.site-footer p { font-family: var(--font-mono); font-size: 12px; color: var(--slate-dim); }
.site-footer .socials { display: flex; gap: 18px; }
.site-footer .socials a { font-family: var(--font-mono); font-size: 12px; color: var(--slate); }
.site-footer .socials a:hover { color: var(--cyan); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 30px; }
}
@media (max-width: 680px) {
  .primary-nav { display: none; }
  .process-list { grid-template-columns: 1fr; }
  .spec-row { gap: 22px; }
}
