/* =========================================
   MENSFADE.COM — Main Stylesheet
   Clean, fast, mobile-first
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:    #111111;
  --dark:     #1a1a2e;
  --gold:     #C9A84C;
  --gold-lt:  #e5c87a;
  --white:    #ffffff;
  --off-white:#FAFAFA;
  --bg:       #F5F5F5;
  --text:     #222222;
  --muted:    #666666;
  --border:   #E0E0E0;
  --card-bg:  #ffffff;
  --shadow:   0 2px 12px rgba(0,0,0,0.08);
  --radius:   8px;
  --font:     'Georgia', 'Times New Roman', serif;
  --sans:     -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--dark); text-decoration: none; }
a:hover { color: var(--gold); }

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--black); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.375rem); }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
.site-header {
  background: var(--dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.site-logo__text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.site-logo__text span {
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.site-nav a.active {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
}

/* --- Mobile Nav --- */
@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 2px;
  }

  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
}

/* --- Ad Banner (top of page) --- */
.ad-banner {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  text-align: center;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #0f3460 100%);
  color: var(--white);
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content { position: relative; z-index: 1; }

.hero__tag {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-lt);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero-cats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cats a {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.hero-cats a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

/* --- Section Headings --- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.section-head h2 { margin: 0; }

.section-head a {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}

/* --- Article Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.cards-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card__image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--dark), #0f3460);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

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

.card__image .placeholder-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.card__cat {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
}

.card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--black);
}

.card__title a { color: inherit; }
.card__title a:hover { color: var(--gold); }

.card__excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.card__meta .dot { opacity: 0.4; }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 12px;
}

.read-more::after { content: '→'; }

/* --- Category Chip --- */
.cat-chip {
  display: inline-block;
  background: rgba(201,168,76,0.12);
  color: #8B6914;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* --- Section Spacing --- */
.section { padding: 50px 0; }
.section:first-of-type { padding-top: 50px; }

/* --- Category Boxes (homepage) --- */
.cat-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 720px) {
  .cat-boxes { grid-template-columns: 1fr; }
}

.cat-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  transition: transform 0.2s;
}

.cat-box:hover { transform: translateY(-2px); }

.cat-box__icon { font-size: 2rem; margin-bottom: 12px; }
.cat-box__name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.cat-box__desc { font-size: 0.875rem; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }

.btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.btn--gold {
  background: var(--gold);
  color: var(--dark);
}

.btn--gold:hover {
  background: var(--gold-lt);
  color: var(--dark);
}

.btn--outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--dark);
}

/* --- Article Page --- */
.article-hero {
  background: var(--dark);
  padding: 48px 0 40px;
  color: var(--white);
}

.article-hero .cat-chip {
  background: rgba(201,168,76,0.2);
  color: var(--gold-lt);
  margin-bottom: 16px;
  display: inline-block;
}

.article-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
}

.article-hero__excerpt {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin: 16px 0 0;
  max-width: 640px;
  line-height: 1.6;
}

/* --- Article Content --- */
.article-body {
  padding: 40px 0 60px;
}

.article-content {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #333;
}

.article-content h2 {
  font-family: var(--sans);
  font-size: 1.5rem;
  margin: 36px 0 14px;
  color: var(--dark);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.article-content h3 {
  font-family: var(--sans);
  font-size: 1.2rem;
  margin: 28px 0 10px;
  color: var(--black);
}

.article-content h4 {
  font-family: var(--sans);
  font-size: 1.05rem;
  margin: 20px 0 8px;
  color: var(--black);
}

.article-content p { margin-bottom: 1.25rem; }

.article-content ul, .article-content ol {
  margin: 0 0 1.25rem 1.5rem;
}

.article-content li { margin-bottom: 0.5rem; }

.article-content strong { color: var(--black); }

.article-content blockquote {
  border-left: 4px solid var(--gold);
  margin: 28px 0;
  padding: 16px 20px;
  background: rgba(201,168,76,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #444;
}

/* Tip box */
.tip-box {
  background: #f0f7ff;
  border: 1px solid #b3d4f5;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}

.tip-box__label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1a73e8;
  margin-bottom: 8px;
  font-family: var(--sans);
}

/* FAQ */
.faq { margin: 36px 0; }
.faq h2 { margin-bottom: 20px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: var(--white);
  border: none;
  text-align: left;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  color: var(--black);
  transition: background 0.2s;
}

.faq-q:hover { background: var(--bg); }
.faq-q .arrow { transition: transform 0.2s; font-style: normal; }
.faq-q.open .arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.7;
  font-family: var(--font);
  background: var(--white);
}

.faq-a.open { display: block; }

/* --- Sidebar --- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
}

.article-sidebar { position: sticky; top: 84px; }

.sidebar-widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.sidebar-widget__title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-links { list-style: none; }
.sidebar-links li { border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }

.sidebar-links a {
  display: block;
  padding: 10px 0;
  font-size: 0.875rem;
  color: var(--text);
  transition: color 0.15s;
}

.sidebar-links a:hover { color: var(--gold); }

/* --- Category Page --- */
.category-hero {
  background: var(--dark);
  padding: 40px 0;
  color: var(--white);
  text-align: center;
}

.category-hero h1 { color: var(--white); margin-bottom: 10px; }
.category-hero p { color: rgba(255,255,255,0.7); max-width: 540px; margin: 0 auto; }

/* --- Ad Units --- */
.ad-unit {
  text-align: center;
  margin: 32px 0;
  padding: 16px;
  background: var(--white);
  border: 1px dashed #ccc;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.8rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-unit--sidebar {
  min-height: 250px;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.4; }

/* --- Related Articles --- */
.related { padding: 40px 0; border-top: 1px solid var(--border); }
.related h2 { margin-bottom: 24px; }

/* --- Newsletter (trust signal for sellability) --- */
.newsletter-box {
  background: linear-gradient(135deg, var(--dark), #0f3460);
  border-radius: var(--radius);
  padding: 36px 32px;
  color: var(--white);
  text-align: center;
  margin: 40px 0;
}

.newsletter-box h3 { color: var(--white); margin-bottom: 8px; }
.newsletter-box p { color: rgba(255,255,255,0.7); margin-bottom: 20px; }

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-brand .site-logo__text { font-size: 1.3rem; }
.footer-brand p {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--gold); }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- 404 --- */
.not-found {
  text-align: center;
  padding: 80px 20px;
}

.not-found h1 { font-size: 6rem; color: var(--gold); line-height: 1; margin-bottom: 16px; }
.not-found h2 { margin-bottom: 16px; }
.not-found p { color: var(--muted); margin-bottom: 24px; }

/* --- About --- */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px;
}

.about-content h1 { margin-bottom: 24px; }
.about-content p { font-size: 1.0625rem; line-height: 1.8; margin-bottom: 1.25rem; color: #444; }

/* --- Privacy / Contact --- */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px;
}

.legal-content h1 { margin-bottom: 8px; }
.legal-content .updated { color: var(--muted); font-size: 0.875rem; margin-bottom: 32px; }
.legal-content h2 { margin: 32px 0 12px; font-size: 1.2rem; }
.legal-content p, .legal-content li { font-size: 0.9375rem; line-height: 1.75; color: #444; }
.legal-content ul { margin: 0 0 1rem 1.5rem; }
.legal-content a { color: var(--gold); }

/* Contact form */
.contact-form { max-width: 560px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9375rem;
  font-family: var(--sans);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: var(--white);
}

.pagination a:hover, .pagination .current {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

/* --- Responsive helpers --- */
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .hero { padding: 40px 0 36px; }
}
