/*
Theme Name:   LiveAdPosting Child
Theme URI:    https://liveadposting.com
Description:  Custom child theme for LiveAdPosting — built for performance, accessibility, conversion, and US-market SEO. Inherits Astra parent theme.
Author:       LiveAdPosting
Author URI:   https://liveadposting.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  liveadposting-child
*/

/* =============================================
   LIVEADPOSTING — DESIGN SYSTEM v1.0
   2026 production design tokens
   ============================================= */

:root {
  /* ---------- BRAND COLORS ---------- */
  --lap-navy: #0A1F44;
  --lap-navy-deep: #061232;
  --lap-navy-light: #1A3258;
  --lap-blue: #1E5BE0;
  --lap-blue-hover: #1846B8;
  --lap-blue-soft: #E8EFFD;

  /* ---------- ACCENT ---------- */
  --lap-gold: #F5B83D;
  --lap-gold-hover: #E0A52D;
  --lap-gold-soft: #FEF5DD;

  /* ---------- NEUTRALS ---------- */
  --lap-black: #0F1419;
  --lap-grey-900: #1A1F2C;
  --lap-grey-700: #4A5161;
  --lap-grey-500: #7A8294;
  --lap-grey-300: #D5DAE2;
  --lap-grey-200: #E4E8EE;
  --lap-grey-100: #F1F3F7;
  --lap-grey-50: #F8FAFC;
  --lap-white: #FFFFFF;

  /* ---------- SEMANTIC ---------- */
  --lap-success: #10B981;
  --lap-success-soft: #D1FAE5;
  --lap-warning: #F59E0B;
  --lap-danger: #EF4444;
  --lap-danger-soft: #FEE2E2;

  /* ---------- TYPOGRAPHY ---------- */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* type scale */
  --text-display: clamp(2.5rem, 5vw, 3.75rem);  /* 40-60 */
  --text-h1: clamp(2.25rem, 4vw, 3rem);          /* 36-48 */
  --text-h2: clamp(1.75rem, 3vw, 2.25rem);       /* 28-36 */
  --text-h3: clamp(1.375rem, 2.2vw, 1.75rem);    /* 22-28 */
  --text-h4: 1.375rem;                            /* 22 */
  --text-lead: 1.25rem;                           /* 20 */
  --text-body: 1.125rem;                          /* 18 */
  --text-small: 1rem;                             /* 16 */
  --text-tiny: 0.875rem;                          /* 14 */

  /* ---------- SPACING (8px base) ---------- */
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-8: 3rem;      /* 48 */
  --space-10: 4rem;     /* 64 */
  --space-12: 6rem;     /* 96 */
  --space-16: 8rem;     /* 128 */

  /* ---------- LAYOUT ---------- */
  --container-max: 1280px;
  --container-narrow: 768px;
  --container-wide: 1440px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  /* ---------- BORDERS & RADIUS ---------- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ---------- SHADOWS (navy-tinted) ---------- */
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 31, 68, 0.12);
  --shadow-xl: 0 24px 64px rgba(10, 31, 68, 0.16);

  /* ---------- TRANSITIONS ---------- */
  --t-fast: 150ms ease-out;
  --t-base: 200ms ease-out;
  --t-slow: 300ms ease-out;
}

/* ----- BASE RESET ----- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--lap-grey-900);
  background: var(--lap-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--lap-navy);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}

h1 { font-size: var(--text-h1); line-height: 1.1; font-weight: 700; }
h2 { font-size: var(--text-h2); line-height: 1.15; font-weight: 700; }
h3 { font-size: var(--text-h3); line-height: 1.2; font-weight: 600; }
h4 { font-size: var(--text-h4); line-height: 1.3; font-weight: 600; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--lap-blue);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--lap-blue-hover); }

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

/* ----- ACCESSIBILITY ----- */
:focus-visible {
  outline: 2px solid var(--lap-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 0;
  background: var(--lap-navy);
  color: var(--lap-white);
  padding: var(--space-3) var(--space-5);
  z-index: 9999;
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
