/* ===========================================
   TopShelf — www.topshelf.co.za
   Non-critical styles (loaded async)
   DM Sans + Instrument Serif · Neutral palette
   =========================================== */

/* --- Utilities --- */
.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;
}

/* --- Section Label --- */
.section-label {
  font-family: var(--font);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-subtle);
  margin-bottom: 24px;
}

/* --- Brand Cards --- */
.brands {
  padding: 56px 0 72px;
}

.card {
  display: flex;
  align-items: stretch;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: box-shadow .2s, border-color .2s;
}

.card:last-child {
  margin-bottom: 0;
}

.card:hover {
  border-color: #ccc;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.card-accent {
  width: 4px;
  flex-shrink: 0;
}

.card-accent--warm   { background: #bbb; }
.card-accent--rose   { background: #ccc; }
.card-accent--neutral{ background: #aaa; }
.card-accent--cool   { background: #999; }

.card-body {
  padding: 28px 32px;
  flex: 1;
  min-width: 0;
}

.card-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-subtle);
  border: 1px solid var(--c-border);
  border-radius: 3px;
  padding: 3px 8px;
  margin-bottom: 12px;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card h3 a {
  color: var(--c-text);
  transition: color .15s;
}

.card h3 a:hover {
  color: #444;
}

.card p {
  font-size: .9rem;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 640px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--c-subtle);
  transition: color .15s;
}

.card-link:hover {
  color: var(--c-text);
}

.card-link svg {
  transition: transform .15s;
}

.card-link:hover svg {
  transform: translateX(3px);
}

/* --- Journal / Blog Section --- */
.journal {
  padding: 64px 0 72px;
  border-top: 1px solid var(--c-border);
}

.journal-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.journal-header h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  font-style: italic;
  color: var(--c-text);
}

.journal-all {
  font-size: .8rem;
  font-weight: 500;
  color: var(--c-subtle);
  transition: color .15s;
}

.journal-all:hover {
  color: var(--c-text);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  overflow: hidden;
}

.journal-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--c-surface);
  transition: background .15s;
}

.journal-card:hover {
  background: #f5f5f5;
}

.journal-date {
  font-size: .7rem;
  font-weight: 500;
  color: var(--c-subtle);
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.journal-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--c-text);
  margin-bottom: 8px;
}

.journal-card p {
  font-size: .82rem;
  color: var(--c-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.journal-read {
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-subtle);
  letter-spacing: .02em;
  transition: color .15s;
}

.journal-card:hover .journal-read {
  color: var(--c-text);
}

.journal-footer {
  text-align: center;
  margin-top: 40px;
}

/* --- FAQ Section --- */
.faq {
  padding: 56px 0 72px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}

.faq h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 32px;
  color: var(--c-text);
}

details {
  border-bottom: 1px solid var(--c-border);
}

details:last-of-type {
  border-bottom: none;
}

summary {
  padding: 18px 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--c-subtle);
  flex-shrink: 0;
  margin-left: 16px;
}

details[open] summary::after {
  content: '\2212';
}

details p {
  font-size: .9rem;
  color: var(--c-muted);
  line-height: 1.7;
  padding: 0 0 20px;
  max-width: 640px;
}

details a {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

details a:hover {
  color: #444;
}

/* --- Footer --- */
.footer {
  padding: 48px 0 32px;
  background: #111;
  color: #eee;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-col {
  min-width: 0;
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.footer-logo span {
  font-weight: 400;
  color: rgba(255,255,255,.45);
}

.footer-desc {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  max-width: 280px;
  line-height: 1.6;
}

.footer h4 {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 12px;
  font-weight: 600;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer a {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  transition: color .15s;
}

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

.footer-bottom {
  padding-top: 20px;
}

.footer-bottom p {
  font-size: .75rem;
  color: rgba(255,255,255,.25);
  text-align: center;
}

/* --- Blog Page Styles --- */
.blog-list {
  padding: 56px 0 72px;
}

.blog-list-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  overflow: hidden;
}

.blog-list-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 22px 28px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  transition: background .15s;
}

.blog-list-item:last-child {
  border-bottom: none;
}

.blog-list-item:hover {
  background: #f5f5f5;
}

.blog-list-item time {
  font-size: .75rem;
  font-weight: 500;
  color: var(--c-subtle);
  white-space: nowrap;
  min-width: 80px;
}

.blog-list-item h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--c-text);
  flex: 1;
}

.blog-list-item p {
  display: none;
}

/* Article page */
.article-header {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--c-border);
}

.article-header .breadcrumb {
  font-size: .75rem;
  color: var(--c-subtle);
  margin-bottom: 20px;
}

.article-header .breadcrumb a {
  color: var(--c-subtle);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-header .breadcrumb a:hover {
  color: var(--c-text);
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--c-text);
}

.article-meta {
  font-size: .8rem;
  color: var(--c-subtle);
}

.article-body {
  padding: 48px 0 72px;
  max-width: 680px;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  margin: 40px 0 16px;
  color: var(--c-text);
}

.article-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--c-text);
}

.article-body p {
  font-size: .95rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-body a {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.article-body a:hover {
  color: #444;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 20px;
  color: #333;
}

.article-body li {
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 3px solid var(--c-border);
  padding: 12px 0 12px 24px;
  margin: 24px 0;
  color: var(--c-muted);
  font-style: italic;
}

.article-cta {
  margin-top: 48px;
  padding: 32px;
  background: #f5f5f5;
  border-radius: 6px;
  border: 1px solid var(--c-border);
}

.article-cta h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--c-text);
}

.article-cta p {
  font-size: .85rem;
  color: var(--c-muted);
  margin-bottom: 16px;
}

.article-cta a.cta-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--c-text);
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s;
  margin-right: 8px;
  margin-bottom: 8px;
}

.article-cta a.cta-btn:hover {
  background: #333;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .journal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 0 48px;
  }

  .brands {
    padding: 40px 0 56px;
  }

  .card-body {
    padding: 20px 16px;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .journal {
    padding: 48px 0 56px;
  }

  .journal-grid {
    grid-template-columns: 1fr;
  }

  .journal-header {
    flex-direction: column;
    gap: 8px;
  }

  .faq {
    padding: 40px 0 56px;
  }

  .faq h2 {
    font-size: 1.25rem;
  }

  .footer-grid {
    flex-direction: column;
    gap: 32px;
  }

  .nav-links a:first-child {
    display: none;
  }

  .blog-list-item {
    flex-direction: column;
    gap: 4px;
    padding: 18px 16px;
  }

  .article-body {
    padding: 32px 0 56px;
  }
}

/* --- Print --- */
@media print {
  .nav, .hero-cta, .footer, .journal {
    display: none;
  }

  .card {
    break-inside: avoid;
    border: 1px solid #ccc;
  }
}
