/* ============================================================
   HARDCORE HARRY'S - GLOBAL DESIGN SYSTEM
   Shared styles for all pages across hardcoreharrys.com.au
   ============================================================ */

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

/* ---- CSS VARIABLES ---- */
:root {
  --bg-primary: #080808;
  --bg-section: #121212;
  --bg-card: #181818;
  --accent: #0279FF;
  --accent-light: #469CFF;
  --accent-glow: rgba(2, 121, 255, 0.3);
  --accent-subtle: rgba(2, 121, 255, 0.06);
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #555555;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(2, 121, 255, 0.2);
  --max-width: 1100px;
}

/* ---- BASE ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- GRAIN OVERLAY ---- */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- UTILITY ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-section);
}

.text-center {
  text-align: center;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 18px 48px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-radius: 50px;
  font-weight: 800;
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 30px rgba(2, 121, 255, 0.3);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 12px 28px;
  font-size: 11px;
  letter-spacing: 2px;
}

/* ---- SECTION HEADINGS ---- */
h2.section-heading {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.section-rule {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 40px;
}

/* ============================================================
   STICKY NAV - Full nav with links (not just logo+CTA like TLM)
   ============================================================ */
.sticky-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 8, 0.0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.sticky-nav.scrolled {
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ---- NAV LINKS (horizontal on desktop) ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--accent);
}

/* ---- EVENTS DROPDOWN ---- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 12px;
  background: rgba(18, 18, 18, 0.98);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

/* ---- NAV CTA BUTTON ---- */
.nav-cta-link {
  margin-left: 16px;
}

/* ---- MOBILE HAMBURGER ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- MOBILE OVERLAY MENU ---- */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(8, 8, 8, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile a {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-mobile a:hover {
  color: var(--accent);
}

.nav-mobile .nav-mobile-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* ============================================================
   IMAGE BREAK - Parallax section divider
   ============================================================ */
.image-break {
  width: 100%;
  height: 50vh;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.image-break::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 20%, transparent 80%, var(--bg-primary) 100%);
}

/* ============================================================
   FAQ ACCORDION (reusable on any page)
   ============================================================ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  user-select: none;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  margin-left: 20px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-icon::before {
  width: 14px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1.5px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding-bottom: 28px;
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 72px 24px 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
}

.footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
  display: block;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-app-badges {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.app-badge {
  height: 44px;
  width: auto;
  transition: opacity 0.2s;
}

.app-badge:hover {
  opacity: 0.8;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

.footer-nav-col a {
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 2.4;
  transition: color 0.2s;
}

.footer-nav-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-social-icons {
  display: flex;
  gap: 20px;
}

.footer-social-icons a {
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
}

.footer-social-icons a:hover {
  color: var(--text-primary);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-secondary);
  transition: stroke 0.3s ease;
}

.back-to-top:hover svg {
  stroke: #ffffff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .image-break {
    height: 35vh;
    min-height: 250px;
    background-attachment: scroll;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-social-icons {
    justify-content: center;
  }

  .sticky-nav {
    padding: 0 20px;
    height: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta-link {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}
