/* ============================================================
   Backlink Queen — global stylesheet
   Palette: white background, black text, pink links/accents
   ============================================================ */

:root {
  --color-bg: #ffffff;
  --color-text: #0a0a0a;
  --color-text-muted: #4a4a4a;
  --color-pink: #d6006d;
  --color-pink-hover: #a8005a;
  --color-pink-tint: #fde7f2;
  --color-border: #e6e6e6;
  --max-width: 1160px;
  --radius: 8px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  color: var(--color-text);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--color-pink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: var(--color-pink-hover);
}

ul, ol {
  padding-left: 1.3em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-pink);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

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

.btn-cta {
  display: inline-block;
  background: var(--color-pink);
  color: #fff !important;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--color-pink);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-cta:hover,
.btn-cta:focus {
  background: var(--color-pink-hover);
  border-color: var(--color-pink-hover);
  color: #fff !important;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--color-text) !important;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--color-text);
}

.btn-outline:hover {
  background: var(--color-text);
  color: #fff !important;
}

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

.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

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

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text) !important;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span {
  color: var(--color-pink);
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--color-pink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--color-text);
}

.header-cta {
  font-size: 0.9rem;
  padding: 10px 18px;
}

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

.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--color-pink);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-stats strong {
  display: block;
  font-size: 1.6rem;
  color: var(--color-text);
}

.hero-stats span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.hero-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--color-pink-tint);
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-card li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  gap: 10px;
}

.hero-card li:last-child {
  border-bottom: none;
}

/* ---------- Generic sections ---------- */

section {
  padding: 56px 0;
}

.section-border {
  border-bottom: 1px solid var(--color-border);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head.left {
  margin: 0 0 36px;
  text-align: left;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  color: var(--color-pink);
}

.pink-bg {
  background: var(--color-pink);
  color: #fff;
}

.pink-bg h2,
.pink-bg p {
  color: #fff;
}

.pink-bg a.btn-cta {
  background: #fff;
  color: var(--color-pink) !important;
  border-color: #fff;
}

.pink-bg a.btn-cta:hover {
  background: var(--color-text);
  color: #fff !important;
  border-color: var(--color-text);
}

.cta-banner {
  text-align: center;
  border-radius: var(--radius);
  padding: 48px 24px;
}

blockquote {
  border-left: 4px solid var(--color-pink);
  margin: 0 0 1.2em;
  padding: 4px 0 4px 20px;
  color: var(--color-text-muted);
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
}

table th,
table td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
}

table th {
  background: var(--color-pink-tint);
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  padding: 18px 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-pink);
}

/* ---------- Blog / sidebar layout ---------- */

.blog-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 44px;
  align-items: start;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list > li {
  padding: 26px 0;
  border-bottom: 1px solid var(--color-border);
}

.post-list > li:first-child {
  padding-top: 0;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.post-title a {
  color: var(--color-text);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--color-pink);
}

.sidebar {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 84px;
}

.sidebar h2 {
  font-size: 1.05rem;
  border-bottom: 2px solid var(--color-pink);
  padding-bottom: 10px;
}

.sidebar-post-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.sidebar-post-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-post-list li:last-child {
  border-bottom: none;
}

.sidebar-post-list a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
}

.sidebar-post-list a:hover {
  color: var(--color-pink);
}

.sidebar-cta {
  display: block;
  text-align: center;
  width: 100%;
}

.post-body h2 {
  margin-top: 1.4em;
}

.post-body h3 {
  margin-top: 1.2em;
  color: var(--color-pink);
}

.post-tags {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  flex-wrap: wrap;
  margin: 24px 0 0;
}

.post-tags li {
  background: var(--color-pink-tint);
  color: var(--color-pink);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 40px 0;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- Forms ---------- */

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-pink);
  outline-offset: 1px;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.contact-info-list {
  list-style: none;
  padding: 0;
}

.contact-info-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
  padding-top: 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.footer-brand p {
  color: var(--color-text-muted);
  max-width: 40ch;
}

.footer-nav {
  display: flex;
  gap: 48px;
}

.footer-nav h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
}

.footer-nav a:hover {
  color: var(--color-pink);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 18px 0 32px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Policy pages ---------- */

.policy-content {
  max-width: 780px;
  margin: 0 auto;
}

.policy-content h2 {
  margin-top: 1.6em;
}

.updated-date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

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

@media (max-width: 860px) {
  .hero-grid,
  .contact-grid,
  .blog-layout {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .logo {
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: flex;
    order: 1;
  }

  .header-cta {
    order: 2;
    flex-basis: 100%;
    text-align: center;
    margin-top: 12px;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu a {
    display: block;
    padding: 12px 4px;
  }
}
