/*
Theme Name: BusinessToTalk
Theme URI: https://businesstotalk.com
Author: BusinessToTalk
Author URI: https://businesstotalk.com
Description: A premium, ultra-fast custom WordPress theme for BusinessToTalk.com — a modern business, technology and entrepreneurship publication. Built with vanilla CSS, semantic HTML5, full WP Customizer support, and JSON-LD schema for SEO and AI search engines. No jQuery, no Bootstrap, no page builder dependencies.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: businesstotalk
Tags: blog, news, one-column, two-columns, right-sidebar, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   DESIGN TOKENS
   These are the DEFAULT values. The BusinessToTalk theme
   overrides --color-primary, --color-accent, --color-bg-dark
   and the --radius-* tokens at runtime from the Customizer
   (see businesstotalk_customizer_css() in functions.php).
   Users can add anything else via Appearance > Customize >
   Additional CSS, which loads after this file.
========================================================= */

:root {
  /* Brand */
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #eff6ff;

  /* Accent */
  --color-accent: #f59e0b;
  --color-accent-soft: #fffbeb;

  /* Backgrounds */
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-muted: #f1f5f9;
  --color-bg-dark: #0f172a;

  /* Text */
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-text-inverse: #ffffff;

  /* Borders */
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  /* Status */
  --color-success: #16a34a;
  --color-danger: #dc2626;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Layout */
  --container: 1240px;
  --content-width: 800px;
  --sidebar-width: 320px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);

  /* Transitions */
  --transition-fast: 180ms ease;
  --transition-normal: 280ms ease;
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

figure {
  margin: 0;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.skip-link,
.screen-reader-text {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 9999;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus,
.screen-reader-text:focus {
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--color-bg-dark);
  color: white;
  border-radius: var(--radius-sm);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* =========================================================
   CONTAINER
========================================================= */

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
}

.header-main {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.brand img {
  max-height: 44px;
  width: auto;
}

.brand span {
  color: var(--color-primary);
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-navigation a {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.search-button:hover {
  background: var(--color-bg-muted);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid var(--color-border);
  background: white;
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color-text);
}

.main-navigation.is-open ul {
  display: flex;
}

/* =========================================================
   SEARCH DRAWER
========================================================= */

.search-drawer {
  border-top: 1px solid var(--color-border-light);
  background: var(--color-bg-soft);
  padding: 16px 0;
}

.search-drawer[hidden] {
  display: none;
}

.search-drawer .search-form {
  max-width: 100%;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: white;
}

/* =========================================================
   TRENDING BAR
========================================================= */

.trending-bar {
  border-top: 1px solid var(--color-border-light);
  background: var(--color-bg-soft);
}

.trending-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
}

.trending-inner strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.trending-inner a {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.trending-inner a:hover {
  color: var(--color-primary);
}

/* =========================================================
   HERO
========================================================= */

.hero-section {
  padding: 54px 0 32px;
}

.hero-post {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
  background: var(--color-bg-dark);
  color: white;
  border-radius: var(--radius-xl);
}

.hero-image {
  min-height: 490px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  margin-bottom: 17px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-content .category-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #bfdbfe;
}

.hero-content h1 {
  max-width: 620px;
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-excerpt {
  max-width: 580px;
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: 17px;
}

/* =========================================================
   META
========================================================= */

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.hero-content .post-meta {
  color: #94a3b8;
}

/* =========================================================
   CONTENT LAYOUT
========================================================= */

.content-section {
  padding: 40px 0 90px;
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: 44px;
  align-items: start;
  padding: 40px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: 44px;
  align-items: start;
}

.content-grid.no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.eyebrow {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

.section-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.text-link {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
}

/* =========================================================
   POST GRID / CARDS
========================================================= */

.posts-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.card-post,
.post-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

.card-post:hover,
.post-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.card-image,
.post-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-muted);
}

.card-image img,
.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.card-post:hover .card-image img,
.post-card:hover .post-image img {
  transform: scale(1.035);
}

.card-content,
.post-card-content {
  padding: 22px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.card-title,
.post-card h3 {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.card-title a:hover,
.post-card h3 a:hover {
  color: var(--color-primary);
}

.card-excerpt,
.post-card p {
  margin: 0 0 17px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.card-author {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border-light);
  padding-top: 12px;
  margin-top: 12px;
}

/* =========================================================
   PAGINATION
========================================================= */

.pagination,
.nav-links,
.post-navigation {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 46px;
}

.pagination .page-numbers,
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current,
.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar,
.widget-area {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 110px;
}

.sidebar-card,
.widget {
  padding: 24px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.sidebar-card h2,
.widget .widget-title {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
  border-bottom: 2px solid var(--color-border-light);
  padding-bottom: 8px;
}

.sidebar-card p,
.widget p {
  color: var(--color-text-secondary);
  font-size: 14px;
}

/* Generic widget fallback */
.widget ul {
  display: grid;
  gap: 10px;
}

.widget a {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.widget a:hover {
  color: var(--color-primary);
}

/* =========================================================
   SINGLE ARTICLE
========================================================= */

.single-post {
  background: white;
}

.entry-header {
  margin-bottom: 28px;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.entry-title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}

.entry-submeta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.single-post-image {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.single-post-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.entry-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
}

.entry-content p {
  margin-bottom: 24px;
}

.entry-content h2 {
  font-size: 28px;
  margin: 40px 0 16px;
  letter-spacing: -0.03em;
}

.entry-content h3 {
  font-size: 22px;
  margin: 32px 0 12px;
}

.entry-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-soft);
  font-size: 19px;
  font-style: italic;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

.post-tags a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-bg-muted);
  border-radius: 999px;
  font-size: 12px;
  margin: 4px;
  color: var(--color-text-secondary);
}

.post-tags a:hover {
  background: var(--color-primary);
  color: white;
}

/* =========================================================
   COMMENTS
========================================================= */

.comments-area {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.comments-title {
  font-size: 24px;
  margin-bottom: 24px;
}

.comment-list {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}

.comment-body {
  padding: 20px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.comment-author {
  font-weight: 700;
  color: var(--color-text);
}

.comment-form {
  display: grid;
  gap: 16px;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
}

.comment-form textarea {
  min-height: 120px;
}

.form-submit input[type="submit"] {
  background: var(--color-primary);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.form-submit input[type="submit"]:hover {
  background: var(--color-primary-dark);
}

/* =========================================================
   SEARCH FORM & NO RESULTS
========================================================= */

.search-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
}

.search-form input[type="search"] {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.search-form button[type="submit"] {
  padding: 0 20px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.no-results {
  padding: 60px 0;
  text-align: center;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 60px 0 30px;
  background: var(--color-bg-dark);
  color: white;
  margin-top: 80px;
}

.footer-inner {
  display: grid;
  gap: 40px;
}

.footer-branding {
  max-width: 500px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: white;
  display: inline-block;
  margin-bottom: 10px;
}

.site-description {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

.footer-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-navigation a {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-navigation a:hover {
  color: white;
}

.footer-copyright {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  color: #64748b;
  font-size: 13px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {
  .main-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .widget-area {
    position: static;
  }
}

@media (max-width: 800px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .menu-toggle {
    display: block;
  }

  .posts-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }
}

/* REDUCED MOTION & PRINT */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .sidebar, .site-footer, .comments-area { display: none; }
}