/*
Theme Name: Leyton Zhang SEO
Theme URI: https://leytonzhang.com/
Author: Leyton Zhang
Author URI: https://leytonzhang.com/
Description: A lightweight, conversion-focused WordPress theme for Leyton Zhang's SEO consultancy.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: leyton-seo
*/

:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --ink: #111318;
  --muted: #666a73;
  --line: #dedfd9;
  --accent: #163a5f;
  --accent-2: #0f2a46;
  --soft: #e9eef2;
  --radius: 20px;
  --shadow: 0 18px 60px rgba(17,19,24,.08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,244,239,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(222,223,217,.8);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; font-weight: 780; letter-spacing: -.02em; font-size: 20px; }
.brand small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: #3e424a; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 11px 17px; border-radius: 999px; background: var(--ink); color: #fff !important; font-weight: 680; }
.menu-toggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--ink); }

.hero { padding: 82px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.14fr .86fr; gap: 70px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 13px; font-weight: 730; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; line-height: 1.07; letter-spacing: -.045em; }
h1 { max-width: 780px; font-size: clamp(50px, 6.4vw, 88px); font-weight: 760; }
h2 { font-size: clamp(38px, 4.2vw, 60px); font-weight: 740; }
h3 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.hero-copy > p { max-width: 700px; margin: 28px 0 0; font-size: 20px; color: #555a63; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 21px; border-radius: 999px; font-size: 15px; font-weight: 700; border: 1px solid transparent; transition: .18s ease; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); background: #272a31; }
.btn-secondary { border-color: #cfd1cc; background: rgba(255,255,255,.45); }
.btn-secondary:hover { background: #fff; }
.capabilities { margin-top: 28px; font-size: 13px; letter-spacing: .04em; color: #71757d; }
.portrait-card { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: #d9e0e7; }
.portrait-card img { width: 100%; aspect-ratio: 1 / 1.04; object-fit: cover; object-position: center 36%; }
.portrait-note { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); font-size: 14px; color: #444952; }
.portrait-note strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

.signal-strip { padding: 0 0 90px; }
.signal-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signal { padding: 28px 24px 28px 0; }
.signal + .signal { border-left: 1px solid var(--line); padding-left: 28px; }
.signal strong { display: block; margin-bottom: 4px; font-size: 17px; }
.signal span { color: var(--muted); font-size: 15px; }

.section { padding: 104px 0; }
.section-white { background: var(--surface); }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: end; margin-bottom: 54px; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 660px; }
.cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.card { padding: 34px; min-height: 260px; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfbf8; }
.card-num { margin-bottom: 56px; color: var(--accent); font-size: 13px; font-weight: 760; letter-spacing: .12em; }
.card p { margin: 15px 0 0; color: var(--muted); }

.dark { background: #12161d; color: #fff; }
.dark .eyebrow { color: #a7c1da; }
.dark .section-head p { color: #abb1bb; }
.process { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.step { padding: 30px; border-radius: var(--radius); border: 1px solid #2e3540; background: #171c24; }
.step .number { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 54px; border-radius: 50%; background: #eef3f7; color: #11161c; font-size: 13px; font-weight: 800; }
.step p { color: #aeb4be; margin: 15px 0 0; }
.process-cta { margin-top: 34px; }
.dark .btn-primary { background: #fff; color: #111318; }
.dark .btn-primary:hover { background: #edf0f2; }

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.fit-copy p { color: var(--muted); font-size: 18px; }
.fit-list { border-top: 1px solid var(--line); }
.fit-item { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.fit-item b { color: var(--accent); }
.fit-item strong { display: block; margin-bottom: 5px; }
.fit-item p { margin: 0; color: var(--muted); font-size: 15px; }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.about-photo { border-radius: 24px; overflow: hidden; }
.about-photo img { width: 100%; aspect-ratio: .92; object-fit: cover; object-position: center 30%; }
.about-copy p { color: var(--muted); font-size: 18px; }
.about-facts { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 34px; border-top: 1px solid var(--line); }
.fact { padding: 20px 16px 0 0; }
.fact + .fact { padding-left: 18px; border-left: 1px solid var(--line); }
.fact strong { display: block; font-size: 15px; }
.fact span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

.faq { max-width: 880px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; font-weight: 700; font-size: 19px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 24px; color: var(--muted); max-width: 760px; }

.contact-wrap { display: grid; grid-template-columns: .86fr 1.14fr; gap: 70px; align-items: start; }
.contact-copy p { color: var(--muted); font-size: 18px; }
.contact-form { padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 760; }
.field input, .field textarea { width: 100%; border: 1px solid #d3d5d0; background: #fbfbfa; border-radius: 12px; padding: 13px 14px; color: var(--ink); outline: none; }
.field input:focus, .field textarea:focus { border-color: #7890a8; box-shadow: 0 0 0 3px rgba(22,58,95,.08); }
.field textarea { min-height: 120px; resize: vertical; }
.form-help { margin-top: 12px; color: #777b83; font-size: 12px; }
.form-alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.form-alert.success { background: #e8f4ea; color: #2e6037; }
.form-alert.error { background: #f8e9e9; color: #7f3434; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }

.site-footer { padding: 46px 0 34px; background: #0d1015; color: #d9dde3; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; }
.footer-brand { font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.footer-brand span { display: block; margin-top: 6px; color: #8c949f; font-size: 14px; font-weight: 400; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; color: #9da4ae; font-size: 14px; }
.footer-bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid #222832; color: #777f8a; font-size: 12px; display: flex; justify-content: space-between; gap: 20px; }

.service-hero { padding: 92px 0 70px; }
.service-hero .lede { max-width: 760px; color: var(--muted); font-size: 20px; margin-top: 25px; }
.service-body { max-width: 850px; }
.service-body h2 { font-size: clamp(34px, 4vw, 50px); margin: 68px 0 20px; }
.service-body h3 { margin: 34px 0 12px; }
.service-body p, .service-body li { color: var(--muted); }
.service-body ul { padding-left: 22px; }
.inline-cta { margin-top: 64px; padding: 34px; border-radius: 22px; background: #11161d; color: #fff; }
.inline-cta p { color: #b9c0ca; }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 78px 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .menu-toggle { display: block; }
  .hero { padding-top: 52px; }
  .hero-grid, .section-head, .fit-grid, .about-grid, .contact-wrap { grid-template-columns: 1fr; gap: 38px; }
  .hero-grid { gap: 44px; }
  .portrait-card { max-width: 620px; }
  .cards, .process { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .section { padding: 78px 0; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal + .signal { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .about-photo { max-width: 560px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav-wrap { min-height: 70px; }
  .nav-links { inset: 70px 0 auto 0; }
  .brand small { display: none; }
  h1 { font-size: clamp(44px, 13vw, 62px); }
  .hero-copy > p { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .portrait-note { position: static; border-radius: 0; }
  .cards { gap: 12px; }
  .card { padding: 25px; min-height: auto; }
  .card-num { margin-bottom: 32px; }
  .step { padding: 25px; }
  .step .number { margin-bottom: 34px; }
  .about-facts { grid-template-columns: 1fr; }
  .fact { padding: 14px 0; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; }
  .footer-grid, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
}
