/* norman-love.com — Light theme redesign (Direction 1a "Blueprint") */

/* ---------- self-hosted fonts ---------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;              /* variable font covers the full range */
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --bg: #fbfaf7;            /* warm off-white page */
  --ink: #17151f;          /* headings, nav CTA bg, dark sections */
  --text: #4b4759;         /* body / secondary text */
  --muted: #8a86a0;        /* fine print / mono labels */
  --accent: #2a6fdb;       /* highlight, logo mark, eyebrow, links */
  --btn: #2a6fdb;          /* primary button (change in one place) */
  --green: #2fbf8f;        /* live / success */
  --card: #ffffff;         /* cards, secondary button bg */
  --card-border: #e6e3f0;  /* card border */
  --hairline: #eceaf3;     /* dividers, strip borders */
  --btn-border: #d8d5e2;   /* secondary button border */
  --pill-border: #ddd9ea;  /* eyebrow pill border */
  --radius: 16px;          /* cards */
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg) radial-gradient(circle at 78% 30%, rgba(42, 111, 219, 0.06), transparent 45%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
/* full 1440 design frame: nav, hero, trust strip use 72px gutters */
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 72px; }
@media (max-width: 900px) { .container-wide { padding: 0 24px; } }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #1f57c3; }

.mono { font-family: var(--mono); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(12px);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.brand .love { font-weight: 400; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
}
.site-nav { display: flex; align-items: center; gap: 36px; font-size: 16px; font-weight: 500; }
.site-nav a { color: var(--text); }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta {
  color: #fff; background: var(--ink);
  padding: 12px 24px; border-radius: 10px; font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.site-nav .nav-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(23, 21, 31, 0.18); }
@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .container { padding: 0 22px; }
}

/* ---------- hero ---------- */
/* Design frame: 1440x940 — nav (~95px) + hero body (56px top pad) + trust strip
   pinned at the fold. min-height keeps the strip at the bottom of the viewport. */
.hero {
  position: relative; overflow: visible;
  padding: 56px 0 0;
  min-height: calc(100vh - 175px);
  min-height: calc(100svh - 175px);
}
.hero-grid-bg {
  position: absolute; left: 0; right: 0; bottom: 0; top: -110px; /* extends up behind the translucent nav */
  z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 21, 31, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 31, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 64px; align-items: start; grid-template-columns: minmax(0, 1fr) 560px; }
@media (max-width: 1140px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 480px; } }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding-bottom: 48px; } }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--pill-border); background: #fff;
  border-radius: 999px; padding: 8px 16px;
  font-size: 14px; font-weight: 500; color: var(--accent);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

h1 {
  margin-top: 26px;
  font-size: clamp(2.4rem, 5.28vw, 76px); /* 76px at the 1440 design frame */
  line-height: 1.04; letter-spacing: -0.02em; font-weight: 700;
  color: var(--ink);
}

/* cycling accent headline */
.cycle { position: relative; display: inline-block; min-width: 5.5em; white-space: nowrap; color: var(--accent); }
.cyc { position: absolute; left: 0; top: 0; opacity: 0; animation: wordcycle 9s infinite; }
.cyc2 { animation-delay: 3s; }
.cyc3 { animation-delay: 6s; }
@keyframes wordcycle {
  0%, 2%   { opacity: 0; transform: translateY(14px); }
  5%, 29%  { opacity: 1; transform: translateY(0); }
  33%, 100%{ opacity: 0; transform: translateY(-14px); }
}

.hero-sub { margin-top: 28px; max-width: 560px; color: var(--text); font-size: 21px; line-height: 1.6; }

.cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 30px; border: 0; border-radius: 10px;
  font-family: var(--font); font-size: 17px; font-weight: 600; line-height: 1;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}
.btn-primary { color: #fff; background: var(--btn); box-shadow: 0 8px 24px rgba(42, 111, 219, 0.3); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 30px rgba(42, 111, 219, 0.36); }
.btn-ghost { color: var(--ink); background: #fff; border: 1.5px solid var(--btn-border); }
.btn-ghost:hover { color: var(--ink); border-color: var(--muted); box-shadow: 0 6px 18px rgba(23, 21, 31, 0.07); }
.hero-fine { margin-top: 26px; font-size: 15px; color: var(--muted); }

/* hero screenshot card + floating chips */
.hero-art { position: relative; width: 100%; max-width: 560px; margin-top: 8px; }
@media (max-width: 980px) { .hero-art { margin: 0 auto; } }
.shot-card {
  background: #fff; border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 50px rgba(23, 21, 31, 0.08);
}
.shot { display: block; width: 100%; height: auto; }
.shot-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-top: 1px solid var(--hairline); }
.shot-url { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.shot-live { font-size: 13px; font-weight: 600; color: var(--green); }

.float-chip {
  position: absolute; background: #fff; color: var(--ink);
  border: 1px solid var(--card-border); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(23, 21, 31, 0.12);
  padding: 14px 18px; font-size: 14px; font-weight: 500;
  animation: floaty 5s ease-in-out infinite;
}
.chip-tr { top: -24px; right: -28px; }
.chip-bl { bottom: 64px; left: -44px; animation-delay: 2s; }
.chip-muted { color: var(--muted); font-size: 12px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 980px) {
  .chip-tr { top: -16px; right: 8px; }
  .chip-bl { bottom: 8px; left: 8px; }
}
@media (max-width: 560px) { .float-chip { display: none; } }

/* ---------- trust strip ---------- */
.trust { background: #fff; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding-top: 30px; padding-bottom: 30px; font-size: 15px; }
.trust-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 500; color: var(--muted); }
.trust-row a { color: var(--text); font-weight: 500; }
.trust-row a:hover { color: var(--accent); }
.trust-more { color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 42rem; margin-bottom: 48px; }
.kicker { font-family: var(--mono); color: var(--accent); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
h2 { margin-top: 14px; font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; color: var(--ink); }
.section-head p { margin-top: 14px; color: var(--text); font-size: 1.05rem; }

/* ---------- service cards ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--card-border); background: #fff;
  border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(23, 21, 31, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(23, 21, 31, 0.08); }
.card-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(42, 111, 219, 0.1); color: var(--accent);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); }
.card p { margin-top: 10px; color: var(--text); font-size: 0.96rem; flex: 1; }
.card .price { margin-top: 18px; font-size: 0.9rem; color: var(--ink); }
.card .price strong { font-size: 1.3rem; font-weight: 700; }
.card .price span { color: var(--muted); }
.card-link { margin-top: 14px; font-size: 0.95rem; font-weight: 600; color: var(--accent); }
.card-link:hover { color: #1f57c3; }

/* ---------- how it works ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px; background: #fff; box-shadow: 0 1px 2px rgba(23, 21, 31, 0.03); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 1rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.08rem; color: var(--ink); }
.step p { margin-top: 8px; color: var(--text); font-size: 0.95rem; }

/* ---------- work / portfolio ---------- */
.work-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  border: 1px solid var(--card-border); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(23, 21, 31, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.work-card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(23, 21, 31, 0.08); }
.work-art { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--hairline); }
.work-body { padding: 22px 24px 26px; }
.work-body h3 { font-size: 1.08rem; color: var(--ink); }
.work-body h3 a { color: var(--ink); }
.work-body h3 a:hover { color: var(--accent); }
.work-tag { display: inline-block; margin-bottom: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.work-body p { margin-top: 8px; color: var(--text); font-size: 0.94rem; }

/* ---------- cta band (dark contrast section) ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: 64px; text-align: center;
  background: var(--ink); color: #fff;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 50% -30%, rgba(42, 111, 219, 0.45), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 34rem; margin-left: auto; margin-right: auto; }
.cta-band p { margin: 14px auto 0; max-width: 32rem; color: rgba(255, 255, 255, 0.72); }
.cta-band .btn { margin-top: 28px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr 1.2fr; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside h1 { margin-top: 14px; font-size: clamp(2rem, 4vw, 2.6rem); }
.contact-aside p { margin-top: 14px; color: var(--text); }
.contact-points { margin-top: 26px; display: grid; gap: 14px; }
.contact-point { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; color: var(--text); }
.contact-point .tick { color: var(--green); flex-shrink: 0; margin-top: 3px; }

.form-card { border: 1px solid var(--card-border); background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: 0 20px 50px rgba(23, 21, 31, 0.05); }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
input, select, textarea {
  width: 100%; font-family: var(--font); font-size: 0.96rem;
  color: var(--ink); background: #fff;
  border: 1px solid var(--btn-border); border-radius: 10px;
  padding: 12px 14px; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: #b3afc2; }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 111, 219, 0.15);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a86a0' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
select option { background: #fff; color: var(--ink); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-msg { border-radius: 10px; padding: 13px 16px; font-size: 0.92rem; margin-bottom: 20px; }
.form-msg.ok { background: rgba(47, 191, 143, 0.1); border: 1px solid rgba(47, 191, 143, 0.4); color: #127a5a; }
.form-msg.err { background: rgba(220, 38, 38, 0.08); border: 1px solid rgba(220, 38, 38, 0.3); color: #b91c1c; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 130px 0; }
.notfound h1 { font-size: 3rem; }
.notfound p { margin-top: 12px; color: var(--text); }
.notfound .btn { margin-top: 26px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); background: #fff; padding: 56px 0 32px; margin-top: 40px; }
.footer-row { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; padding-bottom: 30px; }
@media (max-width: 700px) { .footer-row { grid-template-columns: 1fr; } }
.footer-brand { font-size: 1.05rem; color: var(--ink); }
.footer-brand strong { font-weight: 700; }
.footer-note { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.footer-links { display: grid; gap: 9px; font-size: 0.9rem; align-content: start; }
.footer-links a { color: var(--text); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { border-top: 1px solid var(--hairline); padding-top: 22px; font-size: 0.82rem; color: var(--muted); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cyc { animation: none; opacity: 0; }
  .cyc:nth-child(1) { position: static; opacity: 1; }
  .float-chip { animation: none; }
}
