/*
Theme Name: Campaign Compass
Theme URI: https://campaign-compass-grow.lovable.app/
Author: Moomal Zahid
Author URI: https://campaign-compass-grow.lovable.app/
Description: A dark, data-driven marketing portfolio block theme. Every section, image, stat, logo, colour, background and footer element is editable or removable from the WordPress Site Editor. Built with core blocks only - no page builder or plugin required.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: campaign-compass
Tags: portfolio, one-column, block-patterns, full-site-editing, dark-mode, custom-colors, custom-logo, custom-menu, editor-style, featured-images, wide-blocks
*/

/* ---------------------------------------------------------------
   Everything below is presentation only. Delete any rule you like;
   the layout is built from core blocks and will still work.
   --------------------------------------------------------------- */

:root {
  --cc-border: rgba(255, 255, 255, 0.12);
  --cc-radius: 16px;
}

body {
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(60% 45% at 15% 0%, oklch(29% 0.045 258 / 0.55) 0%, transparent 70%),
    radial-gradient(50% 40% at 90% 10%, oklch(72% 0.17 55 / 0.14) 0%, transparent 70%);
  background-repeat: no-repeat;
}

/* Eyebrow / label text ---------------------------------------- */
.cc-eyebrow {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ember);
  margin-bottom: 0.5rem;
}

.cc-mono {
  font-family: var(--wp--preset--font-family--mono);
  letter-spacing: 0.08em;
}

/* Cards -------------------------------------------------------- */
.cc-card {
  background: linear-gradient(180deg, oklch(21% 0.014 260) 0%, oklch(18% 0.012 260) 100%);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: clamp(1.1rem, 2.5vw, 1.9rem);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cc-card:hover {
  transform: translateY(-4px);
  border-color: oklch(68% 0.16 250 / 0.55);
}

.cc-card--flat:hover {
  transform: none;
}

.cc-outline {
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: clamp(1rem, 2vw, 1.5rem);
}

/* Stat blocks -------------------------------------------------- */
.cc-stat .wp-block-heading,
.cc-stat p:first-child {
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 800;
  line-height: 1;
}

.cc-stat-value {
  font-family: var(--wp--preset--font-family--mono);
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--wp--preset--color--ember);
  margin: 0 0 0.35rem;
}

.cc-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  margin: 0;
}

/* Chips / tag pills -------------------------------------------- */
.cc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cc-chip,
.cc-chips > p {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  border: 1px solid var(--cc-border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  margin: 0;
}

/* Header ------------------------------------------------------- */
.cc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: oklch(15% 0.01 260 / 0.72);
  border-bottom: 1px solid var(--cc-border);
}

.cc-header .wp-block-navigation {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Media -------------------------------------------------------- */
.cc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--cc-radius);
  aspect-ratio: 4 / 3;
}

.cc-media--tall img {
  aspect-ratio: 3 / 4;
}

.cc-media--square img {
  aspect-ratio: 1 / 1;
}

/* Section rhythm ----------------------------------------------- */
.cc-section {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  border-top: 1px solid var(--cc-border);
}

.cc-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cc-border), transparent);
  border: 0;
}

/* Footer ------------------------------------------------------- */
.cc-footer {
  border-top: 1px solid var(--cc-border);
  background: oklch(17% 0.012 260);
}

/* Blockquote, lists, misc ------------------------------------- */
.wp-block-quote {
  border-left: 2px solid var(--wp--preset--color--ember);
  padding-left: 1.25rem;
  font-style: normal;
}

.cc-checklist ul,
.cc-checklist {
  list-style: none;
  padding-left: 0;
}

.cc-checklist li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--wp--preset--color--muted);
}

.cc-checklist li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--wp--preset--color--electric);
}

/* Accessibility ----------------------------------------------- */
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--wp--preset--color--electric);
  color: #000;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .cc-card {
    transition: none;
  }
}
