/* ============================================
   Fire Pits & Gel Fuels — Custom CSS
   Dark-first design system
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Source+Sans+3:wght@400;600;700&display=swap');

/* --- CSS Variables (DARK by default) --- */
:root {
  --bg: #1a1614;
  --bg-alt: #231f1c;
  --bg-card: #2e2825;
  --bg-dark: #120f0d;
  --text: #f5efe8;
  --text-muted: #b8afa0;
  --text-faint: #8a7e74;
  --primary: #e8923a;
  --primary-rgb: 232, 146, 58;
  --primary-light: #f0a74e;
  --primary-dark: #c47428;
  --accent: #7a9482;
  --accent-light: #8fa898;
  --border: #3a3330;
  --border-light: #2e2825;
}

/* Light mode (toggled) */
html.light-mode {
  --bg: #faf7f3;
  --bg-alt: #f0ebe4;
  --bg-card: #ffffff;
  --bg-dark: #2a2420;
  --text: #2a2118;
  --text-muted: #6b5d4f;
  --text-faint: #9c8e7e;
  --primary: #c47428;
  --primary-rgb: 196, 116, 40;
  --primary-light: #e8923a;
  --primary-dark: #9a5a1a;
  --accent: #5a7a68;
  --accent-light: #7a9482;
  --border: #d9cfc2;
  --border-light: #e8e0d5;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 2.25rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p { max-width: 680px; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-pad {
  padding: 5rem 0;
}

.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: #1a1614;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #1a1614;
  box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* --- Header/Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 22, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s;
}

html.light-mode .site-header {
  background: rgba(250, 247, 243, 0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo:hover { color: var(--primary); }

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

.nav-links a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.theme-toggle .icon-sun,
html.light-mode .theme-toggle .icon-moon { display: none; }
html.light-mode .theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger svg { width: 24px; height: 24px; }

/* Mobile nav */
@media (max-width: 767px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 15, 13, 0.5) 0%,
    rgba(18, 15, 13, 0.35) 40%,
    rgba(18, 15, 13, 0.7) 70%,
    rgba(26, 22, 20, 1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 1.5rem;
}

.hero h1 {
  color: #f5efe8;
  margin-bottom: 1.25rem;
}

.hero p {
  color: rgba(245, 239, 232, 0.8);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.175rem);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

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

/* --- Product Categories --- */
.categories { background: var(--bg); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.cat-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(var(--primary-rgb), 0.2);
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.cat-card:hover img { transform: scale(1.04); }

.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 15, 13, 0.9) 0%, rgba(18, 15, 13, 0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
}

.cat-card h3 {
  color: #f5efe8;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.cat-card p {
  color: rgba(245, 239, 232, 0.7);
  font-size: 0.925rem;
  line-height: 1.55;
  max-width: 100%;
}

@media (max-width: 767px) {
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .cat-card { aspect-ratio: 4/3; }
}

/* --- Featured Products --- */
.featured { background: var(--bg-alt); }

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.featured-large {
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}
.featured-large:hover {
  box-shadow: 0 8px 40px rgba(var(--primary-rgb), 0.15);
}

.featured-large img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.featured-large .card-body {
  padding: 1.75rem;
}

.featured-large h3 { margin-bottom: 0.75rem; }

.featured-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.featured-small {
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  flex: 1;
  transition: box-shadow 0.3s;
}
.featured-small:hover {
  box-shadow: 0 8px 40px rgba(var(--primary-rgb), 0.15);
}

.featured-small img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.featured-small h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.featured-small p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 100%;
}

@media (max-width: 767px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-large img { height: 240px; }
  .featured-small { flex-direction: column; }
  .featured-small img { width: 100%; height: 180px; }
}

/* --- Why Gel Fuel --- */
.why-gel { background: var(--bg); }

.why-gel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2.5rem;
}

.why-gel-img {
  border-radius: 6px;
  overflow: hidden;
}
.why-gel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
}

.why-gel-text h2 { margin-bottom: 1.25rem; }
.why-gel-text p { color: var(--text-muted); margin-bottom: 1.5rem; }

.check-list {
  list-style: none;
  margin-bottom: 2rem;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text);
  font-weight: 600;
}
.check-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}

@media (max-width: 767px) {
  .why-gel-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .why-gel-img img { min-height: 260px; }
}

/* --- Why Buy From Us --- */
.why-us { background: var(--bg-alt); }

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.why-us-col svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin-bottom: 1.25rem;
  stroke-width: 1.5;
}

.why-us-col h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.why-us-col p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 100%;
}

@media (max-width: 767px) {
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Safety Note --- */
.safety-note { background: var(--bg); }

.safety-card {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 2.5rem 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.safety-card h2 { margin-bottom: 1rem; font-size: 1.5rem; }
.safety-card p { color: var(--text-muted); margin-bottom: 1.5rem; }

@media (max-width: 767px) {
  .safety-card { padding: 1.75rem 1.5rem; }
}

/* --- Contact Section --- */
.contact-section { background: var(--bg-alt); }

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 { margin-bottom: 0.75rem; }
.contact-inner > p { margin: 0 auto 2rem; color: var(--text-muted); }

.contact-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  margin-top: 1.5rem;
  font-size: 0.925rem;
  color: var(--text-muted);
  text-align: center;
}

.form-note a { color: var(--primary); }

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(122, 148, 130, 0.15);
  color: var(--accent-light);
  border: 1px solid var(--accent);
}
.form-status.error {
  display: block;
  background: rgba(232, 146, 58, 0.1);
  color: var(--primary-light);
  border: 1px solid var(--primary-dark);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-light);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand .nav-logo { font-size: 1.15rem; }
.footer-brand p {
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  max-width: 300px;
}

.footer-links h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

.footer-links ul {
  list-style: none;
}
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-faint);
  max-width: 100%;
}

.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--primary); }

@media (max-width: 767px) {
  .footer-inner { flex-direction: column; }
}

/* --- Disclaimer Bar --- */
.disclaimer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 0.4rem 1rem;
  text-align: center;
}

.disclaimer-bar p {
  font-size: 0.75rem;
  color: var(--text-faint);
  max-width: 100%;
  margin: 0 auto;
}

/* --- Page-level (About, Contact, Guides) --- */
.page-header {
  padding: 7rem 0 3rem;
  background: var(--bg-alt);
}

.page-header h1 { margin-bottom: 0.75rem; }
.page-header p { color: var(--text-muted); }

.page-body {
  padding: 3rem 0 4rem;
  background: var(--bg);
}

.page-body .content {
  max-width: 720px;
}

.page-body .content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-body .content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-body .content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.page-body .content ul,
.page-body .content ol {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.page-body .content li {
  margin-bottom: 0.4rem;
}

.page-body .content strong {
  color: var(--text);
  font-weight: 600;
}

/* --- FAQ/Accordion (Guide pages) --- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.faq-trigger h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.faq-trigger svg {
  width: 20px;
  height: 20px;
  color: var(--text-faint);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.25s;
}

.faq-item.open .faq-trigger svg { transform: rotate(180deg); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-body-inner {
  padding-bottom: 1.25rem;
}

.faq-body-inner p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.faq-body-inner p:last-child { margin-bottom: 0; }

/* --- Contact Page form (wider) --- */
.contact-page-form {
  max-width: 600px;
}

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

@media (max-width: 560px) {
  .contact-page-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* --- Guide CTA banner --- */
.guide-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.guide-cta h2 { margin-bottom: 0.75rem; font-size: 1.5rem; }
.guide-cta p { margin: 0 auto 1.5rem; color: var(--text-muted); }

/* --- Turnstile --- */
.turnstile-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: #1a1614;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus { top: 0.5rem; }
