/*
Theme Name: SteadyWork
Theme URI: https://steadywork.com.au
Author: KCG Digital
Author URI: https://steadywork.com.au
Description: Premium dark landing page theme for SteadyWork — the tradie lead generation system. Converts visitors to booked-job enquiries. Matches the Loveable design with dark navy, amber accents, Space Grotesk + Inter typography. Includes native lead capture form and Contact Form 7 support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
License URI: https://steadywork.com.au
Text Domain: steadywork
Tags: landing-page, dark, business, custom-colors, custom-menu, responsive-layout
*/

/* ─────────────────────────────────────────
   CSS Custom Properties (Brand Tokens)
───────────────────────────────────────── */
:root {
  --brand-bg:      #0F1923;
  --brand-dark:    #0A1219;
  --brand-mid:     #1E2D3D;
  --brand-light:   #243447;
  --amber-400:     #FBBF24;
  --amber-500:     #F59E0B;
  --amber-600:     #D97706;
  --emerald-500:   #10B981;
  --emerald-600:   #059669;
  --slate-300:     #CBD5E1;
  --slate-400:     #94A3B8;
  --slate-500:     #64748B;
  --slate-600:     #475569;
  --white:         #F8FAFC;
  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;
}

/* ─────────────────────────────────────────
   Base Reset
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--brand-bg);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ─────────────────────────────────────────
   Typography Helpers
───────────────────────────────────────── */
.font-display { font-family: var(--font-display); }

/* ─────────────────────────────────────────
   Glassmorphism Card
───────────────────────────────────────── */
.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
}

/* ─────────────────────────────────────────
   Sticky Nav
───────────────────────────────────────── */
.nav-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15,25,35,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ─────────────────────────────────────────
   Buttons
───────────────────────────────────────── */
.btn-amber {
  display: inline-block;
  background: var(--amber-500);
  color: var(--brand-bg);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
  border: none;
}
.btn-amber:hover {
  background: var(--amber-400);
  box-shadow: 0 0 28px rgba(245,158,11,0.35);
  color: var(--brand-bg);
}
.btn-amber:active { transform: scale(0.97); }

.btn-outline {
  display: inline-block;
  border: 2px solid rgba(245,158,11,0.6);
  color: var(--amber-500);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--amber-500);
  background: rgba(245,158,11,0.08);
  color: var(--amber-500);
}

/* ─────────────────────────────────────────
   Section Backgrounds
───────────────────────────────────────── */
.hero-bg {
  background: linear-gradient(160deg, #0F1923 0%, #162130 45%, #1E2D3D 100%);
}

.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245,158,11,0.25) 40%, rgba(245,158,11,0.25) 60%, transparent 100%);
}

/* ─────────────────────────────────────────
   Credibility Bar
───────────────────────────────────────── */
.partner-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--slate-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.partner-badge:hover { border-color: rgba(245,158,11,0.4); color: var(--amber-500); }

/* ─────────────────────────────────────────
   Guarantee Wall
───────────────────────────────────────── */
.guarantee-wall {
  background: linear-gradient(135deg, #78350F 0%, #92400E 40%, #B45309 70%, #D97706 100%);
  position: relative;
  overflow: hidden;
}
.guarantee-wall::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(0,0,0,0.04) 40px,
    rgba(0,0,0,0.04) 80px
  );
}

/* ─────────────────────────────────────────
   Comparison Table
───────────────────────────────────────── */
.compare-table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.compare-table td {
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .col-sw { background: rgba(245,158,11,0.07); }

/* ─────────────────────────────────────────
   FAQ Accordion (CSS Only)
───────────────────────────────────────── */
.faq-item input[type="checkbox"] { display: none; }
.faq-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  transition: color 0.2s;
}
.faq-label:hover { color: var(--amber-500); }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--amber-500);
  transition: transform 0.3s ease, background 0.2s;
}
.faq-item input:checked ~ .faq-label .faq-icon {
  transform: rotate(45deg);
  background: rgba(245,158,11,0.3);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--slate-400);
  font-size: 0.95rem;
  line-height: 1.75;
}
.faq-item input:checked ~ .faq-body {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ─────────────────────────────────────────
   Lead Form
───────────────────────────────────────── */
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 0.97rem;
  font-family: var(--font-body);
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: var(--slate-500); }
.form-input:focus {
  outline: none;
  border-color: var(--amber-500);
  background: rgba(245,158,11,0.06);
}
.form-input option { background: #1E2D3D; color: var(--white); }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-400);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* CF7 form overrides — apply SteadyWork styling to CF7 inputs */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 0.97rem;
  font-family: var(--font-body);
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 12px;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--amber-500);
  background: rgba(245,158,11,0.06);
}
.wpcf7-form input[type="submit"] {
  display: inline-block;
  background: var(--amber-500);
  color: var(--brand-bg);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 8px;
  padding: 16px 32px;
  width: 100%;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.wpcf7-form input[type="submit"]:hover { background: var(--amber-400); }
.wpcf7-not-valid-tip { color: #EF4444; font-size: 0.82rem; margin-top: 4px; }
.wpcf7-response-output { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; }

/* ─────────────────────────────────────────
   Mobile Nav Toggle
───────────────────────────────────────── */
#nav-toggle { display: none; }
.nav-menu { display: flex; }
@media (max-width: 767px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(15,25,35,0.98);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  #nav-toggle:checked ~ .nav-menu { display: flex; }
  .nav-toggle-btn { display: flex; }
}
.nav-toggle-btn { display: none; }

/* ─────────────────────────────────────────
   Proof Card
───────────────────────────────────────── */
.proof-card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.proof-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

/* ─────────────────────────────────────────
   Stat Number Glow
───────────────────────────────────────── */
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────
   Shield Badge
───────────────────────────────────────── */
.shield-badge {
  filter: drop-shadow(0 0 20px rgba(0,0,0,0.4));
}

/* ─────────────────────────────────────────
   Background Noise Texture
───────────────────────────────────────── */
.noise {
  position: relative;
}
.noise::after {
  content: '';
  position: absolute;
  inset: 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;
  opacity: 0.4;
}

/* ─────────────────────────────────────────
   Pulse Animation
───────────────────────────────────────── */
@keyframes pulse-amber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(245,158,11,0); }
}
.pulse { animation: pulse-amber 2.4s ease infinite; }

/* ─────────────────────────────────────────
   Colour Utility
───────────────────────────────────────── */
.check-green { color: #059669; font-weight: 700; }
.check-amber { color: var(--amber-500); font-weight: 700; }
.cross-red { color: #EF4444; }
.dash-muted { color: #475569; }

/* ─────────────────────────────────────────
   Success / Error Notice
───────────────────────────────────────── */
.sw-notice {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.sw-notice-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #34D399;
}
.sw-notice-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #FCA5A5;
}
