/* =============================================
   RETAIL IT — Ghost Theme
   ============================================= */

/* Variables */
:root {
  --accent: #009FE3;
  --primary: #1D1D1B;
  --navy: #1a2b4a;
  --white: #ffffff;
  --light-bg: #f7f8fa;
  --border: #e8eaed;
  --text-muted: #6b7280;
  --max-width: 1200px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 6px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--primary); line-height: 1.6; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}
.btn--primary:hover {
  background: #007fc0;
  border-color: #007fc0;
  text-decoration: none;
  color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
}
.btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn--secondary:hover {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
}
.btn--nav {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  padding: 8px 20px;
  font-size: 0.875rem;
}
.btn--nav:hover {
  background: #007fc0;
  border-color: #007fc0;
  text-decoration: none;
  color: var(--white);
}

/* =============================================
   TOP UTILITY BAR
   ============================================= */
.top-bar {
  background: var(--navy);
  padding: 7px 24px;
}
.top-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  align-items: center;
}
.top-bar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.15s;
}
.top-bar__item:hover { color: var(--white); text-decoration: none; }
.top-bar__item svg { flex-shrink: 0; opacity: 0.8; }

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 64px; width: auto; }
.site-header__logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.site-header__logo-text:hover { text-decoration: none; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav__link {
  display: block;
  padding: 8px 14px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.site-nav__link:hover, .site-nav__link.active {
  background: var(--light-bg);
  color: var(--accent);
  text-decoration: none;
}
.site-nav__item--cta { margin-left: 8px; }
.site-nav__toggle { display: none; }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1f3c 100%);
  color: var(--white);
  padding: 96px 24px;
  text-align: center;
  position: relative;
}
.hero--has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero--has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 60, 0.65);
}
.hero--has-image .hero__inner { position: relative; z-index: 1; }
.hero__inner {
  max-width: 720px;
  margin: 0 auto;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.7;
  opacity: 0.88;
  margin-bottom: 40px;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   CREDENTIALS BAR
   ============================================= */
.cred-bar {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cred-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.cred-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 8px 20px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.cred-item:last-child { border-right: none; }
.cred-item__number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.cred-item__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-top: 6px;
  max-width: 160px;
}

/* =============================================
   SERVICES BAR
   ============================================= */
.svc-bar {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.svc-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.svc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 10px 24px;
  border-right: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  transition: opacity 0.2s;
}
.svc-item:last-child { border-right: none; }
.svc-item:hover { opacity: 0.7; text-decoration: none; }
.svc-item__icon { font-size: 1.6rem; margin-bottom: 4px; }
.svc-item__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
  padding: 80px 24px;
  background: var(--white);
}
.about-section__inner {
  max-width: 760px;
  margin: 0 auto;
}
.about-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.about-section p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 20px;
}
.about-section .btn { margin-top: 12px; }

/* =============================================
   NEWS SECTION (homepage)
   ============================================= */
.news-section {
  padding: 80px 24px;
  background: var(--light-bg);
}
.news-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.news-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 40px;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}
.news-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.news-card__image-link { display: block; }
.news-card__image { width: 100%; height: 200px; object-fit: cover; }
.news-card__body { padding: 24px; }
.news-card__date { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 8px; }
.news-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.news-card__title a { color: var(--primary); }
.news-card__title a:hover { color: var(--accent); text-decoration: none; }
.news-card__excerpt { font-size: 0.9rem; color: #4b5563; line-height: 1.6; margin-bottom: 16px; }
.news-card__link { font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.news-section__more { text-align: center; }

/* =============================================
   PAGE HEADER (news listing, static pages)
   ============================================= */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 60px 24px;
}
.page-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.page-header p {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* =============================================
   POST FEED (news listing)
   ============================================= */
.post-feed { padding: 60px 24px; }
.post-feed__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.post-card__image-link { display: block; }
.post-card__image { width: 100%; height: 220px; object-fit: cover; }
.post-card__body { padding: 28px; }
.post-card__date { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 10px; }
.post-card__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.post-card__title a { color: var(--primary); }
.post-card__title a:hover { color: var(--accent); text-decoration: none; }
.post-card__excerpt { font-size: 0.9rem; color: #4b5563; line-height: 1.65; margin-bottom: 16px; }
.post-card__link { font-size: 0.875rem; font-weight: 600; color: var(--accent); }

/* Pagination */
.pagination {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.pagination a { font-weight: 600; color: var(--accent); }
.pagination .page-number { color: var(--text-muted); font-size: 0.9rem; }

/* =============================================
   POST FULL (single article)
   ============================================= */
.post-full { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.post-full__header { margin-bottom: 40px; }
.post-full__tag {
  display: inline-block;
  background: var(--light-bg);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.post-full__tag a { color: inherit; }
.post-full__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--primary);
}
.post-full__meta { font-size: 0.875rem; color: var(--text-muted); }
.post-full__reading-time { margin-left: 4px; }
.post-full__image { margin-bottom: 40px; border-radius: 10px; overflow: hidden; }
.post-full__image img { width: 100%; }
.post-full__image figcaption { text-align: center; font-size: 0.85rem; color: var(--text-muted); padding: 10px; }
.post-full__footer { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.post-nav { display: flex; justify-content: space-between; margin-top: 24px; gap: 16px; flex-wrap: wrap; }
.post-nav__link { font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.post-nav__link--next { margin-left: auto; }

/* Ghost content styles */
.gh-content h2, .gh-content h3, .gh-content h4 {
  font-weight: 700;
  line-height: 1.3;
  margin: 2em 0 0.75em;
  color: var(--primary);
}
.gh-content h2 { font-size: 1.6rem; letter-spacing: -0.3px; }
.gh-content h3 { font-size: 1.3rem; }
.gh-content p { font-size: 1.05rem; line-height: 1.8; color: #374151; margin-bottom: 1.5em; }
.gh-content a { color: var(--accent); text-decoration: underline; }
.gh-content ul, .gh-content ol { margin: 0 0 1.5em 1.5em; }
.gh-content li { margin-bottom: 0.5em; font-size: 1.05rem; line-height: 1.75; color: #374151; }
.gh-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 24px;
  margin: 2em 0;
  background: var(--light-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #4b5563;
}
.gh-content img { border-radius: var(--radius); margin: 2em auto; }
.gh-content figure { margin: 2em 0; }
.gh-content figcaption { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }
.gh-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 2em 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.gh-content code { font-family: 'Courier New', monospace; font-size: 0.9em; }
.gh-content p code {
  background: var(--light-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary);
}
.gh-content hr { border: none; border-top: 1px solid var(--border); margin: 3em 0; }

/* =============================================
   PAGE FULL (static pages)
   ============================================= */
.page-full { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.page-full__header { margin-bottom: 40px; }
.page-full__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 16px;
}
.page-full__excerpt { font-size: 1.2rem; color: var(--text-muted); line-height: 1.6; }
.page-full__image { margin-bottom: 40px; border-radius: 10px; overflow: hidden; }
.page-full__image img { width: 100%; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 60px 24px 0;
  margin-top: 80px;
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer__logo img { height: 56px; width: auto; filter: brightness(0) invert(1); margin-bottom: 12px; }
.site-footer__logo-text { font-size: 1.3rem; font-weight: 800; color: var(--white); }
.site-footer__tagline { font-size: 0.875rem; margin-top: 8px; opacity: 0.6; }
.site-footer__cols { display: flex; gap: 48px; }
.site-footer__col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 16px;
}
.site-footer__col ul li { margin-bottom: 10px; }
.site-footer__col ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.15s; }
.site-footer__col ul li a:hover { color: var(--white); text-decoration: none; }
.site-footer__bottom { padding: 20px 0; }
.site-footer__bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-footer__bottom p { font-size: 0.85rem; opacity: 0.5; }

/* =============================================
   KOENIG EDITOR CONTENT WIDTH
   ============================================= */
.gh-content .kg-width-wide {
  margin-left: -8%;
  margin-right: -8%;
}
.gh-content .kg-width-full {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
}
.gh-content .kg-image { max-width: 100%; margin: 0 auto; }
.gh-content .kg-image-card { margin: 2em 0; }
.gh-content .kg-image-card figcaption { text-align: center; font-size: 0.85rem; color: var(--text-muted); padding: 8px; }
.gh-content .kg-gallery-card { margin: 2em 0; }
.gh-content .kg-gallery-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.gh-content .kg-gallery-image img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; }
.gh-content .kg-embed-card { margin: 2em 0; }
.gh-content .kg-bookmark-card { margin: 2em 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gh-content .kg-bookmark-container { display: flex; text-decoration: none; color: inherit; }
.gh-content .kg-bookmark-container:hover { background: var(--light-bg); }
.gh-content .kg-bookmark-content { padding: 20px; flex: 1; }
.gh-content .kg-bookmark-title { font-weight: 600; margin-bottom: 6px; }
.gh-content .kg-bookmark-description { font-size: 0.875rem; color: var(--text-muted); }
.gh-content .kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; }
.gh-content .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.gh-content .kg-callout-card { margin: 2em 0; display: flex; gap: 16px; background: var(--light-bg); border-radius: var(--radius); padding: 20px; }
.gh-content .kg-callout-emoji { font-size: 1.5rem; }
.gh-content .kg-toggle-card { margin: 2em 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.gh-content .kg-toggle-heading-text { font-weight: 600; }
.gh-content .kg-video-card { margin: 2em 0; }
.gh-content .kg-audio-card { margin: 2em 0; }
.gh-content .kg-file-card { margin: 2em 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 12px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .site-nav__list { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .site-nav__list.is-open { display: flex; }
  .site-nav__toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
  .site-nav__toggle span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: all 0.2s; }
  .site-header { position: relative; }
  .site-nav { position: static; }

  .hero { padding: 60px 24px; }
  .hero__ctas { flex-direction: column; align-items: center; }

  .cred-bar__inner { gap: 8px; }
  .cred-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; padding: 12px; }
  .cred-item:last-child { border-bottom: none; }

  .svc-bar__inner { gap: 0; }
  .svc-item { padding: 10px 12px; }
  .svc-item__label { font-size: 0.7rem; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__cols { flex-wrap: wrap; gap: 32px; }

  .news-grid { grid-template-columns: 1fr; }
  .post-feed__inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .svc-bar__inner { display: grid; grid-template-columns: repeat(3, 1fr); }
  .svc-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}
