/*
Theme Name: LotWire SaaS Theme
Theme URI: https://lotwire.ca
Author: DaCosta Consulting
Author URI: https://dacostaconsulting.ca
Description: A modern, clean SaaS-style theme for LotWire using charcoal and orange brand colors.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lotwire-saas
*/

/* CSS Reset-ish / Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  background: #050505;
  color: #f9fafb;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Brand tokens */
:root {
  --lotwire-charcoal: #494846;
  --lotwire-charcoal-soft: #3a3937;
  --lotwire-bg-deep: #050505;
  --lotwire-bg-shell: #111111;
  --lotwire-orange: #F7712A;
  --lotwire-orange-soft: rgba(247,113,42,0.18);
  --lotwire-ink: #f9fafb;
  --lotwire-ink-soft: #e5e7eb;
  --lotwire-muted: #a1a1aa;
  --lotwire-border-soft: rgba(255,255,255,0.08);
  --lotwire-shell-w: 1120px;
}

/* Generic layout */
.lw-shell {
  max-width: var(--lotwire-shell-w);
  margin: 0 auto;
  padding-inline: 16px;
}

main {
  min-height: 60vh;
}

/* Simple header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5,5,5,0.96), rgba(5,5,5,0.82));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header-inner {
  max-width: var(--lotwire-shell-w);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: radial-gradient(circle at 20% 0%, #F7712A, #331a08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #050505;
}

.site-title {
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  font-size: 13px;
  color: var(--lotwire-ink-soft);
  text-decoration: none;
  opacity: 0.9;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav .lw-header-cta {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg,#F7712A,#ff9951);
  color: #050505;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

@media (max-width: 720px) {
  .site-nav-links {
    display: none;
  }
}

/* Footer */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #050505;
}

.site-footer-inner {
  max-width: var(--lotwire-shell-w);
  margin: 0 auto;
  padding: 28px 16px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--lotwire-muted);
}

.site-footer a {
  color: var(--lotwire-ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Hero – reused from provided section but simplified to rely on CSS variables */
#lotwire-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(112px, 18vh, 152px) 16px 88px;
  background:
    radial-gradient(circle at top left, rgba(247,113,42,0.38), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0,0,0,0.8), #050505);
  color: var(--lotwire-ink);
}

#lotwire-hero::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.03);
  pointer-events: none;
  z-index: -1;
}

#lotwire-hero .lw-shell {
  max-width: var(--lotwire-shell-w);
  margin: 0 auto;
}

#lotwire-hero .lw-layout {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 40px;
  align-items: center;
}

/* Copy side */
#lotwire-hero .lw-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

#lotwire-hero .lw-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(20,20,20,0.85);
  border: 1px solid var(--lotwire-border-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lotwire-ink-soft);
}

#lotwire-hero .lw-pill span.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--lotwire-orange);
  box-shadow: 0 0 0 6px rgba(247,113,42,0.25);
}

#lotwire-hero .lw-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lotwire-muted);
}

#lotwire-hero .lw-title {
  font-size: clamp(32px,4vw,44px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

#lotwire-hero .lw-title span.highlight {
  color: var(--lotwire-orange);
}

#lotwire-hero .lw-sub {
  max-width: 540px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--lotwire-ink-soft);
  margin-bottom: 24px;
}

#lotwire-hero .lw-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

#lotwire-hero .lw-btn-primary,
#lotwire-hero .lw-btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

#lotwire-hero .lw-btn-primary {
  background: linear-gradient(135deg,#F7712A,#ff9951);
  color: #050505;
  box-shadow: 0 18px 45px rgba(0,0,0,0.65);
}

#lotwire-hero .lw-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(0,0,0,0.8);
}

#lotwire-hero .lw-btn-ghost {
  background: rgba(17,17,17,0.85);
  border-color: var(--lotwire-border-soft);
  color: var(--lotwire-ink-soft);
}

#lotwire-hero .lw-btn-ghost:hover {
  background: rgba(36,36,36,0.95);
  border-color: rgba(249,250,251,0.22);
  transform: translateY(-1px);
}

#lotwire-hero .lw-cta-kicker {
  font-size: 12px;
  color: var(--lotwire-muted);
}

#lotwire-hero .lw-cta-kicker strong {
  color: var(--lotwire-ink-soft);
  font-weight: 500;
}

/* Trust row */
#lotwire-hero .lw-trust-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: 11px;
  color: var(--lotwire-muted);
}

#lotwire-hero .lw-trust-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

#lotwire-hero .lw-trust-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148,163,184,0.7);
}

#lotwire-hero .lw-trust-dots span:nth-child(1) {
  background: var(--lotwire-orange);
}

/* Visual side */
#lotwire-hero .lw-visual {
  position: relative;
  align-self: stretch;
}

#lotwire-hero .lw-card {
  position: relative;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(247,113,42,0.22), transparent 60%),
             linear-gradient(135deg,#232220,#171614);
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 26px 60px rgba(0,0,0,0.85),
    0 0 0 1px rgba(0,0,0,0.85);
  overflow: hidden;
}

#lotwire-hero .lw-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
}

#lotwire-hero .lw-card-title {
  font-weight: 500;
  color: var(--lotwire-ink-soft);
  display: flex;
  align-items: center;
  gap: 7px;
}

#lotwire-hero .lw-badge-live {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(17,24,39,0.88);
  border: 1px solid rgba(55,65,81,0.7);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lotwire-muted);
}

#lotwire-hero .lw-badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin-right: 5px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34,197,94,0.32);
  display: inline-block;
}

/* Tabs */
#lotwire-hero .lw-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(12,12,12,0.85);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid rgba(148,163,184,0.28);
  font-size: 11px;
}

#lotwire-hero .lw-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#lotwire-hero .lw-tabs label {
  flex: 1;
  padding: 6px 10px;
  border-radius: 999px;
  text-align: center;
  cursor: pointer;
  color: var(--lotwire-muted);
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

#lotwire-hero .lw-tabs input:checked + label {
  background: var(--lotwire-orange-soft);
  color: var(--lotwire-orange);
}

/* Screen area */
#lotwire-hero .lw-screen-wrap {
  margin-top: 14px;
  border-radius: 18px;
  background: rgba(13,13,13,0.9);
  border: 1px solid rgba(148,163,184,0.35);
  padding: 14px 14px 12px;
}

#lotwire-hero .lw-screen {
  display: none;
}

#lotwire-hero .lw-screen.active {
  display: block;
}

#lotwire-hero .lw-metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

#lotwire-hero .lw-metric {
  flex: 1 1 90px;
  min-width: 90px;
  padding: 8px 8px 7px;
  border-radius: 12px;
  background: linear-gradient(135deg,var(--lotwire-charcoal-soft),#262522);
  border: 1px solid rgba(148,163,184,0.3);
}

#lotwire-hero .lw-metric-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lotwire-muted);
  margin-bottom: 4px;
}

#lotwire-hero .lw-metric-value {
  font-size: 16px;
  font-weight: 600;
}

#lotwire-hero .lw-metric-tag {
  font-size: 11px;
  color: #bbf7d0;
}

#lotwire-hero .lw-timeline {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(75,85,99,0.7);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#lotwire-hero .lw-timeline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--lotwire-muted);
}

#lotwire-hero .lw-timeline-row strong {
  color: var(--lotwire-ink-soft);
  font-weight: 500;
}

#lotwire-hero .lw-timeline-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(17,24,39,0.9);
  border: 1px solid rgba(55,65,81,0.8);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Floating tag */
#lotwire-hero .lw-float-tag {
  position: absolute;
  right: 12px;
  bottom: -18px;
  transform: translateY(-50%);
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(10,10,10,0.96);
  border: 1px solid rgba(148,163,184,0.35);
  font-size: 11px;
  color: var(--lotwire-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.9);
}

#lotwire-hero .lw-float-tag span.badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--lotwire-orange-soft);
  color: var(--lotwire-orange);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Animation */
@keyframes lw-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#lotwire-hero .lw-copy,
#lotwire-hero .lw-visual {
  animation: lw-fade-up 0.7s ease-out forwards;
  opacity: 0;
}

#lotwire-hero .lw-copy {
  animation-delay: 0.05s;
}

#lotwire-hero .lw-visual {
  animation-delay: 0.15s;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  #lotwire-hero {
    padding-top: 96px;
  }
  #lotwire-hero::before {
    inset: 16px;
    border-radius: 24px;
  }
  #lotwire-hero .lw-layout {
    grid-template-columns: minmax(0,1fr);
    gap: 32px;
  }
  #lotwire-hero .lw-visual {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  #lotwire-hero {
    padding: 88px 14px 72px;
  }
  #lotwire-hero .lw-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  #lotwire-hero .lw-btn-primary,
  #lotwire-hero .lw-btn-ghost {
    width: 100%;
    justify-content: center;
  }
  #lotwire-hero .lw-trust-row {
    flex-direction: column;
    align-items: flex-start;
  }
  #lotwire-hero .lw-card {
    padding: 16px 14px 18px;
  }
}
