/*
Theme Name: Pyro Camp
Theme URI: https://pyrocamp.com
Author: Pyro Camp
Description: Custom theme for Pyro Camp — camping & professional fireworks event directory. Built classic-style (PHP templates) for full Elementor (free) compatibility on page content, with WooCommerce support for the shop.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: pyrocamp
*/

/* ==========================================================================
   0. Custom Properties
   ========================================================================== */
:root{
  --orange: #F4901E;
  --orange-deep: #D97612;
  --ember: #C1440E;
  --ink: #18140F;
  --cream: #FBF3E5;
  --cream-2: #F3E6D0;
  --night: #171E2B;
  --night-2: #232D40;
  --line: rgba(24,20,15,0.16);
  --line-cream: rgba(251,243,229,0.18);
  --max-width: 1180px;
}

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Inter', sans-serif;
  background:var(--cream);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  font-size:16px;
  line-height:1.6;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
input, textarea, select{ font-family:inherit; }

.mono{ font-family:'Space Mono', monospace; }
.display, h1, h2, h3, h4{
  font-family:'Anton', sans-serif;
  text-transform:uppercase;
  letter-spacing:0.01em;
  line-height:1.05;
  margin:0 0 16px;
}

/* Accessible focus states */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:3px solid var(--ember);
  outline-offset:2px;
}

.screen-reader-text{
  position:absolute !important;
  clip:rect(1px,1px,1px,1px);
  width:1px; height:1px; overflow:hidden;
}
.skip-link{
  position:absolute; left:-9999px; top:0; z-index:999;
  background:var(--ink); color:var(--cream); padding:12px 20px;
}
.skip-link:focus{ left:10px; top:10px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ==========================================================================
   2. Layout helpers
   ========================================================================== */
.wrap{ max-width:var(--max-width); margin:0 auto; padding:0 32px; }
.diamond{ display:inline-block; transform:rotate(45deg); }

.section-label{ display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.section-label .diamond{ width:11px; height:11px; background:var(--orange); border:1.5px solid var(--ink); }
.section-label span{ font-size:12px; letter-spacing:0.18em; text-transform:uppercase; font-weight:700; color:var(--ember); }

.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h2{ font-size:clamp(32px,4vw,46px); }
.section-head p{ color:#4a4136; font-size:16px; line-height:1.65; margin:0; }

section{ padding:88px 0; }

/* ==========================================================================
   3. Header / Nav
   ========================================================================== */
.ticker{ background:var(--ink); color:var(--cream); font-size:12px; letter-spacing:0.12em; padding:7px 0; overflow:hidden; white-space:nowrap; }
.ticker-track{ display:inline-block; animation:scroll-left 28s linear infinite; }
@keyframes scroll-left{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }
.ticker span{ margin-right:40px; opacity:0.85; }
.ticker span b{ color:var(--orange); }

.site-header{ background:var(--cream); border-bottom:2px solid var(--ink); position:sticky; top:0; z-index:50; }
.nav{ display:flex; align-items:center; justify-content:space-between; padding:18px 0; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand .diamond{ width:34px; height:34px; background:var(--orange); border:2.5px solid var(--ink); flex-shrink:0; }
.brand img.custom-logo{ max-height:34px; width:auto; }
.brand-word{ display:flex; flex-direction:column; line-height:1; }
.brand-word .display{ font-size:20px; margin:0; }
.brand-word .mono{ font-size:9px; letter-spacing:0.2em; color:var(--ember); margin-top:2px; }

.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links ul{ display:flex; gap:34px; }
.nav-links a{ font-size:13px; font-weight:600; letter-spacing:0.05em; text-transform:uppercase; position:relative; padding-bottom:4px; }
.nav-links a::after{ content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--orange); transition:width .2s ease; }
.nav-links a:hover::after{ width:100%; }
.nav-cta{ background:var(--ink); color:var(--cream) !important; padding:10px 18px; font-size:12px !important; letter-spacing:0.08em; clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px); }
.nav-cta:hover{ background:var(--orange); color:var(--ink) !important; }
.nav-cta::after{ display:none; }

.menu-toggle{ display:none; background:none; border:2px solid var(--ink); padding:8px 10px; }
.menu-toggle span{ display:block; width:20px; height:2px; background:var(--ink); margin:4px 0; }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn-primary{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--orange); color:var(--ink);
  border:2.5px solid var(--ink);
  padding:15px 26px; font-weight:700; font-size:14px; letter-spacing:0.04em; text-transform:uppercase;
  clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);
  transition:transform .15s ease, background .15s ease, color .15s ease;
}
.btn-primary:hover{ background:var(--ink); color:var(--cream); transform:translateY(-2px); }
.btn-ghost{ display:inline-block; font-weight:700; font-size:14px; letter-spacing:0.03em; text-transform:uppercase; border-bottom:2px solid var(--ink); padding-bottom:3px; }
.btn-ghost:hover{ border-color:var(--orange); color:var(--ember); }
.btn-ghost.on-dark{ color:var(--cream); border-color:var(--orange); }

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero{ position:relative; overflow:hidden; padding:100px 0 90px; border-bottom:2px solid var(--ink); }
.hero-diamond-bg{ position:absolute; top:50%; left:82%; width:640px; height:640px; transform:translate(-50%,-50%) rotate(45deg); border:3px solid var(--ink); opacity:0.08; }
.hero-diamond-bg::before{ content:""; position:absolute; inset:26px; border:1px solid var(--ink); }
.hero-inner{ position:relative; z-index:2; max-width:680px; }
.eyebrow{ display:flex; align-items:center; gap:10px; font-size:12px; letter-spacing:0.18em; text-transform:uppercase; color:var(--ember); font-weight:700; margin-bottom:22px; }
.eyebrow .diamond{ width:8px; height:8px; background:var(--ember); }
h1.hero-title{ font-size:clamp(44px,7vw,78px); margin-bottom:26px; }
h1.hero-title .accent{ color:var(--orange); -webkit-text-stroke:1.5px var(--ink); }
.hero-sub{ font-size:18px; line-height:1.6; color:#4a4136; max-width:520px; margin-bottom:36px; font-family:'Inter',sans-serif; text-transform:none; letter-spacing:normal; }
.hero-ctas{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; margin-bottom:52px; }

.manifest-row{ display:flex; border-top:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); padding:16px 0; flex-wrap:wrap; }
.manifest-row div{ flex:1; min-width:140px; padding:8px 20px; font-size:12px; }
.manifest-row div:not(:last-child){ border-right:1px solid var(--line); }
.manifest-row .mono{ color:var(--ember); display:block; margin-bottom:4px; font-size:10px; letter-spacing:0.1em; }
.manifest-row strong{ font-size:14px; display:block; font-weight:700; }

/* ==========================================================================
   6. Feature grid
   ========================================================================== */
.features{ display:grid; grid-template-columns:repeat(3,1fr); border-top:2px solid var(--ink); border-left:2px solid var(--ink); }
.feature{ border-right:2px solid var(--ink); border-bottom:2px solid var(--ink); padding:38px 32px; background:var(--cream); transition:background .2s ease; }
.feature:hover{ background:var(--cream-2); }
.feature-badge{ width:46px; height:46px; background:var(--ink); display:flex; align-items:center; justify-content:center; margin-bottom:22px; transform:rotate(45deg); }
.feature-badge span{ transform:rotate(-45deg); color:var(--orange); font-size:20px; }
.feature h3{ font-size:15px; letter-spacing:0.02em; margin-bottom:12px; }
.feature p{ font-size:14.5px; line-height:1.6; color:#4a4136; margin:0; }

/* ==========================================================================
   7. Events (manifest list)
   ========================================================================== */
.events-section{ background:var(--ink); color:var(--cream); }
.events-section .section-head p{ color:#c9bfae; }
.events-section .section-label span{ color:var(--orange); }

.event-card{ display:grid; grid-template-columns:150px 1fr auto; align-items:center; gap:32px; border-top:1px solid var(--line-cream); padding:30px 8px; }
.event-card:last-child{ border-bottom:1px solid var(--line-cream); }
.class-badge{ width:104px; height:104px; background:var(--orange); border:2.5px solid var(--cream); display:flex; flex-direction:column; align-items:center; justify-content:center; transform:rotate(45deg); color:var(--ink); flex-shrink:0; }
.class-badge .inner{ transform:rotate(-45deg); text-align:center; }
.class-badge .num{ font-family:'Anton',sans-serif; font-size:26px; line-height:1; }
.class-badge .lbl{ font-family:'Space Mono',monospace; font-size:8px; letter-spacing:0.08em; margin-top:3px; }

.event-info .mono{ font-size:11px; color:var(--orange); letter-spacing:0.08em; margin-bottom:8px; display:block; }
.event-info h3{ font-size:26px; margin-bottom:10px; }
.event-info p{ font-size:14.5px; color:#c9bfae; line-height:1.6; max-width:440px; margin:0; font-family:'Inter',sans-serif; text-transform:none; }
.event-link{ font-size:12px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; border:2px solid var(--orange); color:var(--orange); padding:12px 20px; white-space:nowrap; }
.event-link:hover{ background:var(--orange); color:var(--ink); }
.see-all{ display:flex; justify-content:center; padding-top:44px; }

/* ==========================================================================
   8. CTA / night section
   ========================================================================== */
.cta-night{
  background:var(--night);
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(251,243,229,0.5), transparent),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(251,243,229,0.4), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(251,243,229,0.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 20%, rgba(251,243,229,0.4), transparent),
    radial-gradient(1px 1px at 55% 45%, rgba(251,243,229,0.6), transparent),
    radial-gradient(1.5px 1.5px at 10% 65%, rgba(251,243,229,0.4), transparent);
  color:var(--cream); text-align:center; padding:100px 0;
  border-top:2px solid var(--ink); border-bottom:2px solid var(--ink);
}
.cta-night h2{ font-size:clamp(32px,5vw,52px); margin-bottom:20px; }
.cta-night p{ color:#a9b3c4; max-width:480px; margin:0 auto 36px; font-size:16px; line-height:1.6; font-family:'Inter',sans-serif; text-transform:none; }

/* ==========================================================================
   9. Generic content (pages/posts/WooCommerce fallback)
   ========================================================================== */
.content-area{ padding:72px 0; }
.content-area.narrow .wrap{ max-width:760px; }
.entry-content{ font-size:16.5px; line-height:1.75; }
.entry-content h2{ font-size:30px; margin-top:40px; }
.entry-content h3{ font-size:22px; margin-top:32px; }
.entry-content p{ margin:0 0 20px; font-family:'Inter',sans-serif; text-transform:none; }
.entry-content ul, .entry-content ol{ margin:0 0 20px 22px; list-style:revert; }
.entry-content img{ border:2px solid var(--ink); margin:24px 0; }
.entry-content a{ color:var(--ember); text-decoration:underline; text-underline-offset:3px; }
.entry-title{ font-size:clamp(30px,5vw,48px); }
.entry-meta{ font-family:'Space Mono',monospace; font-size:12px; color:var(--ember); letter-spacing:0.06em; margin-bottom:24px; }

.post-list{ display:grid; gap:0; border-top:2px solid var(--ink); }
.post-list article{ border-bottom:2px solid var(--ink); padding:32px 0; }
.post-list .entry-title{ font-size:26px; margin-bottom:8px; }
.post-list .entry-title a:hover{ color:var(--ember); }

.pagination{ display:flex; gap:12px; margin-top:40px; font-family:'Space Mono',monospace; font-size:13px; }
.pagination a, .pagination span{ border:1.5px solid var(--ink); padding:8px 14px; }
.pagination .current{ background:var(--ink); color:var(--cream); }

/* ==========================================================================
   10. WooCommerce overrides — keep it on-brand, not default WC styling
   ========================================================================== */
.woocommerce ul.products li.product{ text-align:left; }
.woocommerce ul.products li.product .price{ font-family:'Space Mono',monospace; color:var(--ember); font-weight:700; }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit,
.woocommerce-page a.button, .woocommerce-page button.button{
  background:var(--orange) !important; color:var(--ink) !important; border:2.5px solid var(--ink) !important;
  border-radius:0 !important; font-weight:700 !important; text-transform:uppercase; letter-spacing:0.04em; font-size:13px !important;
  padding:12px 20px !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce #respond input#submit:hover{
  background:var(--ink) !important; color:var(--cream) !important;
}
.woocommerce span.onsale{
  background:var(--ember) !important; border-radius:0 !important; font-family:'Space Mono',monospace; font-size:11px !important;
}
.woocommerce nav.woocommerce-pagination ul{ border:none; }
.woocommerce nav.woocommerce-pagination ul li{ border:1.5px solid var(--ink) !important; }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer{ background:var(--ink); color:var(--cream); padding:64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; padding-bottom:44px; border-bottom:1px solid var(--line-cream); }
.footer-brand .brand-word .mono{ color:var(--orange); }
.footer-brand p{ font-size:13.5px; color:#9c9284; line-height:1.6; margin-top:16px; max-width:280px; font-family:'Inter',sans-serif; text-transform:none; }
.footer-col h4{ font-size:11px; letter-spacing:0.14em; text-transform:uppercase; color:var(--orange); margin-bottom:16px; font-family:'Inter',sans-serif; font-weight:700; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col a{ display:block; font-size:13.5px; color:#c9bfae; }
.footer-col a:hover{ color:var(--cream); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:24px; font-size:11.5px; color:#7a7264; flex-wrap:wrap; gap:12px; }
.footer-bottom .mono{ letter-spacing:0.05em; }

/* ==========================================================================
   12. Elementor page canvas — don't let theme container fight Elementor's own
   ========================================================================== */
.elementor-page .site-header,
.elementor-page .site-footer{ /* still shown unless Elementor Canvas template is used */ }
body.elementor-page .content-area{ padding:0; }
body.elementor-page .content-area .wrap{ max-width:none; padding:0; }

/* ==========================================================================
   13. Responsive
   ========================================================================== */
@media (max-width: 860px){
  .nav-links{ position:fixed; top:0; right:-100%; height:100vh; width:78%; max-width:320px; background:var(--cream); border-left:2px solid var(--ink); flex-direction:column; align-items:flex-start; padding:100px 32px 32px; transition:right .25s ease; z-index:60; }
  .nav-links.is-open{ right:0; }
  .nav-links ul{ flex-direction:column; gap:22px; }
  .menu-toggle{ display:block; }
  .features{ grid-template-columns:1fr; }
  .event-card{ grid-template-columns:1fr; text-align:left; }
  .class-badge{ margin-bottom:8px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .hero-diamond-bg{ opacity:0.05; width:420px; height:420px; left:70%; }
}
