/*
Theme Name: Lee Noble Consultancy
Theme URI: https://itsleenoble.com
Author: Lee Noble
Author URI: https://itsleenoble.com
Description: Custom one-page theme for Lee Noble — AI & Digital Marketing Consultancy. Built specifically for itsleenoble.com.
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: lee-noble
*/

:root {
  --ink: #0f1923;
  --ink-light: #1a2a3a;
  --ink-mid: #2a3f54;
  --slate: #64748b;
  --silver: #94a3b8;
  --mist: #e2e8f0;
  --cloud: #f1f5f9;
  --white: #ffffff;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.12);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── UTILITY ─── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.serif { font-family: var(--serif); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.animate { opacity: 0; }
.animate.visible { animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate.visible.delay-1 { animation-delay: 0.1s; }
.animate.visible.delay-2 { animation-delay: 0.2s; }
.animate.visible.delay-3 { animation-delay: 0.3s; }
.animate.visible.delay-4 { animation-delay: 0.4s; }
.animate.visible.delay-5 { animation-delay: 0.5s; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--mist);
  transition: box-shadow 0.3s ease;
}
nav.scrolled { box-shadow: 0 1px 20px rgba(15,25,35,0.06); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1140px; margin: 0 auto; padding: 0 24px; height: 72px;
}
.nav-logo {
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink);
  text-decoration: none; letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--slate); font-size: 0.9rem;
  font-weight: 500; letter-spacing: 0.01em; transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent) !important; color: var(--white) !important;
  padding: 10px 22px !important; border-radius: 8px;
  font-weight: 600 !important; font-size: 0.85rem !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.3s; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 120px 0 80px;
}
.hero::before {
  content: '';
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--mist);
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero-name {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent); font-weight: 600; margin-bottom: 28px;
  animation: fadeIn 0.6s ease forwards;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 1.05; letter-spacing: -0.035em; color: var(--ink);
  margin-bottom: 28px;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
  opacity: 0;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-body {
  font-size: 1.18rem; color: var(--slate); line-height: 1.7; margin-bottom: 40px;
  max-width: 620px; margin-left: auto; margin-right: auto;
  animation: fadeUp 0.7s ease 0.3s forwards; opacity: 0;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 0.7s ease 0.45s forwards; opacity: 0;
}
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeIn 1s ease 1s forwards; opacity: 0;
}
.hero-scroll-hint span {
  font-size: 0.75rem; color: var(--silver); text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 500;
}
.scroll-arrow {
  width: 20px; height: 20px; border-right: 2px solid var(--silver);
  border-bottom: 2px solid var(--silver); transform: rotate(45deg);
  animation: bounceDown 2s ease infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ─── STATS BAND ─── */
.stats-band {
  background: var(--ink); padding: 56px 0; position: relative; overflow: hidden;
}
.stats-band::after {
  content: '';
  position: absolute; top: -50%; right: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  position: relative; z-index: 1;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--serif); font-size: 2.6rem; line-height: 1;
  margin-bottom: 6px; color: var(--white);
}
.stat-label { font-size: 0.82rem; color: var(--silver); line-height: 1.4; }
.stats-tags {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid var(--ink-mid); position: relative; z-index: 1;
}
.stats-tag {
  padding: 5px 14px; border-radius: 100px; font-size: 0.78rem;
  font-weight: 500; background: var(--ink-light); color: var(--silver);
  border: 1px solid var(--ink-mid);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-size: 0.95rem;
  font-weight: 600; text-decoration: none; transition: all 0.2s;
  cursor: pointer; border: none; font-family: var(--sans);
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.25); }
.btn-secondary { background: var(--cloud); color: var(--ink); border: 1px solid var(--mist); }
.btn-secondary:hover { background: var(--mist); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ─── SECTION COMMON ─── */
section { padding: 100px 0; }
.section-label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15; letter-spacing: -0.025em; color: var(--ink);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--slate); max-width: 560px; line-height: 1.65;
}

/* ─── PROBLEM ─── */
.problem { background: var(--cloud); }
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  margin-top: 48px;
}
.pain-points { display: flex; flex-direction: column; gap: 20px; }
.pain-point {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 24px; background: var(--white);
  border-radius: 12px; border: 1px solid var(--mist);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pain-point:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,25,35,0.05); }
.pain-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-glow); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem;
}
.pain-point h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.pain-point p { font-size: 0.88rem; color: var(--slate); line-height: 1.55; }

.solution-preview {
  background: var(--ink); border-radius: 20px; padding: 40px;
  color: var(--white); position: relative; overflow: hidden;
}
.solution-preview::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--accent), transparent);
}
.solution-preview h3 {
  font-family: var(--serif); font-size: 1.5rem; margin-bottom: 20px; line-height: 1.3;
}
.solution-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.solution-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.92rem; color: var(--silver);
}
.solution-list .check {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(37,99,235,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 0.75rem; flex-shrink: 0;
}

/* ─── SERVICES ─── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 56px;
}
.service-card {
  padding: 36px 32px; border-radius: 16px; border: 1px solid var(--mist);
  background: var(--white); transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent); transform: scaleX(0);
  transform-origin: left; transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { border-color: transparent; box-shadow: 0 12px 40px rgba(15,25,35,0.08); transform: translateY(-4px); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.service-card p { font-size: 0.9rem; color: var(--slate); line-height: 1.6; }
.service-card .service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.service-card .service-tag {
  font-size: 0.72rem; padding: 3px 10px; border-radius: 100px;
  background: var(--cloud); color: var(--slate); font-weight: 500;
}

a.service-card {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
a.service-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* ─── HOW IT WORKS ─── */
.how-it-works { background: var(--ink); color: var(--white); }
.how-it-works .section-label { color: var(--accent); }
.how-it-works .section-title { color: var(--white); }
.how-it-works .section-subtitle { color: var(--silver); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.step {
  text-align: center; padding: 32px 20px;
  position: relative;
}
.step::after {
  content: '→'; position: absolute; right: -16px; top: 44px;
  color: var(--ink-mid); font-size: 1.4rem;
}
.step:last-child::after { display: none; }
.step-number {
  font-family: var(--serif); font-size: 3rem; color: var(--accent);
  line-height: 1; margin-bottom: 16px; opacity: 0.8;
}
.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 0.85rem; color: var(--silver); line-height: 1.55; }

/* ─── ABOUT ─── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center;
  margin-top: 48px;
}
.about-image {
  background: var(--cloud); border-radius: 20px;
  aspect-ratio: 4/5; position: relative; overflow: hidden;
}
.about-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.about-image-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--silver);
  flex-direction: column; gap: 8px;
}
.about-content h3 {
  font-family: var(--serif); font-size: 1.8rem; line-height: 1.3;
  margin-bottom: 20px; letter-spacing: -0.02em;
}
.about-content p {
  font-size: 0.95rem; color: var(--slate); line-height: 1.7; margin-bottom: 16px;
}
.about-credentials {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px;
}
.credential {
  padding: 16px 20px; background: var(--cloud); border-radius: 10px;
}
.credential-num {
  font-family: var(--serif); font-size: 1.6rem; color: var(--accent); line-height: 1;
  margin-bottom: 4px;
}
.credential-text { font-size: 0.82rem; color: var(--slate); }

/* ─── USE CASES ─── */
.use-cases { background: var(--cloud); }
.cases-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-top: 48px;
}
.case-card {
  padding: 36px; background: var(--white); border-radius: 16px;
  border: 1px solid var(--mist); transition: all 0.2s;
}
.case-card:hover { box-shadow: 0 8px 32px rgba(15,25,35,0.06); transform: translateY(-2px); }
.case-type {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.case-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.case-card p { font-size: 0.88rem; color: var(--slate); line-height: 1.6; margin-bottom: 16px; }
.case-result {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600; color: var(--accent);
}

/* ─── FAQ ─── */
.faq-grid { max-width: 740px; margin: 48px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--mist); padding: 24px 0;
  cursor: pointer;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.02rem; font-weight: 600; color: var(--ink);
  gap: 16px;
}
.faq-toggle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cloud); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; color: var(--slate);
  flex-shrink: 0; transition: all 0.3s;
}
.faq-item.open .faq-toggle { background: var(--accent); color: var(--white); transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-answer { max-height: 300px; padding-top: 14px; }
.faq-answer p { font-size: 0.9rem; color: var(--slate); line-height: 1.65; }

/* ─── CTA ─── */
.cta-section {
  background: var(--ink); color: var(--white); text-align: center;
  padding: 100px 0;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 60%);
}
.cta-section .section-title { color: var(--white); margin-bottom: 16px; }
.cta-section .section-subtitle { color: var(--silver); margin: 0 auto 40px; max-width: 500px; }
.cta-options { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-detail {
  margin-top: 32px; font-size: 0.85rem; color: var(--silver);
}

/* ─── FOOTER ─── */
footer {
  padding: 60px 0 32px; border-top: 1px solid var(--mist);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
}
.footer-brand {
  font-family: var(--serif); font-size: 1.2rem; margin-bottom: 12px;
}
.footer-brand span { color: var(--accent); }
.footer-desc { font-size: 0.88rem; color: var(--slate); line-height: 1.6; max-width: 320px; }
.footer-heading {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; color: var(--ink); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  text-decoration: none; color: var(--slate); font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--mist);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--silver);
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  text-decoration: none; color: var(--slate); font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media (max-width: 968px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { max-height: 400px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  section { padding: 72px 0; }
  .hero { min-height: 100svh; padding: 100px 0 60px; }
  .hero h1 { font-size: clamp(2.4rem, 8vw, 3.2rem); }
  .hero-scroll-hint { bottom: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-num { font-size: 2rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--white);
    padding: 24px; gap: 20px; border-bottom: 1px solid var(--mist);
    box-shadow: 0 12px 32px rgba(15,25,35,0.08);
  }
  .mobile-toggle { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .about-credentials { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* Services dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-trigger {
    cursor: pointer;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    margin-top: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* ─── WP OVERRIDES ─── */
/* Remove default WP admin bar offset when logged in */
body.admin-bar nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar nav { top: 46px; }
}
