/* =============================================
   Barbeceu — Global Styles
   Smoky, warm BBQ theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg:        #3d1e08;
  --surface:   #522a10;
  --surface2:  #663518;
  --ember:     #e85d04;
  --flame:     #f4a22d;
  --ash:       #f5ede3;
  --muted:     #c8986a;
  --border:    #8a4c28;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ash);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(61, 30, 8, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--flame), var(--ember));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  color: var(--ash);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  opacity: .85;
  transition: opacity .2s, color .2s;
}
.nav-links a:hover { opacity: 1; color: var(--flame); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(232, 93, 4, .45) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 30% 100%, rgba(244, 162, 45, .3) 0%, transparent 60%),
    linear-gradient(180deg, #3d1e08 0%, #5a2810 100%);
  z-index: 0;
}

.hero-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(232,93,4,.4) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 780px; }

.hero-badge {
  display: inline-block;
  background: rgba(232,93,4,.15);
  border: 1px solid rgba(232,93,4,.4);
  color: var(--flame);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 20%, var(--flame) 60%, var(--ember) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .5rem 1.25rem;
  font-size: .9rem;
  font-weight: 500;
}
.meta-pill .icon { font-size: 1.1rem; }

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: .8rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  text-decoration: none;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--ember), var(--flame));
  color: #fff;
  box-shadow: 0 4px 20px rgba(232,93,4,.45);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(232,93,4,.65); }

.btn-secondary {
  background: transparent;
  color: var(--ash);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--flame); color: var(--flame); }

/* ---- Section ---- */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: .5rem;
  background: linear-gradient(135deg, var(--ash) 40%, var(--flame));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* ---- Info grid ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .2s, transform .2s;
}
.info-card:hover { border-color: var(--ember); transform: translateY(-3px); }

.info-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
  display: block;
}

.info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--flame);
  margin-bottom: .4rem;
}

.info-card p { color: var(--muted); font-size: .95rem; }

/* ---- Divider ---- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---- Form styles ---- */
.form-wrap { max-width: 620px; margin: 0 auto; }

.form-row { margin-bottom: 1.5rem; }

.form-row label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ash);
  margin-bottom: .5rem;
}

.form-input {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .75rem 1rem;
  color: var(--ash);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(232,93,4,.2);
}
.form-input::placeholder { color: var(--muted); }

select.form-input option { background: var(--surface2); }

.form-help {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .3rem;
}

.form-error { color: #f87171; font-size: .85rem; margin-top: .3rem; }

.form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--ember) 0%, var(--flame) 60%, transparent 100%);
}

.tl-item {
  position: relative;
  display: flex;
  gap: 1.75rem;
  padding-bottom: 2.5rem;
}

.tl-item--last { padding-bottom: 0; }

.tl-marker {
  flex-shrink: 0;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--ember);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -2rem;
  box-shadow: 0 0 16px rgba(232, 93, 4, .35);
  z-index: 1;
}

.tl-icon { font-size: 1.2rem; line-height: 1; }

.tl-body {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color .2s, transform .2s;
}

.tl-body:hover {
  border-color: var(--ember);
  transform: translateX(4px);
}

.tl-time {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--flame);
  background: rgba(244, 162, 45, .1);
  border: 1px solid rgba(244, 162, 45, .25);
  border-radius: 999px;
  padding: .2rem .75rem;
  margin-bottom: .65rem;
}

.tl-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--ash);
  margin-bottom: .4rem;
}

.tl-text { color: var(--muted); font-size: .95rem; line-height: 1.65; }

/* ---- Blog post card ---- */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: border-color .2s;
}
.post-card:hover { border-color: var(--ember); }

.post-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}

.post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ember), var(--flame));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  flex-shrink: 0;
}

.post-author { font-weight: 600; font-size: .95rem; color: var(--ash); }
.post-date { font-size: .8rem; color: var(--muted); }
.post-content { color: var(--ash); line-height: 1.65; white-space: pre-wrap; word-break: break-word; }

/* ---- Success page ---- */
.success-wrap {
  max-width: 520px;
  margin: 8rem auto;
  text-align: center;
  padding: 0 2rem;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}

.success-wrap h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--ash) 30%, var(--flame));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.success-wrap p { color: var(--muted); margin-bottom: 2rem; font-size: 1.05rem; }

/* ---- Hosts section ---- */
.hosts-section { padding-top: 4rem; padding-bottom: 4rem; }

.hosts-inner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.hosts-img-wrap {
  flex-shrink: 0;
  position: relative;
}

.hosts-img {
  width: 300px;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,.35), 0 0 0 6px var(--surface2);
  display: block;
}

/* Ember glow behind the photo */
.hosts-img-wrap::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(ellipse at 50% 100%, rgba(232,93,4,.35) 0%, transparent 70%);
  z-index: -1;
  filter: blur(16px);
}

.hosts-text { flex: 1; min-width: 260px; }

.hosts-body {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-top: .75rem;
}

@media (max-width: 640px) {
  .hosts-inner { flex-direction: column; align-items: center; text-align: center; }
  .hosts-img { width: 100%; max-width: 320px; height: 260px; }
}

/* ---- Sizzle toggle button ---- */
.sizzle-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.sizzle-btn:hover {
  border-color: var(--ember);
  box-shadow: 0 4px 24px rgba(232,93,4,.4);
  transform: scale(1.08);
}
.sizzle-btn.sizzle-on {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(232,93,4,.25), 0 4px 20px rgba(0,0,0,.25);
  animation: sizzle-pulse 2s ease-in-out infinite;
}
@keyframes sizzle-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(232,93,4,.25), 0 4px 20px rgba(0,0,0,.25); }
  50%       { box-shadow: 0 0 0 6px rgba(232,93,4,.1),  0 4px 20px rgba(0,0,0,.25); }
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-size: .85rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

/* ---- Utility ---- */
.text-flame { color: var(--flame); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .nav { padding: .9rem 1.25rem; }
  .nav-links { gap: 1.2rem; }
  .hero-meta { gap: .75rem; }
  .form-row-half { grid-template-columns: 1fr; }
}
