/*
Theme Name: Brisbane Digital
Theme URI: https://brisbane.digital
Author: Base Digital
Author URI: https://basedigital.com.au
Description: Brisbane Digital — digital marketing knowledge hub theme.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: brisbane-digital
*/

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:      #87bcbf;
  --teal-dark: #6aa3a6;
  --teal-pale: #eef6f6;
  --black:     #0a0a0a;
  --dark:      #2a2a2a;
  --mid:       #666666;
  --muted:     #999999;
  --border:    #e8e8e8;
  --surface:   #f7f7f7;
  --white:     #ffffff;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; color: var(--black); background: var(--white); line-height: 1.6; font-size: 16px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
ul, ol { list-style: none; }

/* ── LOGO ── */
.logo-mark { display: inline-flex; align-items: baseline; line-height: 1; }
.logo-mark .word { font-size: 20px; font-weight: 900; color: var(--black); letter-spacing: -0.5px; }
.logo-mark .dot  { font-size: 20px; font-weight: 900; color: var(--teal); }

/* ── HEADER ── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 32px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.primary-nav { display: flex; align-items: center; gap: 2px; }
.primary-nav a { padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--mid); transition: color .15s, background .15s; }
.primary-nav a:hover,
.primary-nav a.current-menu-item,
.primary-nav a.current-category-ancestor { color: var(--black); background: var(--surface); }
.nav-cta { margin-left: 8px; padding: 9px 18px !important; background: var(--black) !important; color: var(--white) !important; border-radius: 6px !important; font-weight: 600 !important; font-size: 13px !important; transition: opacity .15s !important; }
.nav-cta:hover { opacity: .75 !important; background: var(--black) !important; }

/* ── HERO (front page) ── */
.hero {
  max-width: var(--max-width); margin: 0 auto; padding: 72px 32px 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 22px; }
.hero-eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--teal); border-radius: 2px; }
.hero-heading { font-size: clamp(30px, 3.2vw, 46px); font-weight: 900; color: var(--black); letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px; }
.hero-heading em { font-style: normal; color: var(--teal-dark); }
.hero-sub { font-size: 17px; color: var(--mid); line-height: 1.7; max-width: 380px; }

/* Featured card */
.hero-feature { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--white); transition: box-shadow .2s; display: block; }
.hero-feature:hover { box-shadow: 0 16px 48px rgba(0,0,0,.09); }
.hero-feature-img { height: 256px; overflow: hidden; }
.hero-feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-feature:hover .hero-feature-img img { transform: scale(1.04); }
.hero-feature-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e8e8e8, #d0d0d0); }
.hero-feature-body { padding: 26px; }
.feature-tag { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; background: var(--teal-pale); color: var(--teal-dark); margin-bottom: 12px; }
.hero-feature-body h2 { font-size: 20px; font-weight: 800; color: var(--black); letter-spacing: -0.4px; line-height: 1.25; margin-bottom: 10px; }
.hero-feature-body .excerpt { font-size: 14px; color: var(--mid); line-height: 1.65; margin-bottom: 18px; }

/* Meta row */
.meta-row { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--black); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: white; }
.avatar.teal { background: var(--teal); color: var(--black); }
.meta-name { font-size: 12px; font-weight: 600; color: var(--black); }
.meta-date { font-size: 11px; color: var(--muted); }
.meta-read { font-size: 11px; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* ── DIVIDER ── */
.section-divider { border: none; border-top: 1px solid var(--border); }

/* ── FILTER BAR ── */
.filter-bar { max-width: var(--max-width); margin: 0 auto; padding: 22px 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill { padding: 7px 16px; border-radius: 100px; font-size: 13px; font-weight: 500; border: 1.5px solid var(--border); color: var(--mid); transition: all .15s; background: white; }
.filter-pill:hover { border-color: var(--dark); color: var(--black); }
.filter-pill.active { border-color: var(--teal); color: var(--black); background: var(--teal-pale); font-weight: 600; }
.article-count { font-size: 13px; color: var(--muted); }

/* ── ARTICLE GRID ── */
.articles-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 32px 80px; }
.archive-header { padding: 48px 0 32px; }
.archive-header h1 { font-size: 32px; font-weight: 900; letter-spacing: -1px; color: var(--black); margin-bottom: 8px; }
.archive-header p { font-size: 15px; color: var(--mid); }
.archive-header .cat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: 10px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* ── ARTICLE CARD ── */
.article-card { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--white); transition: box-shadow .2s, transform .2s; }
.article-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-2px); }
.card-img { height: 196px; overflow: hidden; position: relative; flex-shrink: 0; background: var(--surface); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.article-card:hover .card-img img { transform: scale(1.05); }
.card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--teal-pale), #d8eced); }
.card-cat { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; background: white; color: var(--black); }
.card-cat.local { background: var(--teal); color: var(--black); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 15.5px; font-weight: 800; color: var(--black); letter-spacing: -0.3px; line-height: 1.3; margin-bottom: 8px; transition: color .15s; }
.article-card:hover .card-body h3 { color: var(--teal-dark); }
.card-body .card-excerpt { font-size: 13.5px; color: var(--mid); line-height: 1.6; margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 9px; padding-top: 14px; border-top: 1px solid var(--border); }
.card-meta .avatar { width: 26px; height: 26px; font-size: 9px; }
.meta-block { flex: 1; min-width: 0; }
.meta-block .name { font-size: 12px; font-weight: 600; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta-block .date { font-size: 11px; color: var(--muted); }
.read-time { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* Pagination */
.pagination { text-align: center; padding: 40px 0 0; }
.no-posts { color: var(--mid); font-size: 15px; padding: 40px 0; }
.pagination .page-numbers { display: inline-flex; align-items: center; gap: 6px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; border: 1.5px solid var(--border); color: var(--mid); transition: all .15s; }
.pagination a:hover { border-color: var(--black); color: var(--black); }
.pagination .current { background: var(--black); color: white; border-color: var(--black); }

/* ── SINGLE ARTICLE ── */
.article-header { max-width: 720px; margin: 0 auto; padding: 48px 32px 0; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 24px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--mid); transition: color .15s; }
.breadcrumb a:hover { color: var(--black); }
.art-cat-badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; background: var(--teal-pale); color: var(--teal-dark); margin-bottom: 16px; }
.article-header h1 { font-size: clamp(26px, 3.5vw, 40px); font-weight: 900; color: var(--black); letter-spacing: -1px; line-height: 1.15; margin-bottom: 18px; }
.article-lede { font-size: 18px; color: var(--mid); line-height: 1.65; border-left: 3px solid var(--teal); padding-left: 18px; margin-bottom: 28px; }
.article-meta { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.avatar-lg { width: 44px; height: 44px; border-radius: 50%; background: var(--black); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: white; }
.meta-author-name { font-size: 15px; font-weight: 700; color: var(--black); }
.meta-author-role { font-size: 12px; color: var(--muted); }
.meta-date-read { margin-left: auto; text-align: right; }
.meta-date-read .date { font-size: 13px; color: var(--mid); font-weight: 500; }
.meta-date-read .reading { font-size: 12px; color: var(--muted); }
.share-btns { display: flex; gap: 6px; }
.share-btn { padding: 7px 13px; border-radius: 6px; border: 1.5px solid var(--border); font-size: 12px; font-weight: 500; color: var(--mid); cursor: pointer; background: white; transition: all .15s; font-family: inherit; }
.share-btn:hover { border-color: var(--black); color: var(--black); }

/* Hero image */
.hero-img-wrap { max-width: 920px; margin: 36px auto 0; padding: 0 32px; }
.hero-img-wrap img { width: 100%; height: 440px; border-radius: 12px; object-fit: cover; }
.hero-img-wrap .no-thumb { width: 100%; height: 440px; border-radius: 12px; background: linear-gradient(135deg, var(--teal-pale), #c8e4e5); }
.img-caption { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Article body + sidebar layout */
.article-layout { max-width: 1100px; margin: 40px auto 80px; padding: 0 32px; display: grid; grid-template-columns: 1fr 260px; gap: 72px; align-items: start; }

/* Body copy */
.article-body { font-family: 'Lora', Georgia, serif; font-size: 18px; line-height: 1.85; color: #1a1a1a; }
.article-body p { margin-bottom: 26px; }
.article-body h2 { font-family: 'Inter', sans-serif; font-size: 24px; font-weight: 800; color: var(--black); letter-spacing: -0.5px; margin: 48px 0 16px; line-height: 1.2; }
.article-body h3 { font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 700; color: var(--black); margin: 32px 0 12px; }
.article-body h4 { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 700; color: var(--black); margin: 24px 0 10px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 26px; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 10px; }
.article-body a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { font-weight: 700; color: var(--black); font-family: 'Inter', sans-serif; font-size: 17px; }
.article-body blockquote { border-left: 3px solid var(--teal); margin: 32px 0; padding: 4px 22px; color: var(--mid); font-style: italic; font-size: 19px; line-height: 1.7; }
.article-body img { border-radius: 10px; margin: 24px 0; }

/* Sidebar */
.article-sidebar { position: sticky; top: 80px; }
.sidebar-widget { background: var(--surface); border-radius: 10px; border: 1px solid var(--border); padding: 20px; margin-bottom: 18px; }
.sidebar-widget h4 { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.related-mini { display: flex; gap: 10px; margin-bottom: 14px; }
.related-mini:last-child { margin-bottom: 0; }
.related-mini img { width: 58px; height: 58px; border-radius: 6px; flex-shrink: 0; object-fit: cover; }
.related-mini-placeholder { width: 58px; height: 58px; border-radius: 6px; background: var(--teal-pale); flex-shrink: 0; }
.related-mini h5 { font-size: 12px; font-weight: 600; color: var(--black); line-height: 1.35; margin-bottom: 3px; font-family: 'Inter', sans-serif; }
.related-mini h5:hover { color: var(--teal-dark); }
.related-mini span { font-size: 11px; color: var(--muted); font-family: 'Inter', sans-serif; }
.cta-widget { background: var(--black); border-radius: 10px; padding: 20px; color: white; text-align: center; }
.cta-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-bottom: 12px; }
.cta-widget h4 { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 800; color: white; margin-bottom: 8px; letter-spacing: 0; text-transform: none; }
.cta-widget p { font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.55; margin-bottom: 16px; font-family: 'Inter', sans-serif; }
.cta-widget a { display: block; padding: 10px 16px; background: var(--teal); color: var(--black); border-radius: 6px; font-size: 13px; font-weight: 700; transition: opacity .15s; font-family: 'Inter', sans-serif; }
.cta-widget a:hover { opacity: .85; }

/* Author bio */
.author-bio-wrap { max-width: 720px; margin: 0 auto 64px; padding: 0 32px; }
.bio-card { display: flex; gap: 20px; padding: 28px; background: var(--surface); border-radius: 12px; border: 1px solid var(--border); }
.bio-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--black); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: white; font-family: 'Inter', sans-serif; }
.bio-name { font-size: 16px; font-weight: 800; margin-bottom: 3px; font-family: 'Inter', sans-serif; }
.bio-role { font-size: 12px; color: var(--teal-dark); font-weight: 600; margin-bottom: 10px; font-family: 'Inter', sans-serif; }
.bio-text { font-size: 13px; color: var(--mid); line-height: 1.65; font-family: 'Inter', sans-serif; }

/* Related articles */
.related-section { background: var(--surface); border-top: 1px solid var(--border); padding: 60px 32px; }
.related-inner { max-width: var(--max-width); margin: 0 auto; }
.related-inner h2 { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rel-card { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: white; transition: box-shadow .2s, transform .2s; display: block; }
.rel-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.rel-card img { height: 150px; width: 100%; object-fit: cover; }
.rel-card-placeholder { height: 150px; background: var(--teal-pale); }
.rel-body { padding: 16px 18px; }
.rel-cat { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 6px; }
.rel-body h3 { font-size: 14px; font-weight: 700; color: var(--black); line-height: 1.35; }
.rel-card:hover .rel-body h3 { color: var(--teal-dark); }

/* ── NEWSLETTER ── */
.newsletter-section { background: var(--black); padding: 80px 32px; }
.newsletter-inner { max-width: 520px; margin: 0 auto; text-align: center; }
.nl-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); margin-bottom: 24px; }
.newsletter-inner h2 { font-size: 30px; font-weight: 900; color: white; letter-spacing: -1px; line-height: 1.15; margin-bottom: 12px; }
.newsletter-inner p { font-size: 15px; color: rgba(255,255,255,.5); line-height: 1.65; margin-bottom: 30px; }
.nl-form { display: flex; gap: 8px; }
.nl-form input { flex: 1; padding: 13px 16px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.12); background: rgba(255,255,255,.07); color: white; font-size: 14px; font-family: 'Inter', sans-serif; outline: none; transition: border-color .15s; }
.nl-form input::placeholder { color: rgba(255,255,255,.3); }
.nl-form input:focus { border-color: var(--teal); }
.nl-form button { padding: 13px 22px; border-radius: 6px; background: var(--teal); color: var(--black); border: none; font-size: 14px; font-weight: 700; font-family: 'Inter', sans-serif; cursor: pointer; white-space: nowrap; transition: opacity .15s; }
.nl-form button:hover { opacity: .85; }

/* ── FOOTER ── */
#site-footer { background: var(--white); border-top: 1px solid var(--border); padding: 48px 32px 28px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.footer-desc { font-size: 13px; color: var(--mid); line-height: 1.65; max-width: 260px; margin-top: 12px; }
.footer-links-col h4 { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-links-col ul li { margin-bottom: 9px; }
.footer-links-col a { font-size: 14px; color: var(--mid); transition: color .15s; }
.footer-links-col a:hover { color: var(--black); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 8px; align-items: center; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .header-inner, .hero, .articles-wrap, .filter-bar,
  .article-header, .hero-img-wrap, .article-layout,
  .author-bio-wrap, .related-section, #site-footer { padding-left: 20px; padding-right: 20px; }
  .primary-nav a:not(.nav-cta) { display: none; }
  .article-grid, .related-grid { grid-template-columns: 1fr; }
  .hero-img-wrap img, .hero-img-wrap .no-thumb { height: 220px; }
  .footer-top { flex-direction: column; }
  .nl-form { flex-direction: column; }
  .bio-card { flex-direction: column; }
  .article-meta { flex-wrap: wrap; }
  .share-btns { display: none; }
}
