/*
Theme Name: Cepora Digital
Theme URI: https://cepora.co
Author: Cepora Digital
Author URI: https://cepora.co
Description: Custom theme for Cepora Digital — strategy, websites, marketing systems, and AI-powered automation.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: cepora-digital
*/

/* ---------- VARIABLES ---------- */
:root {
  --magenta: #BC00FF;
  --navy: #253C78;
  --navy-dark: #1A2B57;
  --navy-deepest: #141F3E;
  --sky: #55C1FF;
  --lime: #B9FF66;
  --warm-charcoal: #2A2925;
  --warm-dark: #3A3833;
  --warm-mid: #8A8578;
  --warm-light: #E8E5DF;
  --bg-warm: #F7F5F2;
  --bg-warm-2: #FAFAF8;
  --text-body: #444;
  --text-muted: #7a7870;
  --text-faint: #a8a59b;
  --hairline: rgba(37, 60, 120, 0.08);
  --hairline-strong: rgba(37, 60, 120, 0.14);
}

/* ---------- RESET & BASE ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Prompt', sans-serif;
  font-weight: 400;
  color: var(--text-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.container-narrow { max-width: 1100px; margin: 0 auto; padding: 0 48px; }

/* ---------- UTILITIES ---------- */
.eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sky);
}
.section-pad { padding: 120px 0; }
.section-pad-lg { padding: 140px 0; }
.section-head {
  text-align: center;
  margin-bottom: 72px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.2rem);
}
.section-head .eyebrow { margin-bottom: 16px; }

/* ---------- PILLS ---------- */
.pill {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 4px;
}
.pill-sky { background: var(--sky); color: #fff; }
.pill-lime { background: var(--lime); color: var(--navy); }
.pill-magenta { background: var(--magenta); color: #fff; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-large { padding: 16px 28px; font-size: 0.98rem; }
.btn-stacked { flex-direction: column; gap: 3px; padding: 12px 30px; line-height: 1.15; }
.btn-stacked .btn-kicker { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
.btn-stacked .btn-main { display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; font-weight: 700; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--hairline);
  padding: 14px 48px;
}
.nav .logo, .nav .nav-links a { color: #fff; transition: color 0.35s ease; }
.nav.scrolled .logo, .nav.scrolled .nav-links a { color: var(--navy); }
.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
}
.nav-links { display: flex; gap: 42px; align-items: center; }
.nav-links a {
  font-family: 'Prompt', sans-serif;
  font-size: 0.92rem;
  position: relative;
  transition: opacity 0.2s, color 0.35s ease;
}
.nav .nav-links a:hover { color: var(--lime); opacity: 1; }
.nav-links a.active { font-weight: 500; }

/* ---------- LOGO (image; light on dark, original when scrolled/menu-open) ---------- */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { display: block; width: auto; height: 30px; }
.logo .logo-dark { display: none; }
.nav.scrolled .logo .logo-light,
.nav.nav-open .logo .logo-light { display: none; }
.nav.scrolled .logo .logo-dark,
.nav.nav-open .logo .logo-dark { display: block; }

/* ---------- HAMBURGER (mobile only) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px; padding: 9px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.35s ease;
}
.nav.scrolled .nav-toggle span,
.nav.nav-open .nav-toggle span { background: var(--navy); }
.nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- SECTION LAYERS ---------- */
section { position: relative; }
section > *:not(.section-bg):not(.section-photo):not(.section-tint):not(.beam) { position: relative; z-index: 2; }
.section-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}
.section-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.beam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.section-label {
  position: absolute;
  top: 48px;
  left: 48px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  z-index: 3;
}
.section-label .num { color: var(--navy); margin-right: 12px; opacity: 0.6; }

/* ---------- FINAL CTA (shared) ---------- */
.final-cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta .section-tint {
  background: linear-gradient(180deg, rgba(14, 23, 51, 0.82) 0%, rgba(14, 23, 51, 0.92) 100%);
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(188, 0, 255, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(85, 193, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 2;
}
.final-cta-inner {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 48px;
}
.final-cta .eyebrow { color: var(--lime); margin-bottom: 32px; }
.final-cta h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 28px;
  line-height: 1.08;
}
.final-cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.final-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.final-trust { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-deepest);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 40px;
  position: relative;
  z-index: 5;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 18px;
}
.footer-logo img { display: block; width: auto; height: 34px; }
.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  max-width: 320px;
  line-height: 1.6;
}
.footer-contact {
  font-style: normal;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-top: 16px;
}
.footer-contact a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-contact a:hover { color: var(--lime); }
.fc-region { color: rgba(255,255,255,0.4); font-size: 0.78rem; margin-left: 6px; }
.fc-wa { display: inline-flex; vertical-align: middle; margin-left: 8px; }
.fc-wa svg { display: block; }
.footer-nav { display: flex; gap: 36px; flex-wrap: wrap; }
.footer-nav a { font-family: 'Prompt', sans-serif; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-nav a:hover { color: var(--lime); }
.footer-bottom {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-li {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  transition: background 0.2s;
}
.footer-li:hover { background: var(--magenta); }

/* ---------- GHL WORKSHOP NOTIFY FORM (iframe wrapper) ---------- */
.ghl-form-wrap {
  margin-top: 8px;
  background: var(--bg-warm-2);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 8px;
}
.ghl-form-wrap iframe {
  width: 100%;
  min-height: 220px;
  border: none;
  border-radius: 8px;
  display: block;
}

/* ---------- LINKEDIN CTA (shared) ---------- */
.linkedin-cta {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.linkedin-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
}
.linkedin-cta p { font-size: 0.92rem; color: #666; line-height: 1.5; margin-bottom: 6px; }
.linkedin-cta a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
}

/* ---------- NEWSLETTER (shared) ---------- */
.newsletter {
  background: var(--bg-warm);
  padding: 44px 40px;
  border: 1px solid var(--hairline);
}
.newsletter h3 { font-size: 1.3rem; margin-bottom: 14px; line-height: 1.2; }
.newsletter p { font-size: 0.95rem; color: #666; margin-bottom: 28px; line-height: 1.6; }
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-form input {
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  background: #fff;
  font-family: 'Prompt', sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--navy); }
.newsletter-form input::placeholder { color: #aaa; }
.newsletter-form button { justify-content: center; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

::selection { background: var(--lime); color: var(--navy); }

/* ---------- RESPONSIVE (shared) ---------- */
@media (max-width: 900px) {
  .container, .container-narrow { padding: 0 24px; }
  .nav, .nav.scrolled { padding: 14px 24px; }
  .nav-cta { display: inline-flex; order: 2; margin-left: auto; padding: 10px 12px; }
  .nav-cta .nav-cta-text { display: none; }
  .nav-toggle { display: flex; order: 3; margin-left: 6px; }
  .logo img { height: 24px; }
  .nav.nav-open {
    background: rgba(255,255,255,0.98);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom-color: var(--hairline);
  }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; padding: 4px 24px 14px;
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 16px 32px rgba(15, 26, 56, 0.14);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height 0.32s ease, opacity 0.25s ease;
  }
  .nav.nav-open .nav-links { max-height: 70vh; opacity: 1; pointer-events: auto; }
  .nav .nav-links a { color: var(--navy); padding: 15px 2px; font-size: 1.05rem; border-bottom: 1px solid var(--hairline); }
  .nav .nav-links a:last-child { border-bottom: none; }
  .nav .nav-links a:hover { color: var(--magenta); }
  .section-pad { padding: 80px 0; }
  .section-pad-lg { padding: 96px 0; }
  .section-label { top: 32px; left: 24px; font-size: 0.62rem; }
  .final-cta-buttons { flex-direction: column; }
  .final-cta-buttons .btn { width: 100%; justify-content: center; }
  .footer-nav { gap: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}

/* Phones: keep CTA labels on one line by trimming button size */
@media (max-width: 560px) {
  .btn { font-size: 0.78rem; padding: 11px 18px; }
  .btn-large { font-size: 0.82rem; padding: 13px 20px; }
  .nav .btn-primary { font-size: 0.72rem; padding: 9px 15px; }
}
