/* ==========================================================================
   Best GEO Agency in Asia Awards — assets/style.css
   Light report aesthetic: #f8faf9 ground, deep teal #0f766e, system sans.
   Comparison tables are the hero component. Cards are sharp. Zero JS.
   ========================================================================== */

:root {
  --bg: #f8faf9;
  --surface: #ffffff;
  --surface-2: #eef6f3;
  --ink: #0c1f1c;
  --muted: #4c625d;
  --faint: #69807a;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --teal-deep: #0b3d38;
  --teal-tint: #e4f3ef;
  --teal-line: #c9e0da;
  --line: #dbe7e2;
  --amber: #b45309;
  --amber-tint: #fdf3e3;
  --shadow-sm: 0 1px 2px rgba(12, 31, 28, 0.06);
  --shadow-md: 0 10px 24px -14px rgba(12, 31, 28, 0.25);
  --radius: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--teal-tint); color: var(--teal-deep); }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

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

h1, h2, h3, h4 { font-weight: 700; line-height: 1.22; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 650; }
ul { margin: 0 0 1em 1.2em; }
li { margin-bottom: 0.4em; }

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { color: var(--teal-dark); text-decoration: none; }
.brand .brand-mark { color: var(--teal); }

.site-header nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-header nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 550;
}
.site-header nav a:hover { color: var(--teal-dark); text-decoration: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1100px 420px at 82% -10%, rgba(15, 118, 110, 0.10), transparent 60%),
    linear-gradient(180deg, #f2faf7 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
}

.dateline {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-tint);
  border: 1px solid var(--teal-line);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

.hero h1 { font-size: clamp(2.05rem, 4.6vw, 2.9rem); margin-bottom: 18px; }
.hero h1 .accent { color: var(--teal); }

.hero .hero-deck {
  font-size: 1.13rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 14px;
}

.hero p { color: var(--muted); max-width: 58ch; }

.hero .btn { margin-top: 22px; }

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 20px 20px 12px;
}
.hero-visual .visual-caption {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 52px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal-dark);
}
.hero-stat-label { font-size: 0.88rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Sections & cards
   -------------------------------------------------------------------------- */

main { padding: 24px 0 72px; }

section { margin-top: 56px; }
main > section:first-child { margin-top: 40px; }

.section-title {
  font-size: 1.42rem;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 4px solid var(--teal);
}

.section-title + p { margin-bottom: 1em; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card p strong { color: var(--ink); }

.callout {
  background: var(--teal-tint);
  border: 1px solid var(--teal-line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 18px 0;
}
.callout p { color: var(--teal-deep); }

/* --------------------------------------------------------------------------
   Badges & buttons
   -------------------------------------------------------------------------- */

.badge-teal, .badge-emerald, .badge-amber {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.badge-teal { background: var(--teal-tint); color: var(--teal-dark); border: 1px solid var(--teal-line); }
.badge-emerald { background: #e7f6ec; color: #166534; border: 1px solid #bbe3c8; }
.badge-amber { background: var(--amber-tint); color: var(--amber); border: 1px solid #f2ddb8; }

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 650;
  border-radius: 999px;
  padding: 11px 26px;
  border: 1px solid var(--teal-line);
  color: var(--teal-dark);
  background: var(--surface);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  background: var(--teal-tint);
  color: var(--teal-deep);
}
.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Ranked entries
   -------------------------------------------------------------------------- */

.rank-item {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
  margin-bottom: 16px;
}

.rank-number {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--teal-dark);
  background: var(--teal-tint);
  border: 1px solid var(--teal-line);
  border-radius: 12px;
}

.rank-item h3 { font-size: 1.12rem; margin-bottom: 6px; }
.rank-item p { color: var(--muted); font-size: 0.98rem; }
.rank-item .entry-meta {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--faint);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.rank-1 {
  border: 1.5px solid var(--teal);
  background: linear-gradient(180deg, #f4fbf9 0%, var(--surface) 70%);
  box-shadow: var(--shadow-md);
}
.rank-1 .rank-number {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}
.rank-1 h3 { font-size: 1.2rem; }

/* --------------------------------------------------------------------------
   Comparison table — the hero component
   -------------------------------------------------------------------------- */

.table-scroll { overflow-x: auto; max-width: 100%; margin: 22px 0 8px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--surface); }

/* grid/flex children must be allowed to shrink below content width,
   so wide comparison tables scroll inside .table-scroll instead of blowing out the page */
.hero-grid > *, .grid-2 > *, .grid-3 > *, .rank-item > div, .profile-header > div { min-width: 0; }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 640px;
}

.comparison-table th {
  background: var(--teal-deep);
  color: #ffffff;
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  padding: 13px 16px;
  white-space: nowrap;
}

.comparison-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}

.comparison-table tbody tr:nth-child(even) td { background: #f4f9f7; }
.comparison-table tbody tr:hover td { background: var(--teal-tint); }

.comparison-table th.num, .comparison-table td.num { text-align: center; font-variant-numeric: tabular-nums; }
.comparison-table td.total { font-weight: 750; color: var(--teal-deep); }

.comparison-table tr.winner-row td,
.comparison-table tr.winner-row:hover td {
  background: linear-gradient(90deg, #dff2ec 0%, #eef9f5 100%);
  border-top: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  font-weight: 650;
}
.comparison-table tr.winner-row td:first-child { border-left: 4px solid var(--teal); }
.comparison-table tr.winner-row td.total { color: var(--teal-dark); }

/* compact variant (homepage hero card): few columns, fits without scrolling */
.comparison-table.compact { min-width: 0; }

.winner-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--teal);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 8px;
  vertical-align: middle;
}

.table-footnote { font-size: 0.84rem; color: var(--faint); margin-top: 10px; }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.grid-2, .grid-3 { display: grid; gap: 16px; margin: 20px 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-number {
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal-dark);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.88rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   FAQ, quotes, profile header
   -------------------------------------------------------------------------- */

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 26px;
  margin-bottom: 14px;
}
.faq-item h3 { font-size: 1.05rem; color: var(--teal-deep); margin-bottom: 8px; }
.faq-item p { color: var(--muted); }

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  font-size: 1.04rem;
  color: var(--ink);
  font-style: italic;
  margin: 18px 0;
}
.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--teal-dark);
}

.profile-header {
  display: flex;
  gap: 34px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 36px 38px;
  margin-top: 36px;
}
.profile-header .winner-crest { flex: 0 0 auto; }
.profile-header h1 { font-size: clamp(1.7rem, 3.6vw, 2.25rem); margin-bottom: 6px; }
.profile-header .title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 12px;
}
.profile-header .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.profile-header .badges .badge-teal,
.profile-header .badges .badge-emerald { margin-bottom: 0; }
.profile-header p:last-of-type { color: var(--muted); }

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

.site-footer {
  background: var(--teal-deep);
  color: #d7e9e4;
  padding: 44px 0 40px;
  font-size: 0.92rem;
}
.site-footer p { margin-bottom: 12px; max-width: 88ch; }
.site-footer a { color: #ffffff; font-weight: 550; }
.site-footer a:hover { color: #a7d8cd; }
.footer-disclosure {
  color: #b9d4cd;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 16px;
  margin-top: 4px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
}
.site-footer nav a { font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Responsive — 768px
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  body { font-size: 16px; }

  .hero { padding: 44px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { order: -1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; margin-top: 36px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .rank-item { flex-direction: column; gap: 12px; padding: 20px; }
  .rank-number { width: 40px; height: 40px; font-size: 1.1rem; }

  .profile-header { flex-direction: column; padding: 26px 22px; gap: 18px; }

  .card { padding: 20px; }
  .quote { padding: 20px 22px; }

  .site-header .header-inner { padding-top: 14px; padding-bottom: 14px; }
  .site-header nav { gap: 6px 16px; }
}
