/*
Theme Name: Caesell
Theme URI: https://caesell.com
Author: Caesell
Description: AI-powered project management landing page theme. Organic Clarity design direction.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: caesell
*/

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  --c-bg:           #faf9fe;
  --c-white:        #ffffff;
  --c-forest:       #096d30;
  --c-forest-mid:   #52a964;
  --c-mint:         #9df7a9;
  --c-mint-pale:    #d6fcd9;
  --c-purple:       #494bd6;
  --c-dark:         #1a1c1f;
  --c-muted:        #6b7280;
  --c-border:       #e8e7ec;
  --c-footer-bg:    #111318;
  --font-display:   'Fraunces', Georgia, serif;
  --font-body:      'Plus Jakarta Sans', system-ui, sans-serif;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   18px;
  --r-pill: 999px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================================================================
   GLOBAL RESETS
   ================================================================ */
.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(48px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(157,247,169,0.70); }
  55%       { box-shadow: 0 0 0 9px rgba(157,247,169,0.00); }
}
@keyframes agentPulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(9,109,48,0.60); }
  55%       { box-shadow: 0 0 0 7px rgba(9,109,48,0.00); }
}
@keyframes mintBloom {
  0%, 100% { opacity: 0.45; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: 0.70; transform: translate(-50%,-50%) scale(1.06); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.caesell-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,249,254,0.90);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(9,109,48,0.08);
  box-shadow: 0 1px 0 rgba(232,231,236,0.60);
}

.caesell-nav .wp-block-group__inner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 2rem;
}

.caesell-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.caesell-nav-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.caesell-nav-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-dark);
  letter-spacing: -0.01em;
}

.caesell-nav .wp-block-navigation__container {
  gap: 2px !important;
}

.caesell-nav .wp-block-navigation-item__content {
  font-family: var(--font-body) !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  color: #374940 !important;
  padding: 8px 14px !important;
  border-radius: var(--r-md) !important;
  transition: color 150ms ease, background 150ms ease !important;
  position: relative;
}

.caesell-nav .wp-block-navigation-item__content::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--c-forest);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}

.caesell-nav .wp-block-navigation-item__content:hover {
  color: var(--c-forest) !important;
  background: rgba(9,109,48,0.05) !important;
}

.caesell-nav .wp-block-navigation-item__content:hover::after {
  transform: scaleX(1);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.caesell-btn-primary .wp-block-button__link,
.wp-element-button.caesell-btn-primary {
  background: var(--c-forest) !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  padding: 10px 22px !important;
  border-radius: var(--r-md) !important;
  border: none !important;
  transition: background 150ms ease, box-shadow 260ms ease, transform 150ms var(--ease-spring) !important;
  box-shadow: 0 4px 16px rgba(9,109,48,0.24);
}
.caesell-btn-primary .wp-block-button__link:hover,
.wp-element-button.caesell-btn-primary:hover {
  background: #065c27 !important;
  box-shadow: 0 8px 28px rgba(9,109,48,0.32) !important;
  transform: translateY(-1px);
}

.caesell-btn-ghost .wp-block-button__link,
.wp-element-button.caesell-btn-ghost {
  background: transparent !important;
  color: #374940 !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  padding: 10px 18px !important;
  border-radius: var(--r-md) !important;
  border: 1.5px solid var(--c-border) !important;
  transition: color 150ms ease, border-color 150ms ease, transform 150ms var(--ease-spring) !important;
}
.caesell-btn-ghost .wp-block-button__link:hover,
.wp-element-button.caesell-btn-ghost:hover {
  color: var(--c-forest) !important;
  border-color: var(--c-forest) !important;
  transform: translateY(-1px);
}

.caesell-btn-white .wp-block-button__link {
  background: #fff !important;
  color: var(--c-forest) !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  padding: 14px 32px !important;
  border-radius: var(--r-md) !important;
  border: none !important;
  font-size: 1.0625rem !important;
  transition: box-shadow 200ms ease, transform 150ms var(--ease-spring) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.caesell-btn-white .wp-block-button__link:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.18) !important;
  transform: translateY(-2px);
}

/* ================================================================
   PILL BADGE
   ================================================================ */
.caesell-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-mint-pale);
  color: var(--c-forest);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px 6px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(9,109,48,0.20);
  animation: badgePulse 2.6s ease-in-out infinite;
  width: fit-content;
}
.caesell-badge .badge-dot {
  width: 7px;
  height: 7px;
  background: var(--c-forest);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.caesell-hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.caesell-hero .wp-block-group__inner-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-left {
  flex: 0 0 45%;
  max-width: 45%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-right {
  flex: 1;
  position: relative;
  min-height: 500px;
}

/* Hero headline */
.caesell-hero h1.wp-block-heading {
  font-family: var(--font-display) !important;
  font-size: clamp(2.25rem, 4vw, 3.25rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  color: var(--c-dark) !important;
}

.hero-accent {
  color: var(--c-forest);
  font-style: italic;
}

/* Hero subheadline */
.hero-sub {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--c-muted);
  max-width: 480px;
}

/* Social proof */
.caesell-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--c-muted);
  font-weight: 500;
}

.avatar-stack {
  display: flex;
}
.avatar-stack span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
}
.avatar-stack span:first-child { margin-left: 0; background: #096d30; }
.avatar-stack span:nth-child(2) { background: #494bd6; }
.avatar-stack span:nth-child(3) { background: #52a964; }
.avatar-stack span:nth-child(4) { background: #6b7280; }
.avatar-stack span:nth-child(5) { background: #1a1c1f; }

/* Mint bloom */
.mint-bloom {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157,247,169,0.28) 0%, rgba(157,247,169,0.08) 55%, transparent 75%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: mintBloom 5s ease-in-out infinite;
  z-index: 0;
}

/* ================================================================
   PRODUCT CARD (CSS-built Kanban UI)
   ================================================================ */
.caesell-product-card {
  background: #fff;
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.09), 0 1px 0 rgba(0,0,0,0.04);
  overflow: hidden;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  position: relative;
  z-index: 1;
  animation: slideInRight 0.9s var(--ease-out) 0.22s both;
}

.product-card-bar {
  background: #f4f3f8;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--c-border);
}

.product-card-dots {
  display: flex;
  gap: 6px;
}
.product-card-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.product-card-dots span:nth-child(1) { background: #ff5f57; }
.product-card-dots span:nth-child(2) { background: #febc2e; }
.product-card-dots span:nth-child(3) { background: #28c840; }

.product-card-title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-muted);
}

.product-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(9,109,48,0.10);
  color: var(--c-forest);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}
.product-ai-badge .ai-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-forest);
  animation: agentPulse 2s ease-in-out infinite;
}

.product-card-body {
  display: flex;
  height: 340px;
  overflow: hidden;
}

/* Sidebar */
.product-sidebar {
  width: 160px;
  flex-shrink: 0;
  border-right: 1px solid var(--c-border);
  background: #f9f9fc;
  padding: 12px 0;
}

.product-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-muted);
  cursor: pointer;
}
.product-sidebar-item.active {
  background: rgba(9,109,48,0.07);
  color: var(--c-forest);
  font-weight: 600;
  border-right: 2px solid var(--c-forest);
}
.product-sidebar-item .s-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}
.product-sidebar-item.active .s-icon {
  background: var(--c-forest);
  opacity: 1;
}

.agent-card {
  margin: 10px 8px 0;
  background: rgba(9,109,48,0.08);
  border: 1px solid rgba(9,109,48,0.18);
  border-radius: var(--r-md);
  padding: 8px 10px;
}
.agent-card-label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-forest);
  margin-bottom: 3px;
}
.agent-card-text {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: #374940;
  line-height: 1.4;
}

/* Kanban board */
.product-kanban {
  flex: 1;
  display: flex;
  gap: 0;
  overflow: hidden;
}

.kanban-col {
  flex: 1;
  padding: 10px 8px;
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.kanban-col:last-child { border-right: none; }

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.kanban-col-name {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
}
.kanban-col-count {
  background: var(--c-border);
  color: var(--c-muted);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--r-pill);
}

.task-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 7px 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.task-card.in-progress {
  border-left: 3px solid var(--c-purple);
}
.task-card.done {
  border-left: 3px solid var(--c-forest-mid);
  opacity: 0.75;
}

.task-title {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: 5px;
  line-height: 1.35;
}
.task-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.task-tag {
  font-size: 0.5625rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
.task-tag.ai    { background: rgba(157,247,169,0.35); color: var(--c-forest); }
.task-tag.dev   { background: rgba(73,75,214,0.10); color: var(--c-purple); }
.task-tag.done  { background: rgba(82,169,100,0.15); color: #065c27; }
.task-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.5rem;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
}

/* ================================================================
   FEATURES SECTION
   ================================================================ */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-forest);
  display: block;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-display) !important;
  font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
  font-weight: 700 !important;
  color: var(--c-dark) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 1rem !important;
}

.section-subtext {
  font-size: 1.0625rem;
  color: var(--c-muted);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

/* Feature cards */
.feature-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon.green  { background: rgba(9,109,48,0.10); }
.feature-icon.purple { background: rgba(73,75,214,0.10); }
.feature-icon.mint   { background: rgba(157,247,169,0.35); }

.feature-icon-shape {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: currentColor;
}
.feature-icon.green  .feature-icon-shape { color: var(--c-forest); }
.feature-icon.purple .feature-icon-shape { color: var(--c-purple); }
.feature-icon.mint   .feature-icon-shape { color: var(--c-forest-mid); }

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how-it-works-section {
  background: var(--c-white);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-forest);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  flex-shrink: 0;
}

.step-card {
  background: #f9f9fc;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.step-card::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1.5rem;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--c-forest), var(--c-mint));
  transform: translateY(-50%);
}

/* ================================================================
   AI AGENTS SECTION
   ================================================================ */
.agents-section {
  background: var(--c-bg);
}

.agent-feature-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.agent-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.agent-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-forest), var(--c-purple));
}

.agent-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(9,109,48,0.08);
  color: var(--c-forest);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.agent-status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-forest);
  animation: agentPulse 2s ease-in-out infinite;
}

.agent-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 4px;
  margin-bottom: 4px;
}
.agent-tag.purple { background: rgba(73,75,214,0.10); color: var(--c-purple); }
.agent-tag.green  { background: rgba(9,109,48,0.10);  color: var(--c-forest); }
.agent-tag.mint   { background: rgba(157,247,169,0.40); color: #065c27; }

/* ================================================================
   PRICING SECTION
   ================================================================ */
.pricing-section {
  background: var(--c-white);
}

.pricing-card {
  background: #f9f9fc;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.pricing-card.featured {
  background: var(--c-forest);
  border-color: var(--c-forest);
  color: #fff;
  box-shadow: 0 8px 32px rgba(9,109,48,0.28);
}

.pricing-plan-name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: 0.75rem;
}
.pricing-card.featured .pricing-plan-name {
  color: rgba(255,255,255,0.75);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--c-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.pricing-card.featured .pricing-price { color: #fff; }

.pricing-period {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-bottom: 1.5rem;
}
.pricing-card.featured .pricing-period { color: rgba(255,255,255,0.65); }

.pricing-divider {
  height: 1px;
  background: var(--c-border);
  margin: 1.5rem 0;
}
.pricing-card.featured .pricing-divider { background: rgba(255,255,255,0.20); }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  margin-bottom: 2rem;
  padding: 0;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: #374940;
  line-height: 1.45;
}
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.90); }
.pricing-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(9,109,48,0.12);
  color: var(--c-forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 900;
}
.pricing-card.featured .pricing-check {
  background: rgba(255,255,255,0.20);
  color: #fff;
}

.pricing-featured-badge {
  display: inline-block;
  background: var(--c-mint);
  color: var(--c-forest);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 0.75rem;
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.caesell-cta-section {
  background: linear-gradient(135deg, var(--c-forest) 0%, #0a8a3d 100%);
  position: relative;
  overflow: hidden;
}
.caesell-cta-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(157,247,169,0.12);
  pointer-events: none;
}
.caesell-cta-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(157,247,169,0.08);
  pointer-events: none;
}

/* ================================================================
   FOOTER
   ================================================================ */
.caesell-footer {
  background: var(--c-footer-bg);
  color: rgba(255,255,255,0.70);
}

.caesell-footer a {
  color: rgba(255,255,255,0.70);
  font-size: 0.9375rem;
  transition: color 150ms ease;
}
.caesell-footer a:hover {
  color: var(--c-mint);
}

.caesell-footer-logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.40);
  margin-bottom: 1rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin: 2rem 0;
}

/* ================================================================
   PAGE TITLE TEMPLATE
   ================================================================ */
.caesell-page-title-section {
  background: var(--c-forest);
  padding: 5rem 2rem;
}
.caesell-page-title-section .wp-block-post-title {
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-align: center !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
}

.caesell-page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* ================================================================
   EQUAL CARDS
   ================================================================ */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

/* ================================================================
   HOVER LIFT
   ================================================================ */
.hover-lift {
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

/* ================================================================
   SCROLL OFFSET — compensate for sticky nav
   ================================================================ */
#product, #features, #pricing {
  scroll-margin-top: 80px;
}

/* ================================================================
   MOBILE HAMBURGER BUTTON
   ================================================================ */
.caesell-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: background 150ms ease;
  flex-shrink: 0;
}
.caesell-hamburger:hover { background: rgba(9,109,48,0.06); }
.caesell-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-dark);
  border-radius: 2px;
  transition: transform 250ms var(--ease-out), opacity 200ms ease;
  transform-origin: center;
}
.caesell-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.caesell-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.caesell-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   MOBILE SIDEBAR OVERLAY
   ================================================================ */
.caesell-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.caesell-mobile-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ================================================================
   MOBILE SIDEBAR
   ================================================================ */
.caesell-mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: #fff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 350ms var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  overflow-y: auto;
}
.caesell-mobile-sidebar.is-open {
  transform: translateX(0);
}

.caesell-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--c-border);
}

.caesell-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.caesell-sidebar-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.caesell-sidebar-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--c-dark);
}

.caesell-sidebar-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--c-muted);
  font-size: 1.25rem;
  line-height: 1;
  transition: color 150ms ease, background 150ms ease;
  flex-shrink: 0;
}
.caesell-sidebar-close:hover {
  color: var(--c-dark);
  background: #f5f5f7;
}

.caesell-sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.caesell-sidebar-nav a {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-dark);
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--c-border);
  text-decoration: none;
  transition: color 150ms ease, padding-left 150ms ease;
  display: block;
}
.caesell-sidebar-nav a:hover {
  color: var(--c-forest);
  padding-left: 0.5rem;
}
.caesell-sidebar-nav a.sidebar-sign-in {
  color: var(--c-muted);
  font-weight: 500;
  border-bottom: none;
  margin-top: 0.5rem;
}
.caesell-sidebar-cta-btn {
  display: block;
  text-align: center;
  background: var(--c-forest) !important;
  color: #fff !important;
  padding: 14px 24px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 1.25rem;
  transition: background 150ms ease, transform 150ms var(--ease-spring);
}
.caesell-sidebar-cta-btn:hover {
  background: #065c27 !important;
  transform: translateY(-1px);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .hero-left {
    flex: none !important;
    max-width: 100% !important;
    align-items: center;
    text-align: center;
  }
  .caesell-product-card { max-width: 100%; margin: 0 auto; }
  .hero-sub { max-width: 100%; }
  .hero-right { width: 100%; }
}

@media (max-width: 768px) {
  /* ── Fixed nav ── */
  .caesell-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 200;
  }
  .wp-site-blocks { padding-top: 68px; }

  /* ── Nav: hamburger only ── */
  .caesell-hamburger { display: flex !important; }
  .caesell-nav .wp-block-navigation { display: none !important; }
  .caesell-nav-wordmark { display: none !important; }
  .caesell-nav .caesell-nav-inner > .wp-block-group:last-child { display: none !important; }

  /* ── Hero: stack vertically ──
     WordPress renders the inner flex group with `is-nowrap` as an inline
     class, so we need !important to override it and force column layout. */
  .caesell-hero { min-height: unset !important; }

  .caesell-hero .is-layout-flex.alignwide,
  .caesell-hero .is-layout-flex.is-nowrap.alignwide {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    padding: 2.5rem 1.25rem !important;
    gap: 2rem !important;
  }

  /* ── Hero left: full width, centered ── */
  .hero-left {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Hero badge: center it */
  .caesell-badge {
    display: flex !important;
    justify-content: center;
  }

  /* Avatar + social proof: center */
  .caesell-social-proof {
    justify-content: center !important;
    flex-wrap: wrap !important;
    text-align: center;
  }

  /* Buttons: allow wrapping on very small screens */
  .caesell-hero .wp-block-buttons {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  /* ── Hero right: full width, hide complex card ──
     The Kanban product card is too wide for small screens; replace
     with just the AI illustration image instead. */
  .hero-right {
    width: 100% !important;
    flex: 0 0 100% !important;
    min-height: unset !important;
    align-items: center !important;
  }
  .caesell-product-card { display: none !important; }

  /* ── Other sections ── */
  .step-card::after { display: none; }

  /* Stack columns in card grids */
  .equal-cards.wp-block-columns {
    flex-direction: column !important;
  }
  .equal-cards.wp-block-columns > .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
  }
}

/* ================================================================
   EDITOR VISIBILITY
   ================================================================ */
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .fade-in,
.editor-styles-wrapper .slide-in-left,
.editor-styles-wrapper .slide-in-right {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll,
  .fade-up,
  .caesell-product-card,
  .caesell-badge {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
