/*
Theme Name: Looksmaxxing
Theme URI: https://looksmaxxing.fyi
Author: Looksmaxxing FYI
Author URI: https://looksmaxxing.fyi
Description: Premium dark theme for men's self-improvement and looksmaxxing. Built as a conversion-focused landing page with EDD integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: looksmaxxing
Tags: dark, one-page, e-commerce, custom-background
*/

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Core Colors */
  --lm-bg-primary: #0d0d0d;
  --lm-bg-secondary: #141414;
  --lm-bg-card: #1a1a1a;
  --lm-bg-card-hover: #222222;
  --lm-bg-input: #1e1e1e;

  /* Accent */
  --lm-accent: #c9544e;
  --lm-accent-light: #e06b65;
  --lm-accent-glow: rgba(201, 84, 78, 0.4);
  --lm-accent-subtle: rgba(201, 84, 78, 0.12);

  /* Text */
  --lm-text-primary: #f0f0f0;
  --lm-text-secondary: #a0a0a0;
  --lm-text-muted: #666666;

  /* Borders */
  --lm-border: #2a2a2a;
  --lm-border-accent: rgba(201, 84, 78, 0.3);

  /* Spacing */
  --lm-section-gap: 100px;
  --lm-container-max: 1200px;
  --lm-card-radius: 12px;
  --lm-btn-radius: 8px;

  /* Typography */
  --lm-font-heading: 'Playfair Display', Georgia, serif;
  --lm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --lm-font-logo: 'Space Grotesk', 'Inter', sans-serif;

  /* Shadows */
  --lm-shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --lm-shadow-glow: 0 0 40px rgba(201, 84, 78, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--lm-font-body);
  background-color: var(--lm-bg-primary);
  color: var(--lm-text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--lm-accent-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--lm-accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--lm-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--lm-text-primary);
}

ul,
ol {
  list-style: none;
}

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

/* ============================================
   HEADER / NAV
   ============================================ */
.lm-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--lm-border);
  transition: background 0.3s ease;
}

.lm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--lm-container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.lm-header__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--lm-font-logo);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--lm-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lm-header__logo span {
  color: var(--lm-accent);
}

.lm-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  border: 1.5px solid var(--lm-accent);
  color: var(--lm-accent);
  font-family: var(--lm-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--lm-btn-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lm-header__cta:hover {
  background: var(--lm-accent);
  color: #fff;
  box-shadow: var(--lm-shadow-glow);
}

/* ============================================
   HERO SECTION
   ============================================ */
.lm-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 24px 80px;
  background: radial-gradient(ellipse at center top, rgba(201, 84, 78, 0.08) 0%, transparent 60%),
    var(--lm-bg-primary);
}

.lm-hero__badge {
  display: inline-block;
  padding: 12px 28px;
  background: var(--lm-bg-card);
  border: 1px solid var(--lm-border);
  border-radius: 10px;
  box-shadow: 0 0 60px rgba(201, 84, 78, 0.2), 0 0 120px rgba(201, 84, 78, 0.08);
  margin-bottom: 40px;
  animation: float 6s ease-in-out infinite;
}

.lm-hero__badge h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0;
}

.lm-hero__badge h1 span {
  display: block;
  color: var(--lm-accent);
}

.lm-hero__tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--lm-text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.lm-hero__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 320px;
  padding: 16px 40px;
  background: transparent;
  border: 2px solid var(--lm-accent);
  color: var(--lm-accent);
  font-family: var(--lm-font-body);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--lm-btn-radius);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.lm-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 84, 78, 0.15), transparent);
  transition: left 0.6s ease;
}

.lm-btn-primary:hover {
  background: var(--lm-accent);
  color: #fff;
  box-shadow: 0 0 40px rgba(201, 84, 78, 0.3);
  transform: translateY(-2px);
}

.lm-btn-primary:hover::before {
  left: 100%;
}

.lm-hero__sub {
  font-size: 0.85rem;
  color: var(--lm-accent-light);
  letter-spacing: 0.5px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.lm-problem {
  padding: var(--lm-section-gap) 0;
  background: var(--lm-bg-secondary);
  border-top: 1px solid var(--lm-border);
  border-bottom: 1px solid var(--lm-border);
}

.lm-problem__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.lm-section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--lm-accent);
  margin-bottom: 20px;
  padding: 6px 14px;
  background: var(--lm-accent-subtle);
  border-radius: 4px;
}

.lm-problem h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 32px;
  line-height: 1.3;
}

.lm-problem p {
  font-size: 1.05rem;
  color: var(--lm-text-secondary);
  margin-bottom: 20px;
  line-height: 1.85;
}

.lm-problem__stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--lm-bg-card);
  border: 1px solid var(--lm-border);
  border-left: 3px solid var(--lm-accent);
  border-radius: var(--lm-card-radius);
  margin-top: 32px;
}

.lm-problem__stat-number {
  font-family: var(--lm-font-heading);
  font-size: 2.5rem;
  color: var(--lm-accent);
  font-weight: 700;
}

.lm-problem__stat-text {
  font-size: 0.95rem;
  color: var(--lm-text-secondary);
  line-height: 1.6;
}

/* ============================================
   WHAT'S INSIDE SECTION
   ============================================ */
.lm-contents {
  padding: var(--lm-section-gap) 0;
}

.lm-contents__header {
  text-align: center;
  margin-bottom: 60px;
}

.lm-contents__header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 12px;
}

.lm-contents__header p {
  color: var(--lm-text-secondary);
  font-size: 1.05rem;
}

.lm-contents__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lm-feature-card {
  background: var(--lm-bg-card);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-card-radius);
  padding: 32px 24px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.lm-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lm-accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.lm-feature-card:hover {
  border-color: var(--lm-border-accent);
  transform: translateY(-4px);
  box-shadow: var(--lm-shadow-card);
}

.lm-feature-card:hover::before {
  transform: scaleX(1);
}

.lm-feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--lm-border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: var(--lm-accent);
  background: var(--lm-accent-subtle);
}

.lm-feature-card h3 {
  font-family: var(--lm-font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.lm-feature-card p {
  font-size: 0.9rem;
  color: var(--lm-text-secondary);
  line-height: 1.65;
}

.lm-feature-card__tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  background: var(--lm-accent-subtle);
  color: var(--lm-accent);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   CATEGORY CARDS SECTION
   ============================================ */
.lm-categories {
  padding: var(--lm-section-gap) 0;
  background: var(--lm-bg-secondary);
  border-top: 1px solid var(--lm-border);
  border-bottom: 1px solid var(--lm-border);
}

.lm-categories__header {
  text-align: center;
  margin-bottom: 16px;
}

.lm-categories__header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 12px;
}

.lm-categories__header p {
  color: var(--lm-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.lm-categories__subtitle {
  text-align: center;
  color: var(--lm-accent);
  font-family: var(--lm-font-heading);
  font-size: 1.6rem;
  margin-bottom: 48px;
}

.lm-categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lm-cat-card {
  background: var(--lm-bg-card);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-card-radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
}

.lm-cat-card:hover {
  border-color: var(--lm-accent);
  box-shadow: 0 0 30px rgba(201, 84, 78, 0.1);
  transform: translateY(-4px);
}

.lm-cat-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--lm-border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  color: var(--lm-accent);
  background: var(--lm-accent-subtle);
}

.lm-cat-card h3 {
  font-family: var(--lm-font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.lm-cat-card p {
  font-size: 0.85rem;
  color: var(--lm-text-secondary);
  margin-bottom: 16px;
}

.lm-cat-card__btn {
  display: inline-block;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--lm-accent);
  color: var(--lm-accent);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.lm-cat-card:hover .lm-cat-card__btn {
  background: var(--lm-accent);
  color: #fff;
}

/* Active / highlighted card */
.lm-cat-card--active {
  border-color: var(--lm-accent);
}

.lm-cat-card--active h3 {
  color: var(--lm-accent);
}

/* ============================================
   BOOK COVER SECTION
   ============================================ */
.lm-bookcover {
  padding: var(--lm-section-gap) 0;
  background: var(--lm-bg-primary);
}

.lm-bookcover__inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.lm-bookcover__image-wrap {
  position: relative;
  flex-shrink: 0;
  width: 320px;
}

.lm-bookcover__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 110%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(192, 57, 43, 0.35) 0%, rgba(192, 57, 43, 0.12) 40%, transparent 70%);
  border-radius: 20px;
  z-index: 0;
  filter: blur(30px);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.lm-bookcover__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(192, 57, 43, 0.15);
}

.lm-bookcover__text {
  flex: 1;
}

.lm-bookcover__text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.lm-bookcover__text h2 span {
  color: var(--lm-accent);
}

.lm-bookcover__text p {
  font-size: 1.05rem;
  color: var(--lm-text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .lm-bookcover__inner {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }

  .lm-bookcover__image-wrap {
    width: 260px;
    margin: 0 auto;
  }
}

/* ============================================
   SALES COPY / DETAILS SECTION
   ============================================ */
.lm-sales {
  padding: var(--lm-section-gap) 0;
}

.lm-sales__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.lm-sales h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 48px;
}

.lm-sales h2 span {
  color: var(--lm-accent);
}

.lm-sales__list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
}

.lm-sales__list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--lm-border);
  line-height: 1.75;
}

.lm-sales__list li:last-child {
  border-bottom: none;
}

.lm-sales__list li strong {
  color: var(--lm-accent-light);
  font-weight: 700;
}

.lm-sales__list li .lm-list-desc {
  color: var(--lm-text-secondary);
}

/* ============================================
   CLOSING / CTA SECTION
   ============================================ */
.lm-closing {
  padding: var(--lm-section-gap) 0;
  background: var(--lm-bg-secondary);
  border-top: 1px solid var(--lm-border);
  text-align: center;
}

.lm-closing__inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.lm-closing h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 24px;
}

.lm-closing p {
  font-size: 1.05rem;
  color: var(--lm-text-secondary);
  margin-bottom: 20px;
  line-height: 1.85;
}

.lm-closing__highlight {
  font-weight: 700;
  color: var(--lm-text-primary);
}

.lm-closing__cta-wrap {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lm-closing__price {
  font-family: var(--lm-font-heading);
  font-size: 3rem;
  color: var(--lm-accent);
  font-weight: 700;
}

.lm-closing__price-desc {
  color: var(--lm-text-muted);
  font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */
.lm-footer {
  padding: 48px 0;
  border-top: 1px solid var(--lm-border);
  text-align: center;
}

.lm-footer p {
  color: var(--lm-text-muted);
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {

  .lm-contents__grid,
  .lm-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --lm-section-gap: 72px;
  }

  .lm-header__inner {
    height: 60px;
  }

  .lm-hero {
    min-height: 90vh;
    padding: 100px 20px 60px;
  }

  .lm-hero__badge h1 {
    font-size: 2rem;
  }

  .lm-btn-primary {
    min-width: 280px;
    padding: 14px 32px;
    font-size: 1rem;
  }

  .lm-contents__grid,
  .lm-categories__grid {
    grid-template-columns: 1fr;
  }

  .lm-feature-card,
  .lm-cat-card {
    text-align: center;
  }

  .lm-feature-card__icon {
    margin: 0 auto 16px;
  }
}

@media (max-width: 480px) {
  .lm-hero__badge {
    padding: 10px 20px;
  }

  .lm-btn-primary {
    min-width: unset;
    width: 100%;
  }

  .lm-closing__price {
    font-size: 2.5rem;
  }
}

/* ============================================
   UTILITY ANIMATIONS
   Only activate when JS confirms loaded (body.lm-js)
   Content stays visible by default if JS fails
   ============================================ */
body.lm-js .lm-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.lm-js .lm-fade-up.lm-visible,
.lm-fade-up {
  opacity: 1;
  transform: translateY(0);
}

body.lm-js .lm-fade-up {
  opacity: 0;
  transform: translateY(30px);
}

body.lm-js .lm-fade-up.lm-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for grid items */
.lm-stagger-1 {
  transition-delay: 0.1s;
}

.lm-stagger-2 {
  transition-delay: 0.2s;
}

.lm-stagger-3 {
  transition-delay: 0.3s;
}

.lm-stagger-4 {
  transition-delay: 0.4s;
}

.lm-stagger-5 {
  transition-delay: 0.5s;
}

.lm-stagger-6 {
  transition-delay: 0.6s;
}

/* WordPress default classes */
.wp-block-image img {
  border-radius: var(--lm-card-radius);
}

.aligncenter {
  text-align: center;
  margin: 0 auto;
}

.alignleft {
  float: left;
  margin-right: 20px;
}

.alignright {
  float: right;
  margin-left: 20px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}