/*
Theme Name: Top Website Builder
Theme URI: https://topwebsitebuilder.com/
Author: Top Website Builder
Author URI: https://topwebsitebuilder.com/
Description: A responsive WordPress theme for website-builder reviews and comparisons. Includes starter Pages, editable WordPress menus, legal templates, recent posts, Customizer settings, and a working contact form.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: top-website-builder
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, custom-logo, custom-menu, featured-images, full-width-template, theme-options
*/

/* ============================================================
   Best Website Builders — Shared Stylesheet
   ============================================================ */

:root {
  --brand-primary: #1a56db;
  --brand-primary-dark: #133c9e;
  --brand-accent: #ff7a1a;
  --brand-dark: #0f1724;
  --brand-light: #f5f8ff;
  --text-muted: #5b6473;
  --border-soft: #e6eaf2;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 36, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #222b3a;
  background-color: #ffffff;
}

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

a {
  text-decoration: none;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  clip: auto !important;
  width: auto;
  height: auto;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 6px;
}

.text-brand {
  color: var(--brand-primary) !important;
}

.bg-brand {
  background-color: var(--brand-primary) !important;
}

.bg-brand-dark {
  background-color: var(--brand-dark) !important;
}

.btn-brand {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
}

.btn-brand:hover {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: #fff;
}

.btn-accent {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
}

.btn-accent:hover {
  background-color: #e5690f;
  border-color: #e5690f;
  color: #fff;
}

/* ---------- Placeholder helper (for logos / images you'll upload) ---------- */
.placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(
    45deg,
    #f0f3fa,
    #f0f3fa 10px,
    #e9edf7 10px,
    #e9edf7 20px
  );
  border: 2px dashed #b9c3d9;
  border-radius: var(--radius-md);
  color: #6b7688;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.5rem;
}

.placeholder-logo {
  height: 42px;
  width: 150px;
}

.placeholder-logo-sm {
  height: 32px;
  width: 110px;
  font-size: 0.7rem;
}

.placeholder-hero {
  height: 340px;
  width: 100%;
  border-radius: var(--radius-lg);
}

.placeholder-square {
  height: 90px;
  width: 90px;
  border-radius: var(--radius-md);
}

.placeholder-thumb {
  height: 180px;
  width: 100%;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.placeholder-icon {
  height: 60px;
  width: 60px;
  border-radius: 50%;
}

/* ---------- Navbar ---------- */
.navbar-site {
  background-color: #ffffff;
  box-shadow: 0 2px 12px rgba(15, 23, 36, 0.06);
}

.navbar-site .nav-link {
  font-weight: 600;
  color: #2b3444;
  padding: 0.5rem 1rem !important;
}

.navbar-site .nav-link:hover,
.navbar-site .nav-link.active,
.navbar-site .current-menu-item > .nav-link,
.navbar-site .current_page_item > .nav-link {
  color: var(--brand-primary);
}

.navbar-brand,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.navbar-brand img,
.custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 240px;
  max-height: 58px;
}

.navbar-site .sub-menu {
  list-style: none;
  min-width: 210px;
  margin: 0;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.navbar-site .sub-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  color: #2b3444;
  border-radius: 6px;
}

.navbar-site .sub-menu a:hover {
  color: var(--brand-primary);
  background: var(--brand-light);
}

.top-bar {
  background-color: var(--brand-dark);
  color: #cfd6e4;
  font-size: 0.8rem;
}

.top-bar a {
  color: #cfd6e4;
}

.top-bar a:hover {
  color: #fff;
}

/* ---------- Hero ---------- */
.hero-section {
  background: linear-gradient(180deg, var(--brand-light) 0%, #ffffff 100%);
  padding: 4rem 0 3rem;
}

.hero-section .hero-copy {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--brand-dark);
}

.badge-updated {
  background-color: #e9f0ff;
  color: var(--brand-primary);
  font-weight: 600;
  border-radius: 30px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

.disclosure-badge {
  background-color: #fff3e6;
  color: #b25b00;
  font-weight: 600;
  border-radius: 30px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
}

/* ---------- Ranking Card ---------- */
.rank-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  background: #fff;
  height: 100%;
}

.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 36, 0.12);
}

.rank-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.rank-rating {
  color: #f5a623;
  font-weight: 700;
}

.feature-pill {
  background-color: var(--brand-light);
  color: var(--brand-primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 30px;
  padding: 0.3rem 0.8rem;
  display: inline-block;
}

/* ---------- Section Titles ---------- */
.section-title {
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 0.75rem;
}

.section-eyebrow {
  color: var(--brand-primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* ---------- Key Insights ---------- */
.insight-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-soft);
}

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

/* ---------- Steps ---------- */
.step-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 1.25rem;
  height: 100%;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--brand-dark);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* ---------- Feature Blocks ---------- */
.feature-block {
  border-radius: var(--radius-md);
  background-color: #fff;
  border: 1px solid var(--border-soft);
  padding: 1.5rem;
  height: 100%;
}

/* ---------- Builder Ranking Row (horizontal card w/ rank badge) ---------- */
.builder-row-wrap {
  position: relative;
  margin-bottom: 2.75rem;
  padding-left: 28px;
}

.builder-row-wrap:last-child {
  margin-bottom: 0;
}

.builder-rank-circle {
  position: absolute;
  top: 24px;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d7deec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brand-dark);
  z-index: 2;
}

.builder-row {
  position: relative;
  background: #fff;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2rem 3rem;
  box-shadow: var(--shadow-soft);
}

.builder-row.is-top {
  border-color: var(--brand-primary);
}

.builder-row .fav-star {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background-color: var(--brand-dark);
  color: #ffd93b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.builder-tag {
  position: absolute;
  top: -1px;
  left: -1px;
  background-color: var(--brand-dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-lg) 0 var(--radius-md) 0;
}

.builder-logo-cell {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.builder-logo-cell img {
  max-height: 66px;
}

.offer-ribbon {
  border: 2px dashed #c7cfe0;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #2b3444;
  display: inline-block;
  background: #fafbfd;
}

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

.builder-feature-list li {
  padding: 0.3rem 0;
  font-size: 0.95rem;
  color: #40495a;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.builder-feature-list li i {
  color: var(--brand-primary);
  margin-top: 0.2rem;
}

.score-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--brand-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.score-ring .score-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7688;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.score-ring .score-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.1;
}

.score-stars {
  color: #f5a623;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.score-reviews {
  font-size: 0.78rem;
  color: #6b7688;
  margin-top: 0.1rem;
}

.social-proof-box {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  font-size: 0.8rem;
  color: #40495a;
  margin-bottom: 0.75rem;
}

.social-proof-box .icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--brand-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-proof-box strong {
  color: var(--brand-dark);
}

@media (max-width: 991.98px) {
  .builder-row {
    padding: 1.75rem 1.25rem 1.25rem 2rem;
  }
  .builder-rank-circle {
    top: 12px;
  }
}

/* ---------- Article / Must Read Cards ---------- */
.article-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.15s ease;
}

.article-card:hover {
  box-shadow: var(--shadow-soft);
}

.article-card .post-thumbnail {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--brand-light);
}

.article-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card .article-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  color: var(--brand-primary);
  background: var(--brand-light);
  font-size: 2.5rem;
}

/* ---------- CTA Box ---------- */
.cta-box {
  background: linear-gradient(120deg, var(--brand-primary) 0%, #2a6df5 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 2.5rem;
}

/* ---------- Footer ---------- */
.footer-site {
  background-color: var(--brand-dark);
  color: #b8c0d1;
  padding: 3.5rem 0 1.5rem;
}

.footer-site a {
  color: #b8c0d1;
}

.footer-site a:hover {
  color: #fff;
}

.footer-site h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand {
  max-width: 250px;
  padding: 0.35rem 0.6rem;
  background: #fff;
  border-radius: 8px;
}

.footer-brand img {
  display: block;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-socials a {
  font-size: 1.1rem;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

/* ---------- Inner page header (Terms / Privacy / Contact) ---------- */
.page-header {
  background-color: var(--brand-dark);
  color: #fff;
  padding: 3rem 0;
}

.page-header h1 {
  font-weight: 800;
}

.legal-content h2 {
  font-weight: 700;
  color: var(--brand-dark);
  margin-top: 2rem;
}

.legal-content p,
.legal-content li {
  color: #40495a;
  line-height: 1.75;
}

.legal-content > :first-child {
  margin-top: 0;
}

.toc-box {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background-color: var(--brand-light);
  position: sticky;
  top: 100px;
}

.toc-box a {
  color: #2b3444;
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

.toc-box a:hover {
  color: var(--brand-primary);
}

/* ---------- Contact page ---------- */
.contact-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--brand-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(26, 86, 219, 0.15);
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------- Standard WordPress content ---------- */
.site-main {
  min-height: 45vh;
}

.entry-content {
  line-height: 1.75;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content a:not(.btn) {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.entry-content img,
.wp-caption {
  max-width: 100%;
  height: auto;
}

.wp-caption-text {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pagination .page-numbers {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0 0.15rem;
  padding: 0 0.65rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--brand-primary);
}

.pagination .page-numbers.current {
  color: #fff;
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

body.admin-bar .navbar-site.sticky-top {
  top: 32px;
}

@media (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 1.9rem;
  }
  .toc-box {
    position: static;
  }

  .navbar-brand img,
  .custom-logo {
    max-width: 190px;
  }
}

@media (min-width: 992px) {
  .navbar-site .menu-item-has-children {
    position: relative;
  }

  .navbar-site .menu-item-has-children > .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
  }

  .navbar-site .menu-item-has-children:hover > .sub-menu,
  .navbar-site .menu-item-has-children:focus-within > .sub-menu {
    display: block;
  }
}

@media (max-width: 782px) {
  body.admin-bar .navbar-site.sticky-top {
    top: 46px;
  }
}
