/* =========================================================
   Mandy Lee — mandylee.tech
   Clean rebuild of the Canva site in plain HTML/CSS/JS.
   Palette + type mirror the original neon-on-black look.
   ========================================================= */

/* Moontime — the neon script wordmark font (self-hosted). */
@font-face {
  font-family: "Moontime";
  src: url("../assets/fonts/moontime.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors */
  --bg:        #000000;
  --bg-alt:    #0b0b0d;
  --surface:   rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border:    rgba(255, 255, 255, 0.12);
  --text:      #ffffff;
  --muted:     rgba(255, 255, 255, 0.66);
  --accent:    #ffdf2b;   /* neon yellow */
  --accent-soft:#ffec82;
  --cream:     #fffbe6;

  /* Type */
  --font-body: "Montserrat", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-script: "Moontime", "Satisfy", cursive;

  /* Layout */
  --maxw: 1140px;
  --radius: 16px;
  --gap: clamp(1rem, 2vw, 1.6rem);
}

/* ---------------- Reset-ish ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { line-height: 1.15; margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }
.container.narrow { max-width: 780px; }
.center { text-align: center; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.8em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #111;
  box-shadow: 0 0 0 rgba(255, 223, 43, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 223, 43, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-lg { font-size: 1.05rem; padding: 0.95em 1.9em; }

/* ---------------- Header / nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand-name {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
}
.primary-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .16s ease;
}
.primary-nav a:hover { color: var(--text); }
.primary-nav .nav-cta {
  color: #111;
  background: var(--accent);
  padding: 0.5em 1.1em;
  border-radius: 999px;
}
.primary-nav .nav-cta:hover { color: #111; box-shadow: 0 6px 22px rgba(255, 223, 43, 0.3); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.hero-title {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(0.1rem, 1vw, 0.6rem);
}
.hero-name {
  flex: 0 0 auto;
  font-weight: 300;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  letter-spacing: 0.06em;
  line-height: 1.04;
  text-align: right;   /* staggers LEE. under the right of MANDY */
}
.hero-neon {
  flex: 0 1 auto;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(4.5rem, 15vw, 15rem);
  line-height: 0.78;
  color: var(--cream);
  margin-left: 0.05em;
  padding-bottom: 0.14em;
  text-shadow:
    0 0 5px #fffef2,
    0 0 12px #fff3b0,
    0 0 22px var(--accent),
    0 0 40px rgba(255, 223, 43, 0.7),
    0 0 60px rgba(255, 223, 43, 0.4);
}
.hero-tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--accent);
  margin: 1.4rem 0 2rem;
  max-width: 20ch;          /* keeps it to a tidy couple of lines */
  text-wrap: balance;       /* no orphaned "for" on its own line */
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
}

/* Keep the wordmark layered ABOVE the photo so a big 'tech' is never covered. */
.hero-copy { position: relative; z-index: 2; }

/* ---- Hero portrait (full color on a pure-black bg that blends into the page) ---- */
.hero-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  align-self: start;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* Offset so her head lands at the wordmark top (the tall 'tech' pushes the
     name ~31px below the column top). */
  padding-top: 31px;
}
.hero-portrait img {
  display: block;
  flex: 0 0 auto;           /* keep true proportions — no shrink/stretch */
  height: 518px;            /* spans exactly wordmark top -> social row */
  width: auto;              /* whole frame, tight crop = larger subject */
  /* The photo's background is pure #000 — identical to the page — so its edges
     are invisible. No blend mode or glow overlay (those created the visible box). */
}

/* ---------------- Social row ---------------- */
.social-row { display: flex; gap: 0.7rem; align-items: center; }
.social-row a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.social-row svg { width: 18px; height: 18px; }
.social-row a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 223, 43, 0.25);
}

/* ---------------- Intro strip ---------------- */
.strip {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-alt);
  padding: clamp(2.4rem, 5vw, 3.6rem) 0;
}
.lead {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400;
  max-width: 60ch;
  margin: 0 0 1rem;
}
.strip-note {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--accent);
  margin: 0;
}

/* ---------------- Sections ---------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center, .center .section-head { margin-inline: auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.7rem;
}
.section-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.section-intro {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  margin: 1rem 0 0;
}
.section-outro {
  margin-top: 2rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------------- Cards grid ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 223, 43, 0.5);
  background: var(--surface-2);
}
.card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--cream);
}
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------------- Pricing note ---------------- */
.pricing-note {
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
}
.pricing-note strong { color: var(--accent); }
.pricing-note p { margin: 0; color: var(--muted); max-width: 55ch; }
.pricing-note .btn { margin-top: 0.8rem; }

/* ---------------- Prose (About) ---------------- */
.prose h3 {
  font-size: 1.35rem;
  color: var(--accent);
  margin: 2rem 0 0.6rem;
}
.prose p { color: rgba(255, 255, 255, 0.82); margin: 0 0 1rem; }
.sparkle-list { margin: 0 0 1.2rem; display: grid; gap: 0.5rem; }
.sparkle-list li { position: relative; padding-left: 1.8rem; color: rgba(255, 255, 255, 0.82); }
.sparkle-list li::before { content: "✨"; position: absolute; left: 0; }

/* ---------------- Quotes ---------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap);
}
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.quote blockquote {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
}
.quote blockquote::before {
  content: "\201C";
  font-family: var(--font-script);
  color: var(--accent);
  font-size: 2.6rem;
  line-height: 0;
  margin-right: 0.15em;
  vertical-align: -0.35em;
}
.quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  margin-top: auto;
}
.quote cite span {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------------- Contact ---------------- */
.contact { background: radial-gradient(120% 120% at 50% 0%, rgba(255, 223, 43, 0.08), transparent 55%), var(--bg); }
.contact .btn { margin-top: 1.6rem; }

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.footer-brand { font-weight: 700; letter-spacing: 0.12em; }
.footer-social a { width: 36px; height: 36px; }
.footer-copy { margin: 0; color: var(--muted); font-size: 0.85rem; }

/* ---------------- Responsive hero ---------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait {
    max-width: 360px;
    margin: 1.5rem auto 0;
    padding-top: 0;
    order: 2;
  }
  .hero-portrait img { height: auto; width: 100%; }   /* reset fixed height when stacked */
  .hero-copy { order: 1; }
}
@media (max-width: 440px) {
  .hero-portrait { max-width: 280px; }
}

/* ---------------- Responsive nav ---------------- */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .primary-nav.open { max-height: 480px; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }
  .primary-nav li { border-top: 1px solid rgba(255, 255, 255, 0.05); }
  .primary-nav a { display: block; padding: 0.9rem clamp(1.2rem, 4vw, 2.5rem); }
  .primary-nav .nav-cta { border-radius: 0; background: transparent; color: var(--accent); }
}

/* ---------------- Motion preferences ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------------- Reveal-on-scroll ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* =========================================================
   Redesigned lower-page components
   ========================================================= */
.section-intro a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.about-story p { color: rgba(255, 255, 255, 0.82); margin: 0 0 1.1rem; font-size: 1.05rem; }
.pull-quote {
  margin: 1.7rem 0 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--accent);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.4;
}
.about-facts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
}
.about-facts dl { margin: 0; display: grid; gap: 1.2rem; }
.about-facts dt { font-size: 1.55rem; font-weight: 700; color: var(--accent); line-height: 1; }
.about-facts dd { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* ---- Pillars ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(255, 223, 43, 0.5); background: var(--surface-2); }
.pillar-num {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.2rem;
}
.pillar h3 { font-size: 1.3rem; margin-bottom: 0.7rem; color: var(--cream); }
.pillar p { color: var(--muted); margin: 0 0 1.2rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  font-size: 0.8rem;
  padding: 0.35em 0.8em;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.stats li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.3rem;
  text-align: center;
}
.stat-num { display: block; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--accent); line-height: 1.05; }
.stat-label { display: block; margin-top: 0.5rem; color: var(--muted); font-size: 0.92rem; }

/* ---- Selected work ---- */
.work-group-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
  margin: 2.2rem 0 1rem;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* 8 items -> 2 even rows */
  gap: var(--gap);
}
.work-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.work-card:hover { transform: translateY(-4px); border-color: rgba(255, 223, 43, 0.5); background: var(--surface-2); }
.work-type { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.work-card h4 { font-size: 1.05rem; margin: 0; color: #fff; font-weight: 600; line-height: 1.3; }
.work-meta { margin-top: auto; color: var(--muted); font-size: 0.85rem; }

/* ---- Show list + clients ---- */
.show-list, .clients { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.clients li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6em 1.2em;
  color: var(--cream);
  font-weight: 500;
  font-size: 1.05rem;
  transition: border-color .18s ease;
}
.clients li:hover { border-color: rgba(255, 223, 43, 0.6); }
.show-list li { display: flex; }
.show-list a {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6em 1.2em;
  color: var(--cream);
  font-weight: 500;
  transition: border-color .18s ease, color .18s ease;
}
.show-list a:hover { border-color: rgba(255, 223, 43, 0.6); color: #fff; }

/* ---- Featured testimonial ---- */
.quote-feature {
  margin: 0 0 var(--gap);
  background: linear-gradient(135deg, rgba(255, 223, 43, 0.09), transparent 60%), var(--surface);
  border: 1px solid rgba(255, 223, 43, 0.3);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}
.quote-feature blockquote { margin: 0 0 1.1rem; font-size: clamp(1.2rem, 2.2vw, 1.65rem); line-height: 1.45; color: #fff; }
.quote-feature figcaption { font-weight: 600; color: var(--cream); }
.quote-feature figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }

/* ---- Contact ---- */
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.6rem; }
.contact-note { margin-top: 1.4rem; color: var(--muted); font-size: 0.9rem; }

/* ---- Service-page links ---- */
.pillar { display: flex; flex-direction: column; }
.pillar .tags { margin-bottom: 1.2rem; }
.pillar-link { margin-top: auto; color: var(--accent); font-weight: 600; text-decoration: none; }
.pillar-link:hover { text-decoration: underline; }

.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.related a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.related a:hover { border-color: rgba(255, 223, 43, 0.5); background: var(--surface-2); }
.related a span { display: block; color: var(--muted); font-weight: 400; font-size: 0.9rem; margin-top: 0.3rem; }
@media (max-width: 600px) { .related { grid-template-columns: 1fr; } }

/* ---- Even-row testimonial grid ---- */
.quotes { grid-template-columns: repeat(3, 1fr); }   /* 6 items -> 2 even rows */
.quote-lead { border-color: rgba(255, 223, 43, 0.45); background: linear-gradient(135deg, rgba(255, 223, 43, 0.08), transparent 60%), var(--surface); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }   /* stays even for 8 */
  .quotes { grid-template-columns: repeat(2, 1fr); }      /* stays even for 6 */
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
}
