/*
Theme Name:  Pleon Agency
Theme URI:   https://lrj-solutions.com
Author:      Luke Jones
Author URI:  https://lrj-solutions.com
Description: Pleon Agency theme. Tailwind CSS via CDN (no build step — shared hosting ready). Includes a Blank page template that renders only the_content() for full GUI control.
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: pleon-agency
Tags:        custom-colors, custom-fonts
*/

/* ============================================
   PLEON AGENCY — REDESIGN 2026
   Shared Stylesheet
   Tailwind utility classes come from the CDN script in header.php.
   This file contains the component/design-system layer that sits
   on top of Tailwind base styles.
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand colours */
  --purple: #513FFA;
  --purple-dark: #3d2ec7;
  --purple-light: #6b5cff;
  --purple-glow: rgba(81, 63, 250, 0.12);
  --purple-subtle: rgba(81, 63, 250, 0.06);

  --dark: #141413;
  --dark-soft: #232324;
  --text: #363636;
  --text-light: #6b6b6b;
  --text-muted: #9e9e9e;

  --bg: #FAFAFF;
  --bg-warm: #FAF9F5;
  --white: #FFFFFF;
  --border: #e5e5ea;
  --border-light: #f0f0f5;

  --red: #D31145;
  --green: #0a8a3e;

  /* Typography scale */
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --fs-display: clamp(2.8rem, 6vw, 5rem);
  --fs-h1: clamp(2.2rem, 4.5vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --nav-height: 72px;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(81, 63, 250, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}

.display { font-size: var(--fs-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
h1, .h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2, .h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; }
h3, .h3 { font-size: var(--fs-h3); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-purple { color: var(--purple); }
.text-small { font-size: var(--fs-small); }

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--dark {
  background: var(--dark);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--purple {
  background: var(--purple);
  color: var(--white);
}

.section--purple h1,
.section--purple h2,
.section--purple h3 {
  color: var(--white);
}

.section--warm {
  background: var(--bg-warm);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-2xl) 0; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
  background: rgba(250, 250, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
}

.nav__logo svg {
  width: 28px;
  height: 28px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__links a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
  position: relative;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--purple);
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--purple);
  border-radius: 1px;
}

.nav__cta {
  display: inline-flex;
}

/* Mobile nav */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-lg);
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.1rem; }
  .nav__cta { display: none; }
  .nav__cta--mobile { display: inline-flex; margin-top: var(--space-md); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--purple);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--purple-dark);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--purple);
}

.btn--outline:hover {
  background: var(--purple);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--purple);
}

.btn--white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  padding: 14px 0;
}

.btn--ghost:hover {
  color: var(--purple);
}

.btn--ghost .arrow {
  transition: transform var(--transition);
}

.btn--ghost:hover .arrow {
  transform: translateX(4px);
}

.btn--sm {
  padding: 10px 20px;
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: 18px 36px;
  font-size: var(--fs-body);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: var(--space-lg);
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  margin-bottom: var(--space-sm);
}

.card__label::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--purple);
  border-radius: 2px;
}

.card__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
}

.card__desc {
  color: var(--text-light);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* ---------- Section Headers ---------- */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: var(--space-sm);
}

.section-header__label::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--purple);
}

.section-header p {
  max-width: 600px;
  color: var(--text-light);
  margin-top: var(--space-sm);
}

/* ---------- Stats ---------- */
.stat {
  text-align: center;
}

.stat__number {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 4px;
}

.stat__label {
  font-size: var(--fs-small);
  color: var(--text-light);
}

/* ---------- Pill / Tag ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: var(--fs-xs);
  font-weight: 500;
  border-radius: 100px;
  background: var(--purple-subtle);
  color: var(--purple);
}

/* ---------- Divider ---------- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  border: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer h4 {
  color: var(--white);
  font-size: var(--fs-body);
  margin-bottom: var(--space-md);
}

.footer a {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-small);
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-lg);
}

.footer__brand p {
  max-width: 320px;
  line-height: 1.7;
  margin-top: var(--space-sm);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
}

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  position: relative;
}

.testimonial__quote {
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark);
  margin-bottom: var(--space-md);
}

.testimonial__quote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--purple);
  line-height: 0;
  position: relative;
  top: 12px;
  margin-right: 4px;
}

.testimonial__author {
  font-weight: 600;
  color: var(--dark);
}

.testimonial__role {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* ---------- Form ---------- */
.form__group {
  margin-bottom: var(--space-md);
}

.form__label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--dark);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: var(--fs-body);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

/* ---------- Hero Spacer ---------- */
.hero-spacer {
  height: var(--nav-height);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* ---------- Misc ---------- */
::selection {
  background: var(--purple);
  color: var(--white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
