/* FILE: css/style.css */
/* ============================================================
   {{COMPANY_NAME}} — Advertising Management Agency
   Single site-wide stylesheet. No frameworks, no external fonts.
   ============================================================ */

:root {
  --ink: #131c26;
  --ink-soft: #3d4a5a;
  --ink-mute: #64707f;
  --brand: #14324f;
  --brand-deep: #0e2438;
  --accent: #c1622b;
  --accent-soft: #f6e8de;
  --paper: #ffffff;
  --wash: #f5f6f8;
  --wash-2: #eceff3;
  --line: #dde3ea;
  --ok: #1e6b4f;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(19, 28, 38, 0.05), 0 8px 24px rgba(19, 28, 38, 0.07);
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(19, 28, 38, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand-name { font-size: 17px; letter-spacing: 0.01em; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--ink); background: var(--wash); text-decoration: none; }
.site-nav a.is-active { color: var(--brand); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s 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 / page headers ---------- */

.hero {
  background: linear-gradient(160deg, var(--brand-deep) 0%, var(--brand) 58%, #1d4568 100%);
  color: #f2f5f8;
  padding: 88px 0 80px;
}
.hero .kicker { color: #f0b48c; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  margin: 14px 0 18px;
  max-width: 17em;
  color: #ffffff;
}
.hero p.lede { color: #c9d4df; max-width: 42em; }
.hero .btn-primary { background: var(--accent); color: #fff; }
.hero .btn-primary:hover { background: #a9531f; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #eef2f6; background: transparent; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.page-head {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
}
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  margin: 12px 0 12px;
}
.page-head p.lede { max-width: 46em; }

.kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede { font-size: 18px; color: var(--ink-soft); }

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn-primary,
.btn-ghost {
  display: inline-block;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); text-decoration: none; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { background: var(--wash); text-decoration: none; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section.wash { background: var(--wash); }
.section + .section { border-top: 1px solid var(--line); }
.section.wash + .section.wash { border-top: 1px solid var(--line); }

.section-head { max-width: 44em; margin-bottom: 36px; }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  margin: 10px 0 10px;
}
.section-head p { color: var(--ink-soft); margin: 0; }

h3 { font-size: 19px; line-height: 1.35; margin: 0 0 8px; }
h4 { font-size: 16px; margin: 0 0 6px; }

.muted { color: var(--ink-mute); }
.small { font-size: 13.5px; }

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: 20px; }
.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: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 .card-index,
.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  margin-right: 10px;
  padding: 0 6px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--brand);
  background: var(--wash-2);
  border-radius: 50%;
}
.card p { margin: 0 0 10px; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card.accent { border-top: 3px solid var(--accent); }
.card.brandline { border-top: 3px solid var(--brand); }

.card-list { list-style: none; margin: 12px 0 0; padding: 0; }
.card-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--ink-soft);
  font-size: 15px;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Steps (how it works) ---------- */

.steps { counter-reset: step; display: grid; gap: 18px; }

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.step-num {
  counter-increment: step;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--brand);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-top: 2px; }
.step p { margin: 0 0 8px; color: var(--ink-soft); }
.step p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--paper);
}
caption {
  text-align: left;
  padding: 14px 18px;
  font-weight: 600;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}
th, td {
  padding: 12px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--wash);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 700; background: var(--wash); }
.mono { font-family: var(--mono); font-size: 13.5px; }

/* ---------- Q&A ---------- */

.qa-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.qa-card h3 { color: var(--brand); }
.qa-card p { margin: 0 0 10px; color: var(--ink-soft); }
.qa-card p:last-child { margin-bottom: 0; }

/* ---------- Pricing ---------- */

.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.price-card.featured { border: 2px solid var(--brand); }
.price-tag {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ok);
  background: #e5f1ec;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.price-card h3 { font-family: var(--serif); font-size: 22px; }
.price-line {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--brand);
  margin: 6px 0 16px;
}
.price-line small { font-family: var(--sans); font-size: 14px; color: var(--ink-mute); font-weight: 400; }
.price-meta { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.price-meta dl { margin: 0; display: grid; grid-template-columns: 132px 1fr; row-gap: 8px; font-size: 14.5px; }
.price-meta dt { color: var(--ink-mute); font-weight: 600; }
.price-meta dd { margin: 0; color: var(--ink-soft); }

/* ---------- Definition rows / fact lists ---------- */

.fact-rows { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 16px 22px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.fact-row:last-child { border-bottom: none; }
.fact-row:nth-child(odd) { background: var(--wash); }
.fact-row dt { font-weight: 600; color: var(--ink); margin: 0; }
.fact-row dd { margin: 0; color: var(--ink-soft); }

/* ---------- Callouts ---------- */

.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  color: var(--ink-soft);
}
.callout.info { border-left-color: var(--brand); background: var(--wash); }
.callout p { margin: 0 0 8px; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Email templates ---------- */

.email-tpl {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.email-tpl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}
.email-tpl-head h3 { margin: 0; font-size: 17px; }
.tpl-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--wash-2);
  color: var(--ink-soft);
  white-space: nowrap;
}
.tpl-badge.internal { background: #f8e7e0; color: #a14017; }
.email-tpl-body { padding: 22px; }
.email-subject {
  font-size: 14.5px;
  padding: 10px 14px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.email-subject strong { color: var(--ink-mute); font-weight: 600; margin-right: 8px; }
.email-tpl-body p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; }
.email-tpl-body ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink-soft); font-size: 15px; }
.email-tpl-body li { margin-bottom: 4px; }
.email-tpl-body .sig { color: var(--ink-mute); }

/* ---------- Review sections ---------- */

.review-block { padding: 34px 0; border-bottom: 1px solid var(--line); }
.review-block:last-child { border-bottom: none; }
.review-block h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 12px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.review-block h2 .rb-num {
  font-size: 14px;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.review-block p { max-width: 62em; margin: 0 0 10px; color: var(--ink-soft); }
.review-block p:last-child { margin-bottom: 0; }
.review-block ul { margin: 0 0 10px; padding-left: 20px; color: var(--ink-soft); }

.flow-figure {
  margin: 22px 0 8px;
  padding: 20px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.flow-figure figcaption { font-size: 13.5px; color: var(--ink-mute); margin-top: 10px; text-align: center; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-card label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.form-card label:first-of-type { margin-top: 0; }
.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  outline: 2px solid rgba(20, 50, 79, 0.25);
  border-color: var(--brand);
}
.form-card textarea { min-height: 130px; resize: vertical; }
.form-card button { margin-top: 20px; border: none; cursor: pointer; }
.form-note { font-size: 13px; color: var(--ink-mute); margin-top: 12px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brand-deep);
  color: #b9c6d2;
  padding: 56px 0 28px;
  margin-top: 0;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-name { font-size: 16px; font-weight: 700; color: #ffffff; margin: 0 0 10px; }
.footer-company p { margin: 0 0 6px; }
.footer-heading {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fa1b2;
  margin: 0 0 12px;
}
.footer-col a { display: block; color: #b9c6d2; padding: 4px 0; }
.footer-col a:hover { color: #ffffff; text-decoration: none; }
.site-footer a { color: #d7e0e8; }
.footer-note { margin: 24px 0 0; font-size: 13px; color: #7f92a3; }

/* ---------- Utilities ---------- */

.stack { display: grid; gap: 24px; }
.stack-lg { display: grid; gap: 40px; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.maxw { max-width: 46em; }

.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.tick-list li:last-child { border-bottom: none; }
.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--ok);
  font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(19, 28, 38, 0.1);
    padding: 8px 16px 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 10px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--wash-2); }
  .site-nav a:last-child { border-bottom: none; }

  .hero { padding: 56px 0; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .price-cards { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .fact-row { grid-template-columns: 1fr; gap: 4px; }
  .price-meta dl { grid-template-columns: 110px 1fr; }
}
