/*
Theme Name: WebIn Editorial
Theme URI: https://webinmarketing.com/
Author: WebIn Marketing
Author URI: https://webinmarketing.com/
Description: Fast, accessible editorial theme for WebInMarketing. Elementor Theme Builder compatible, dark-mode ready, and designed for research articles, SaaS reviews, hosting comparisons, and deals.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webin-editorial
Tags: blog, news, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

:root {
  --wi-bg: #f6f7f4;
  --wi-surface: #ffffff;
  --wi-surface-2: #edf1ed;
  --wi-ink: #10262c;
  --wi-muted: #5e6d70;
  --wi-border: #d8e0dc;
  --wi-brand: #006f65;
  --wi-brand-strong: #00544d;
  --wi-accent: #d9ff73;
  --wi-danger: #a83232;
  --wi-shadow: 0 18px 50px rgba(16, 38, 44, .09);
  --wi-radius: 18px;
  --wi-container: 1200px;
  --wi-reading: 760px;
  --wi-font-head: Georgia, 'Times New Roman', serif;
  --wi-font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme='dark'] {
  --wi-bg: #0d171a;
  --wi-surface: #142226;
  --wi-surface-2: #1a2c30;
  --wi-ink: #f1f5f2;
  --wi-muted: #a8b7b7;
  --wi-border: #294044;
  --wi-brand: #68d4c5;
  --wi-brand-strong: #8ee5d8;
  --wi-accent: #c9f45c;
  --wi-shadow: 0 18px 55px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--wi-ink);
  background: var(--wi-bg);
  font-family: var(--wi-font-body);
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  transition: color .2s ease, background-color .2s ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--wi-brand); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--wi-brand-strong); }
button, input, select, textarea { font: inherit; }
button, .wi-button, input[type='submit'] { cursor: pointer; }
::selection { color: #10262c; background: var(--wi-accent); }

.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 { width: auto; height: auto; padding: 12px 16px; margin: 8px; clip: auto; z-index: 100000; background: var(--wi-surface); }
.wi-container { width: min(calc(100% - 36px), var(--wi-container)); margin-inline: auto; }
.wi-reading { width: min(100%, var(--wi-reading)); margin-inline: auto; }

.wi-site-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--wi-border);
  background: color-mix(in srgb, var(--wi-bg) 90%, transparent); backdrop-filter: blur(16px);
}
.admin-bar .wi-site-header { top: 32px; }
.wi-header-inner { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.wi-brand { margin-right: auto; color: var(--wi-ink); text-decoration: none; font-weight: 850; letter-spacing: -.045em; font-size: 1.26rem; }
.wi-brand span { color: var(--wi-brand); }
.wi-brand img { max-height: 46px; width: auto; }
.custom-logo-link { margin-right: auto; }
.custom-logo-link img { display: block; max-height: 46px; width: auto; }
.wi-primary-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.wi-primary-nav a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--wi-ink); text-decoration: none; font-size: .9rem; font-weight: 720; }
.wi-primary-nav a:hover, .wi-primary-nav .current-menu-item > a { background: var(--wi-surface-2); color: var(--wi-brand); }
.wi-header-actions { display: flex; align-items: center; gap: 8px; }
.wi-icon-button, .wi-nav-toggle {
  width: 42px; height: 42px; border: 1px solid var(--wi-border); border-radius: 50%;
  display: inline-grid; place-items: center; background: var(--wi-surface); color: var(--wi-ink);
}
.wi-nav-toggle { display: none; }
.wi-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 1px solid var(--wi-brand); border-radius: 999px;
  color: #fff; background: var(--wi-brand); text-decoration: none; font-weight: 800; line-height: 1.2;
}
[data-theme='dark'] .wi-button { color: #0d171a; }
.wi-button:hover { color: #10262c; border-color: var(--wi-accent); background: var(--wi-accent); }
.wi-button--ghost { color: var(--wi-ink); border-color: var(--wi-border); background: transparent; }
.wi-search-panel { display: none; border-top: 1px solid var(--wi-border); padding: 16px 0; background: var(--wi-surface); }
.wi-search-panel.is-open { display: block; }
.wi-search-form { display: flex; gap: 10px; }
.wi-search-form label { flex: 1; }
.wi-search-form input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--wi-border); border-radius: 10px; color: var(--wi-ink); background: var(--wi-bg); }

.wi-hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 124px) 0 72px; border-bottom: 1px solid var(--wi-border); }
.wi-hero::after { content: ''; position: absolute; width: 460px; height: 460px; right: -120px; top: -190px; border: 88px solid var(--wi-accent); border-radius: 50%; opacity: .55; pointer-events: none; }
.wi-eyebrow { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 16px; color: var(--wi-brand); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 850; }
.wi-eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; font-family: var(--wi-font-head); line-height: 1.12; letter-spacing: -.03em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.wi-hero h1 { max-width: 900px; font-size: clamp(2.65rem, 5.2vw, 4.9rem); }
.wi-hero p { max-width: 720px; color: var(--wi-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.wi-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.wi-trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--wi-border); }
.wi-trust-item { padding: 22px; border-right: 1px solid var(--wi-border); }
.wi-trust-item:last-child { border-right: 0; }
.wi-trust-item strong { display: block; font-family: var(--wi-font-head); font-size: 1.65rem; line-height: 1.2; }
.wi-trust-item span { color: var(--wi-muted); font-size: .82rem; }

.wi-section { padding: clamp(58px, 8vw, 96px) 0; }
.wi-section--surface { background: var(--wi-surface); }
.wi-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.wi-section-head p { max-width: 620px; color: var(--wi-muted); }
.wi-grid { display: grid; gap: 22px; }
.wi-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wi-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wi-card { overflow: hidden; border: 1px solid var(--wi-border); border-radius: var(--wi-radius); background: var(--wi-surface); box-shadow: 0 0 0 transparent; transition: transform .2s ease, box-shadow .2s ease; }
.wi-card:hover { transform: translateY(-4px); box-shadow: var(--wi-shadow); }
.wi-card__image { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--wi-surface-2); }
.wi-card__body { padding: 24px; }
.wi-card__meta, .wi-post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--wi-muted); font-size: .82rem; }
.wi-card__title { font-size: 1.45rem; }
.wi-card__title a { color: var(--wi-ink); text-decoration: none; }
.wi-card__title a:hover { color: var(--wi-brand); }
.wi-card__excerpt { color: var(--wi-muted); font-size: .94rem; }
.wi-category-grid a { position: relative; min-height: 210px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--wi-border); border-radius: var(--wi-radius); color: var(--wi-ink); background: var(--wi-surface); text-decoration: none; }
.wi-category-grid a::before { content: attr(data-index); color: var(--wi-brand); font-weight: 900; letter-spacing: .08em; }
.wi-category-grid a:hover { border-color: var(--wi-brand); }
.wi-newsletter { display: grid; grid-template-columns: 1.1fr .9fr; gap: 42px; align-items: center; padding: clamp(34px, 5vw, 64px); border-radius: 28px; color: #f7fffc; background: #073e3b; }
.wi-newsletter h2 { color: #fff; }
.wi-newsletter p { color: #c5d9d6; }
.wi-form-row { display: flex; gap: 10px; }
.wi-form-row input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid #527a76; border-radius: 10px; color: #fff; background: #0d504b; }
.wi-page-header { padding: clamp(52px, 7vw, 90px) 0 40px; border-bottom: 1px solid var(--wi-border); }
.wi-page-header h1 { max-width: 950px; font-size: clamp(2.35rem, 5vw, 4.8rem); }
.wi-breadcrumbs { margin-bottom: 20px; color: var(--wi-muted); font-size: .82rem; }
.wi-breadcrumbs a { color: inherit; }
.wi-content-wrap { display: grid; grid-template-columns: minmax(0, var(--wi-reading)) 260px; gap: 68px; align-items: start; width: min(calc(100% - 36px), 1090px); margin: 0 auto; padding: 52px 0 88px; }
.wi-entry-content > * { max-width: var(--wi-reading); }
.wi-entry-content > .alignwide { max-width: 1080px; margin-left: 50%; transform: translateX(-50%); }
.wi-entry-content > .alignfull { max-width: none; width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.wi-entry-content p, .wi-entry-content li { color: color-mix(in srgb, var(--wi-ink) 88%, var(--wi-muted)); }
.wi-entry-content h2, .wi-entry-content h3 { scroll-margin-top: 100px; margin-top: 1.7em; }
.wi-entry-content table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.wi-entry-content th, .wi-entry-content td { padding: 13px; border: 1px solid var(--wi-border); text-align: left; }
.wi-entry-content th { background: var(--wi-surface-2); }
.wi-entry-content blockquote { margin: 30px 0; padding: 22px 26px; border-left: 4px solid var(--wi-brand); background: var(--wi-surface); }
.wi-post-hero-image { margin-top: 34px; overflow: hidden; border-radius: var(--wi-radius); }
.wi-post-hero-image img { width: 100%; }
.wi-affiliate-note { margin-top: 20px; padding: 12px 16px; border: 1px solid var(--wi-border); border-radius: 10px; color: var(--wi-muted); background: var(--wi-surface); font-size: .79rem; }
.wi-quick-answer { margin: 0 0 32px; padding: 24px 26px; border: 1px solid color-mix(in srgb, var(--wi-brand) 35%, var(--wi-border)); border-left: 5px solid var(--wi-brand); border-radius: 14px; background: color-mix(in srgb, var(--wi-brand) 7%, var(--wi-surface)); }
.wi-quick-answer__label { display: block; margin-bottom: 7px; color: var(--wi-brand); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 900; }
.wi-toc { position: sticky; top: 110px; padding: 20px; border: 1px solid var(--wi-border); border-radius: 14px; background: var(--wi-surface); }
.wi-toc strong { display: block; margin-bottom: 10px; }
.wi-toc ol { margin: 0; padding-left: 20px; }
.wi-toc li { margin: 6px 0; color: var(--wi-muted); font-size: .8rem; line-height: 1.45; }
.wi-toc a { color: inherit; text-decoration: none; }
.wi-toc a:hover { color: var(--wi-brand); }
.wi-author-box { display: grid; grid-template-columns: 88px 1fr; gap: 22px; margin-top: 48px; padding: 28px; border: 1px solid var(--wi-border); border-radius: var(--wi-radius); background: var(--wi-surface); }
.wi-author-box img { border-radius: 50%; }
.wi-author-box p { margin: 6px 0; color: var(--wi-muted); font-size: .9rem; }
.wi-author-box h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.wi-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0; }
.wi-share a, .wi-share button { min-width: 40px; min-height: 40px; padding: 8px 11px; border: 1px solid var(--wi-border); border-radius: 999px; color: var(--wi-ink); background: var(--wi-surface); text-decoration: none; font-size: .78rem; font-weight: 750; }
.wi-related { padding: 70px 0; border-top: 1px solid var(--wi-border); }

.wi-faq { margin: 38px 0; }
.wi-faq details { border-bottom: 1px solid var(--wi-border); }
.wi-faq summary { padding: 18px 4px; cursor: pointer; font-weight: 800; }
.wi-faq__answer { padding: 0 4px 18px; color: var(--wi-muted); }
.wi-review-box { margin: 32px 0; padding: 28px; border: 1px solid var(--wi-border); border-radius: var(--wi-radius); background: var(--wi-surface); box-shadow: var(--wi-shadow); }
.wi-review-score { display: flex; align-items: center; gap: 14px; }
.wi-review-score strong { font-family: var(--wi-font-head); font-size: 2.8rem; }
.wi-stars { color: #e09b00; letter-spacing: .08em; }
.wi-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }
.wi-pros-cons > div { padding: 18px; border-radius: 12px; background: var(--wi-surface-2); }
.wi-deals-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.wi-deal { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--wi-border); border-radius: var(--wi-radius); background: var(--wi-surface); }
.wi-deal.is-expired { filter: grayscale(1); opacity: .62; }
.wi-deal__discount { align-self: flex-start; padding: 4px 9px; border-radius: 999px; color: #10262c; background: var(--wi-accent); font-size: .75rem; font-weight: 900; }
.wi-coupon { padding: 10px; border: 1px dashed var(--wi-brand); border-radius: 8px; text-align: center; font-family: ui-monospace, monospace; font-weight: 800; }

.wi-form { display: grid; gap: 16px; }
.wi-form label { display: grid; gap: 6px; font-weight: 750; }
.wi-form input, .wi-form textarea, .wi-form select { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--wi-border); border-radius: 10px; color: var(--wi-ink); background: var(--wi-surface); }
.wi-form input[type='checkbox'] { width: auto; min-height: 0; padding: 0; }
.wi-form textarea { min-height: 160px; resize: vertical; }
.wi-notice { margin: 18px 0; padding: 13px 16px; border-radius: 10px; background: var(--wi-surface-2); }
.wi-pagination { margin-top: 38px; }
.wi-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.wi-pagination a, .wi-pagination span { min-width: 40px; padding: 7px 10px; border: 1px solid var(--wi-border); border-radius: 8px; text-align: center; text-decoration: none; }

.wi-site-footer { padding: 62px 0 26px; color: #d8e6e3; background: #0b292b; }
.wi-footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 42px; }
.wi-footer-brand { color: #fff; }
.wi-site-footer h3 { color: #fff; font-family: var(--wi-font-body); font-size: .9rem; letter-spacing: .04em; }
.wi-site-footer p, .wi-site-footer li { color: #a9bfbc; font-size: .85rem; }
.wi-site-footer ul { margin: 0; padding: 0; list-style: none; }
.wi-site-footer a { color: #d8e6e3; text-decoration: none; }
.wi-site-footer a:hover { color: var(--wi-accent); }
.wi-footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 20px; border-top: 1px solid #244446; font-size: .78rem; color: #91aba7; }

@media (max-width: 960px) {
  .wi-nav-toggle { display: inline-grid; }
  .wi-primary-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 14px 18px 20px; border-bottom: 1px solid var(--wi-border); background: var(--wi-surface); }
  .wi-primary-nav.is-open { display: block; }
  .wi-primary-nav ul { display: grid; }
  .wi-grid--3, .wi-grid--4, .wi-deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wi-content-wrap { grid-template-columns: 1fr; gap: 28px; }
  .wi-toc { position: static; order: -1; }
  .wi-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .admin-bar .wi-site-header { top: 46px; }
  .wi-header-inner { min-height: 66px; gap: 8px; }
  .wi-primary-nav { top: 66px; }
  .wi-header-actions .wi-button { display: none; }
  .wi-hero { padding-top: 58px; }
  .wi-hero::after { width: 280px; height: 280px; right: -150px; top: -145px; border-width: 54px; }
  .wi-trust-strip { grid-template-columns: repeat(2, 1fr); }
  .wi-trust-item:nth-child(2) { border-right: 0; }
  .wi-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--wi-border); }
  .wi-grid--3, .wi-grid--4, .wi-deals-grid, .wi-newsletter, .wi-pros-cons, .wi-footer-grid { grid-template-columns: 1fr; }
  .wi-section-head, .wi-footer-bottom { align-items: flex-start; flex-direction: column; }
  .wi-newsletter { gap: 18px; }
  .wi-form-row { flex-direction: column; }
  .wi-author-box { grid-template-columns: 64px 1fr; padding: 20px; }
}

@media (min-width: 961px) and (max-width: 1280px) {
  .wi-primary-nav a { padding-inline: 8px; font-size: .8rem; }
  .wi-header-inner { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .wi-site-header, .wi-site-footer, .wi-share, .wi-toc, .wi-related { display: none !important; }
  body { color: #000; background: #fff; }
  .wi-content-wrap { display: block; width: 100%; padding: 0; }
}
