/* ==========================================================================
   Fuego y Corte — style.css
   Dark editorial design for a Mexican carne asada culture blog
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --charcoal: #2C2C2C;
  --flame: #D4380D;
  --flame-hover: #B82E0A;
  --cream: #FAF3E8;
  --smoke: #8C8C8C;
  --dark-text: #1A1A1A;
  --dark-bg: #1E1E1E;
  --card-bg: #353535;
  --border: #444;
  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --max-content: 760px;
  --max-page: 1200px;
  --radius: 6px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  overflow-x: hidden;
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-text);
  background: var(--cream);
  /* Smoky gradient at the top */
  background-image: linear-gradient(to bottom, #1E1E1E 0%, #2C2C2C 80px, var(--cream) 280px);
  background-repeat: no-repeat;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Utility ---------- */
.container { width: 90%; max-width: var(--max-page); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Header ---------- */
.site-header {
  background: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--flame);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo a {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
}
.logo a span {
  color: var(--flame);
}
.tagline {
  display: none;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--smoke);
  text-transform: none;
  letter-spacing: 0.5px;
  font-weight: 400;
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav */
.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--charcoal);
  border-top: 1px solid var(--border);
}
.main-nav.open { display: block; }
.main-nav ul { padding: 8px 0; }
.main-nav li a {
  display: block;
  padding: 12px 5%;
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.main-nav li a:hover,
.main-nav li a.active { background: rgba(212,56,13,0.15); color: var(--flame); }

/* ---------- Hero / Featured ---------- */
.hero {
  background: linear-gradient(to bottom, var(--dark-bg), var(--charcoal) 60%, #3a2a20);
  padding: 40px 0 56px;
}
.hero-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--flame);
  margin-bottom: 8px;
}
.hero-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  transition: transform 0.2s;
}
.hero-card:hover { transform: translateY(-2px); }
.hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #1a0e08;
}
.hero-body { padding: 20px; }
.hero-body .category-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--flame);
  border: 1px solid var(--flame);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.hero-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.hero-body p {
  font-size: 0.9rem;
  color: var(--smoke);
  margin-bottom: 12px;
  line-height: 1.5;
}
.hero-meta {
  font-size: 0.75rem;
  color: var(--smoke);
}
.hero-meta .author { color: var(--cream); font-weight: 500; }

/* ---------- Article Grid ---------- */
.section-articles {
  padding: 40px 0 48px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark-text);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--flame);
  display: inline-block;
}
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.article-card {
  background: var(--charcoal);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(212,56,13,0.2), 0 6px 20px rgba(0,0,0,0.3);
}
.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: #1a0e08;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-img .category-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: var(--flame);
  padding: 2px 7px;
  border-radius: 3px;
  z-index: 1;
}
.card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 6px;
}
.card-body .excerpt {
  font-size: 0.78rem;
  color: var(--smoke);
  line-height: 1.45;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 0.68rem;
  color: var(--smoke);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 8px;
  margin-top: auto;
}
.card-meta .author { color: var(--cream); font-weight: 500; }

/* ---------- Article Page ---------- */
.article-header {
  background: var(--charcoal);
  padding: 32px 0 36px;
  text-align: center;
}
.article-header .category-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--flame);
  border: 1px solid var(--flame);
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.article-header h1 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--cream);
  text-transform: uppercase;
  max-width: 640px;
  margin: 0 auto 16px;
}
.article-header .article-meta {
  font-size: 0.8rem;
  color: var(--smoke);
}
.article-header .article-meta .author { color: var(--cream); font-weight: 500; }
.article-header .article-meta span + span::before { content: ' · '; }

.article-hero-img {
  width: 100%;
  max-width: var(--max-content);
  max-height: 350px;
  object-fit: cover;
  object-position: bottom;
  margin: -20px auto 0;
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
  display: block;
  background: #1a0e08;
}

.article-content {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 32px 5%;
}
.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--dark-text);
  margin: 28px 0 12px;
  padding-top: 8px;
}
.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--dark-text);
  margin: 22px 0 8px;
}
.article-content p {
  margin-bottom: 16px;
  color: #333;
  line-height: 1.7;
}
.article-content ul, .article-content ol {
  margin: 0 0 16px 20px;
  color: #333;
  line-height: 1.7;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 6px; }
.article-content strong { color: var(--dark-text); }
.article-content blockquote {
  border-left: 3px solid var(--flame);
  padding: 12px 16px;
  margin: 20px 0;
  background: rgba(212,56,13,0.05);
  font-style: italic;
  color: #555;
}

/* Numbered errors / tips */
.article-content .tip-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--flame);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

/* Recipe box */
.recipe-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
}
.recipe-box h3 {
  margin-top: 0;
  border-bottom: 2px solid var(--flame);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

/* ---------- CTA Button ---------- */
.cta-btn {
  display: inline-block;
  background: var(--flame);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}
.cta-btn:hover { background: var(--flame-hover); transform: translateY(-1px); }
.cta-btn:active { /* visible */ }
.cta-wrap { text-align: center; margin: 28px 0; }

/* ---------- Comments Section ---------- */
.comments-section {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 5% 40px;
}
.comments-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ddd;
}
.comment {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.comment:last-child { border-bottom: none; }
.comment-author {
  font-weight: 600;
  color: var(--dark-text);
  font-size: 0.9rem;
}
.comment-author.is-author {
  color: var(--flame);
}
.comment-author.is-author::after {
  content: 'Autor';
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--flame);
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}
.comment-date {
  font-size: 0.75rem;
  color: var(--smoke);
  margin-left: 4px;
}
.comment-text {
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #444;
}
.comment.reply {
  margin-left: 24px;
  padding-left: 16px;
  border-left: 2px solid #eee;
}

/* ---------- About Page ---------- */
.about-hero {
  background: var(--charcoal);
  padding: 40px 0;
  text-align: center;
}
.about-hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.about-hero p {
  color: var(--smoke);
  font-size: 0.9rem;
}
.about-content {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 36px 5%;
}
.about-content h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--dark-text);
  margin: 28px 0 12px;
}
.about-content p {
  margin-bottom: 16px;
  color: #333;
  line-height: 1.7;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0 32px;
}
.team-member {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--charcoal);
}
.team-info h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 2px;
}
.team-info .role {
  font-size: 0.75rem;
  color: var(--flame);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.team-info p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-bg);
  color: var(--smoke);
  padding: 36px 0 24px;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.footer-about h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-about h4 span { color: var(--flame); }
.footer-about p { font-size: 0.82rem; line-height: 1.55; }
.footer-nav h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-nav ul li a {
  font-size: 0.82rem;
  color: var(--smoke);
  display: block;
  padding: 3px 0;
  transition: color 0.2s;
}
.footer-nav ul li a:hover { color: var(--flame); }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--smoke);
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--flame); color: #fff; }
.footer-copy {
  text-align: center;
  font-size: 0.72rem;
  color: #666;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #333;
  grid-column: 1 / -1;
}

.footer-copy a {
  color: var(--smoke);
  transition: color .2s;
}

.footer-copy a:hover {
  color: var(--flame);
}

/* ---------- Related Articles (bottom of article pages) ---------- */
.related-articles {
  background: #f3ede4;
  padding: 36px 0;
}
.related-articles .section-title {
  color: var(--dark-text);
}

/* ---------- Desktop (min 768px) ---------- */
@media (min-width: 768px) {
  .tagline { display: block; }
  .logo a { font-size: 1.9rem; }

  .menu-toggle { display: none; }
  .main-nav {
    display: flex !important;
    position: static;
    background: transparent;
    border-top: none;
  }
  .main-nav ul { display: flex; gap: 4px; padding: 0; }
  .main-nav li a {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius);
  }

  .hero { padding: 56px 0 64px; }
  .hero-card { display: grid; grid-template-columns: 1.2fr 1fr; }
  .hero-img { aspect-ratio: auto; height: 100%; min-height: 300px; }
  .hero-body h2 { font-size: 1.9rem; }
  .hero-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }

  .article-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card-body h3 { font-size: 0.95rem; }

  .article-header h1 { font-size: 2.2rem; }

  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }

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

  .about-hero h1 { font-size: 2.5rem; }
}

/* ---------- Social Proof ---------- */
.cta-proof {
  text-align: center;
  font-size: 0.82rem;
  color: #888;
  margin-top: 0.5rem;
}

/* ---------- Sticky CTA Bar ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  z-index: 1000;
  /* always visible */
  background: #2C2C2C;
  border-top: 2px solid #D4380D;
}
.sticky-cta.visible {
  /* visible */
}
.sticky-cta span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #FAF3E8;
}
.sticky-cta a {
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  background: #D4380D;
  color: #fff;
}

/* ---------- Video Embed ---------- */
.video-embed {
  margin: 2rem 0;
}
.video-embed iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
}
.video-embed .video-caption {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ---------- Share Bar ---------- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin: 0.4rem 0;
}
.share-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.25rem;
  color: var(--dark-text);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}
.share-btn:hover { opacity: 0.8; }
.share-fb { background: #1877f2; color: #fff; }
.share-wa { background: #25d366; color: #fff; }
.share-tw { background: #000; color: #fff; }
.share-copy { background: #e0e0e0; color: #333; font-size: 0.75rem; }
.share-copy.copied { background: #4caf50; color: #fff; }

/* ---------- Large desktop (min 1024px) ---------- */
@media (min-width: 1024px) {
  .hero-body h2 { font-size: 2.2rem; }
  .article-header h1 { font-size: 2.5rem; }
}

/* ---------- Early CTA ---------- */
.early-cta {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  margin: 1.2rem 0 1.8rem;
  background: rgba(0,0,0,.06);
  border: 2px dashed rgba(0,0,0,.15);
  text-align: center;
}
.early-cta a { font-weight: 700; font-size: 1rem; text-decoration: underline; }

/* ---------- FAQ ---------- */
details {
  margin-bottom: 0.75rem;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 6px;
}
details summary { padding: 12px 16px; cursor: pointer; font-size: 0.95rem; }
details summary:hover { background: rgba(0,0,0,.03); }
details[open] summary { border-bottom: 1px solid rgba(0,0,0,.08); }
details p { padding: 12px 16px; font-size: 0.9rem; color: #555; margin: 0; }

/* ---------- Sticky CTA Bar ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0,0,0,.15);
}
.sticky-cta span { font-size: 0.85rem; font-weight: 600; }
.sticky-cta a {
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Fix share bar gap after meta */
.article-meta + .share-bar { margin-top: 0.5rem; border-top: none; }

.early-cta a { color: var(--flame); }
.sticky-cta { background: #2C2C2C; border-top: 2px solid #D4380D; }
.sticky-cta span { color: #FAF3E8; }
.sticky-cta a { background: #D4380D; color: #fff; }

@media (max-width: 480px) {
  .sticky-cta { padding: 0.6rem 0.75rem; }
  .sticky-cta span { font-size: 0.75rem; }
  .sticky-cta a { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
}

/* Compact share bar */
.share-bar {
  padding: 0.5rem 0;
  margin: 0.5rem 0;
  gap: 0.4rem;
}
.share-label { font-size: 0.75rem; }
.share-btn { width: 30px; height: 30px; }
.share-btn svg { width: 16px; height: 16px; }
