/*
Theme Name: CitedAsia
Theme URI: https://citedasia.com/
Author: CitedAsia
Description: Lightweight theme for CitedAsia (SEO, AEO and GEO services). Built for fast, readable HTML that search engines and AI crawlers can parse.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: citedasia
*/
:root {
  --ink: #0b1f3a;
  --ink-2: #33475f;
  --muted: #5f7189;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-warm: #fff6ef;
  --accent: #f0612d;
  --accent-dark: #c94a1c;
  --teal: #0f8b7d;
  --teal-soft: #e6f5f2;
  --radius: 14px;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; margin-top: 0; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { color: var(--ink); }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
section { padding: 72px 0; }
.soft { background: var(--bg-soft); }
.warm { background: var(--bg-warm); }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.muted { color: var(--muted); font-size: 0.95rem; }
.center { text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo svg { width: 32px; height: 32px; }
.logo span em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 550; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn { display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; font-family: inherit; line-height: 1.2; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 9px 16px; font-size: 0.92rem; }
.nav-links .btn-primary { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { padding: 84px 0 72px; background: linear-gradient(180deg, var(--bg-warm) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero p.lead { max-width: 600px; }
.trust-line { margin-top: 22px; font-size: 0.92rem; color: var(--muted); }
.answer-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 18px 40px rgba(11,31,58,0.08); }
.answer-card .q { font-size: 0.92rem; background: var(--bg-soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; color: var(--ink); }
.answer-card .a { font-size: 0.95rem; }
.answer-card .a p { margin-bottom: 0.6em; }
.answer-card .label { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.cite-chip { display: inline-block; background: var(--teal-soft); color: var(--teal); border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; font-weight: 700; }
.mark { background: #ffe4d6; color: var(--ink); padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* Grids & cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.step-num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 14px; }
.stat { font-size: 2.2rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat-src { font-size: 0.82rem; color: var(--muted); }

/* Pricing */
.price-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: 0 16px 36px rgba(240,97,45,0.12); position: relative; }
.price-card .tag { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: 0.04em; }
.price { font-size: 2.1rem; font-weight: 800; color: var(--ink); line-height: 1.1; margin: 6px 0 2px; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price-card li { padding-left: 26px; position: relative; font-size: 0.95rem; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.price-card .btn { text-align: center; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* Callouts */
.callout { border-left: 4px solid var(--teal); background: var(--teal-soft); padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 24px 0; }
.callout.orange { border-color: var(--accent); background: var(--bg-warm); }
.callout p:last-child { margin-bottom: 0; }
.short-answer { font-size: 1.1rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1.05rem; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; }

/* Article */
.article h2 { margin-top: 2em; }
.article h3 { margin-top: 1.6em; }
.article .meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; }
.toc { background: var(--bg-soft); border-radius: var(--radius); padding: 18px 24px; margin: 24px 0; }
.toc ol { margin: 0; }

/* Case */
.case { border: 1px solid var(--line); border-radius: 18px; padding: 30px; background: #fff; margin-bottom: 28px; }
.case-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--bg-warm); color: var(--accent-dark); }
.badge.teal { background: var(--teal-soft); color: var(--teal); }

/* Forms */
form.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; color: var(--ink); font-size: 0.95rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
input[type=text], input[type=email], input[type=url], select, textarea { width: 100%; padding: 12px 14px; border: 1px solid #c9d3df; border-radius: 10px; font-size: 1rem; font-family: inherit; color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.consent { font-size: 0.85rem; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--ink); color: #dfe7f1; border-radius: 22px; padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { margin: 0; }
.cta-band .btn-row { justify-content: flex-end; margin-top: 0; }

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 52px 0 28px; margin-top: 0; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; }
.site-footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.legal { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; color: var(--muted); font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* WhatsApp float */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,0.18); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

@media (max-width: 960px) {
  .hero-grid, .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 52px 0; }
  .hero { padding: 52px 0; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 16px; gap: 14px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .grid-2, .grid-3, .grid-4, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 22px; }
  form.form, .case { padding: 22px; }
}
