/*
Theme Name:  Ace Your Certs
Theme URI:   https://aceyourcerts.com
Author:      Ace Your Certs
Description: Custom theme for the Ace Your Certs CHC/CHPC exam prep membership platform.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: aceyourcerts
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Backgrounds */
  --bg-deep:    #0E0B1A;
  --bg-mid:     #160F2B;
  --bg-card:    #1E1640;
  --bg-card2:   #251B4A;

  /* Brand colors */
  --purple:       #7B3FE4;
  --purple-mid:   #9B5FF4;
  --purple-glow:  #5B2DB0;
  --purple-dim:   rgba(123, 63, 228, 0.15);
  --cyan:         #00E5CC;
  --cyan-dim:     #00B89F;
  --cyan-muted:   rgba(0, 229, 204, 0.15);
  --pink:         #E040FB;

  /* Text */
  --text-primary:   #F0EEFF;
  --text-muted:     rgba(240, 238, 255, 0.45);
  --text-subtle:    rgba(240, 238, 255, 0.25);

  /* Borders */
  --border:         rgba(123, 63, 228, 0.25);
  --border-cyan:    rgba(0, 229, 204, 0.25);
  --border-strong:  rgba(123, 63, 228, 0.5);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --section-pad:  72px 48px;
  --card-pad:     32px;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-xl:    20px;

  /* Shadows */
  --shadow-card:    0 0 40px rgba(123, 63, 228, 0.12), inset 0 1px 0 rgba(255,255,255,0.05);
  --shadow-purple:  0 4px 24px rgba(123, 63, 228, 0.4);
  --shadow-cyan:    0 0 40px rgba(0, 229, 204, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan-dim); }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

h1 { font-size: clamp(36px, 5vw, 58px); letter-spacing: -1.5px; }
h2 { font-size: clamp(26px, 3.5vw, 40px); letter-spacing: -1px; }
h3 { font-size: clamp(18px, 2.5vw, 24px); letter-spacing: -0.5px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.container-narrow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 48px;
}

section.section {
  padding: var(--section-pad);
}

/* ============================================================
   SECTION LABELS
   ============================================================ */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

.section-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.75;
  margin-top: 12px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 100%);
  color: #fff;
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(123, 63, 228, 0.55);
  color: #fff;
}

.btn-cyan {
  background: var(--cyan);
  color: var(--bg-deep);
  font-weight: 600;
}
.btn-cyan:hover {
  background: var(--cyan-dim);
  color: var(--bg-deep);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(240, 238, 255, 0.2);
}
.btn-outline:hover {
  border-color: rgba(240, 238, 255, 0.5);
  color: var(--text-primary);
}

.btn-outline-cyan {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
}
.btn-outline-cyan:hover {
  background: var(--cyan);
  color: var(--bg-deep);
}

.btn-ghost-purple {
  background: rgba(123, 63, 228, 0.1);
  color: var(--purple-mid);
  border: 1px solid rgba(123, 63, 228, 0.35);
}
.btn-ghost-purple:hover {
  background: rgba(123, 63, 228, 0.2);
  border-color: var(--purple-mid);
  color: var(--purple-mid);
}

.btn-full { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--border-strong);
}
.card-hover:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}
.badge-purple {
  background: rgba(123, 63, 228, 0.15);
  color: var(--purple-mid);
  border-color: rgba(123, 63, 228, 0.3);
}
.badge-cyan {
  background: rgba(0, 229, 204, 0.1);
  color: var(--cyan);
  border-color: var(--border-cyan);
}
.badge-pink {
  background: rgba(224, 64, 251, 0.1);
  color: var(--pink);
  border-color: rgba(224, 64, 251, 0.25);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid;
}
.tag-cyan {
  background: var(--cyan-muted);
  color: var(--cyan);
  border-color: var(--border-cyan);
}
.tag-purple {
  background: var(--purple-dim);
  color: var(--purple-mid);
  border-color: rgba(123, 63, 228, 0.3);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 16px;
  transition: border-color 0.2s;
  outline: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 204, 0.1);
}
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group { margin-bottom: 20px; }

/* ============================================================
   DIVIDERS
   ============================================================ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ============================================================
   GLOW DECORATIONS
   ============================================================ */
.glow-purple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 63, 228, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.glow-cyan {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 204, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-cyan    { color: var(--cyan); }
.text-purple  { color: var(--purple-mid); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.mt-sm  { margin-top: 12px; }
.mt-md  { margin-top: 24px; }
.mt-lg  { margin-top: 44px; }
.mb-sm  { margin-bottom: 12px; }
.mb-md  { margin-bottom: 24px; }
.mb-lg  { margin-bottom: 44px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-pad: 60px 32px; }
  .container, .container-narrow { padding: 0 32px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 48px 20px; }
  .container, .container-narrow { padding: 0 20px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}
