/*
Theme Name: WebAnalyzer
Theme URI: https://adinaportfolio.gstech.live/
Author: WebAnalyzer
Author URI: https://adinaportfolio.gstech.live/
Description: A free, no-signup website speed, SEO and Core Web Vitals checker theme for WordPress. Converted from the WebAnalyzer static site template.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webanalyzer
Tags: blog, e-commerce, two-columns, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
*/

/* ============================================================
   WebAnalyzer — Design tokens
   ============================================================ */
:root {
  /* Color */
  --ink: #1A1D29;
  --ink-soft: #4B5163;
  --paper: #FAF9F4;
  --paper-dim: #F1EEE6;
  --line: #E2DED3;
  --brand: #3654FF;
  --brand-dim: #E8ECFF;
  --brand-ink: #1E2A8C;
  --good: #1DBF73;
  --good-dim: #E3F8EE;
  --improve: #F5A623;
  --improve-dim: #FDF1DB;
  --poor: #E8483A;
  --poor-dim: #FCE7E4;
  --white: #FFFFFF;

  /* Type */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --max-w: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(26, 29, 41, 0.06);
  --shadow-md: 0 12px 32px rgba(26, 29, 41, 0.10);
}

/* ============================================================
   Reset
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  font-weight: 600;
}

p { color: var(--ink-soft); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-block { width: 100%; }

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 244, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.96rem;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-cta { margin-left: 0; margin-top: 12px; }
  .nav-cta .btn { width: 100%; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero h1 { margin: 14px 0 18px; }

.hero-lede {
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.hero-trust span strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  display: block;
}

/* ---- Scanner input ---- */
.scanner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.scanner-form {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.scanner-form input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 16px 18px;
  color: var(--ink);
  border-radius: var(--radius-md);
}
.scanner-form input[type="text"]::placeholder { color: #A4A8B5; }
.scanner-form input[type="text"]:focus { outline: none; }
.scanner-form input[type="text"]:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: -3px;
}

.scanner-form button {
  flex-shrink: 0;
}

.scanner.is-scanning::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--brand-dim) 50%, transparent);
  animation: scanline 1.1s linear infinite;
  z-index: 1;
}

@keyframes scanline {
  from { transform: translateX(0); }
  to { transform: translateX(350%); }
}

.scanner-hint {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding: 10px 14px 4px;
}

.scanner-status {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0 14px 8px;
  color: var(--brand-ink);
  min-height: 1.4em;
}
.scanner-status.is-error { color: var(--poor); }

/* ---- Hero dial illustration ---- */
.dial-cluster {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  box-shadow: var(--shadow-md);
}

.dial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.dial-card svg { margin: 0 auto 8px; }

.dial-card .dial-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.dial-card .dial-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  fill: var(--white);
}

/* ============================================================
   Report dashboard (results)
   ============================================================ */
.report {
  display: none;
  padding: 8px 0 64px;
}
.report.is-visible { display: block; }

.report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.report-head .report-url {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink-soft);
  word-break: break-all;
}

.scores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

@media (max-width: 860px) {
  .scores-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .scores-grid { grid-template-columns: 1fr; }
}

.score-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
}

.score-card .gauge-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
}

.score-card .score-label {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.score-card .score-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.vitals-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 980px) {
  .vitals-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .vitals-grid { grid-template-columns: repeat(2, 1fr); }
}

.vital-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}

.vital-card .vital-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.vital-card .vital-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 6px 0 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.badge.good { background: var(--good-dim); color: #157A48; }
.badge.good::before { background: var(--good); }
.badge.improve { background: var(--improve-dim); color: #9A6203; }
.badge.improve::before { background: var(--improve); }
.badge.poor { background: var(--poor-dim); color: #B7281A; }
.badge.poor::before { background: var(--poor); }

.report-note {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--paper-dim);
}

/* ============================================================
   Section helpers
   ============================================================ */
.section { padding: 64px 0; }
.section-dim { background: var(--paper-dim); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 12px; font-size: 1.05rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
}

.card .card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--brand);
}

.card h3 { margin-bottom: 8px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding-left: 0;
}

.step .step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brand);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 10px;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 26px; }
@media (max-width: 600px) { .cta-band { padding: 32px 20px; } }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); border-color: var(--brand); color: var(--brand); }
.faq-item p { padding-bottom: 22px; max-width: 720px; }

/* ============================================================
   Forms (contact)
   ============================================================ */
.form-grid {
  display: grid;
  gap: 18px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--white);
  color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-info-item svg {
  width: 22px; height: 22px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-info-item h3 { font-size: 1rem; margin-bottom: 2px; }

/* ============================================================
   Page header (for non-home pages)
   ============================================================ */
.page-head {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow { display: block; margin-bottom: 10px; }
.page-head p { max-width: 640px; margin-top: 12px; font-size: 1.05rem; }

/* Legal content */
.legal h2 { margin: 36px 0 12px; font-size: 1.3rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { padding-left: 22px; list-style: disc; margin-bottom: 12px; }
.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  margin-top: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.92rem; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--ink); font-size: 0.95rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ============================================================
   WordPress core / accessibility helpers
   ============================================================ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }

.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ============================================================
   Blog / single post / page fallback content
   ============================================================ */
.content-area {
  padding: 8px 0 64px;
}

.entry-header { margin-bottom: 24px; }
.entry-header .entry-title { margin-top: 10px; }
.entry-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.entry-content { max-width: 760px; }
.entry-content > * + * { margin-top: 16px; }
.entry-content h2, .entry-content h3 { margin-top: 28px; }
.entry-content img { border-radius: var(--radius-md); }
.entry-content a { text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote {
  border-left: 3px solid var(--brand);
  padding-left: 18px;
  color: var(--ink-soft);
  font-style: italic;
}

.post-list { display: grid; gap: 28px; max-width: 760px; }
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
}
.post-card .entry-title { margin-bottom: 8px; }
.post-card .entry-title a { color: var(--ink); text-decoration: none; }
.post-card .entry-title a:hover { color: var(--brand); }

.pagination {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.comments-area { max-width: 760px; margin-top: 48px; }
.comment-list { list-style: none; }
.comment-list .comment-body {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  background: var(--white);
}
