/*
Theme Name: Calorie Pirates
Theme URI: https://caloriepirates.app
Author: Calorie Pirates
Author URI: https://caloriepirates.app
Description: Official theme for Calorie Pirates - the swashbuckling calorie tracking app. Bold, playful, pirate-flavoured health & fitness.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: calorie-pirates
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --cp-black:       #0a0a0f;
  --cp-deep:        #0f0f1a;
  --cp-navy:        #13132b;
  --cp-surface:     #1a1a2e;
  --cp-surface-2:   #22223a;
  --cp-border:      #2e2e4a;
  --cp-gold:        #f5c842;
  --cp-gold-dark:   #c9980a;
  --cp-gold-light:  #fde68a;
  --cp-coral:       #ff6b4a;
  --cp-teal:        #2dd4bf;
  --cp-text:        #f0eefc;
  --cp-text-muted:  #9896b8;
  --cp-text-faint:  #5a587a;
  --cp-white:       #ffffff;
  --font-display:   'Pirata One', 'Cinzel Decorative', cursive;
  --font-heading:   'Exo 2', sans-serif;
  --font-body:      'DM Sans', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2.5rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;
  --radius-sm:  0.375rem;
  --radius-md:  0.75rem;
  --radius-lg:  1.25rem;
  --radius-xl:  2rem;
  --radius-pill: 999px;
  --shadow-glow-gold:  0 0 40px rgba(245, 200, 66, 0.25);
  --shadow-glow-teal:  0 0 40px rgba(45, 212, 191, 0.2);
  --shadow-card:       0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-deep:       0 20px 60px rgba(0, 0, 0, 0.6);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --transition:  0.25s var(--ease-out);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background-color: var(--cp-black);
  color: var(--cp-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: 72px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cp-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cp-gold-light); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--cp-text); }
p { margin-bottom: var(--space-md); color: var(--cp-text-muted); }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: var(--space-lg); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: var(--cp-gold);
  text-shadow: 0 0 60px rgba(245, 200, 66, 0.4), 2px 4px 0 rgba(0,0,0,0.5);
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.section-title { font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.section-subtitle { font-size: 1.125rem; color: var(--cp-text-muted); max-width: 600px; }
.eyebrow { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cp-gold); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }
.container--narrow { max-width: 800px; }
.container--wide   { max-width: 1440px; }
.section     { padding: var(--space-3xl) 0; }
.section--sm { padding: var(--space-2xl) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: 0.8rem 1.75rem; border-radius: var(--radius-pill);
  font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.03em; border: none; cursor: pointer;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.btn::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.1); opacity: 0; transition: opacity var(--transition); }
.btn:hover::before { opacity: 1; }

.btn-primary { background: linear-gradient(135deg, var(--cp-gold) 0%, var(--cp-coral) 100%); color: var(--cp-black); box-shadow: 0 4px 20px rgba(245,200,66,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245,200,66,0.5); color: var(--cp-black); }

.btn-secondary { background: transparent; color: var(--cp-gold); border: 2px solid var(--cp-gold); }
.btn-secondary:hover { background: var(--cp-gold); color: var(--cp-black); transform: translateY(-2px); }

.btn-ghost { background: rgba(255,255,255,0.05); color: var(--cp-text); border: 1px solid var(--cp-border); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--cp-gold); color: var(--cp-gold); }

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card { background: var(--cp-surface); border: 1px solid var(--cp-border); border-radius: var(--radius-lg); padding: var(--space-xl); transition: all var(--transition); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--cp-gold), var(--cp-coral)); opacity: 0; transition: opacity var(--transition); }
.card:hover { border-color: rgba(245,200,66,0.3); transform: translateY(-4px); box-shadow: var(--shadow-card), var(--shadow-glow-gold); }
.card:hover::before { opacity: 1; }
.card__icon  { font-size: 2.5rem; margin-bottom: var(--space-md); display: block; }
.card__title { font-size: 1.2rem; font-weight: 700; margin-bottom: var(--space-sm); color: var(--cp-text); }
.card__body  { font-size: 0.95rem; color: var(--cp-text-muted); line-height: 1.6; }

/* ============================================================
   BADGES
   ============================================================ */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.85rem; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 600; font-family: var(--font-heading); letter-spacing: 0.05em; }
.badge-gold  { background: rgba(245,200,66,0.15); color: var(--cp-gold);  border: 1px solid rgba(245,200,66,0.3); }
.badge-teal  { background: rgba(45,212,191,0.1);  color: var(--cp-teal);  border: 1px solid rgba(45,212,191,0.25); }
.badge-coral { background: rgba(255,107,74,0.1);  color: var(--cp-coral); border: 1px solid rgba(255,107,74,0.25); }

/* ============================================================
   HEADER & NAV
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), border-color var(--transition);
}

#site-header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--cp-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; flex-shrink: 0; }
.nav-logo img { width: 40px; height: 40px; object-fit: contain; }
.nav-logo-text { font-family: var(--font-display); font-size: 1.35rem; color: var(--cp-gold); text-shadow: 0 0 20px rgba(245,200,66,0.4); }

/* Hamburger — HIDDEN on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1100;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cp-gold); transition: all var(--transition); }

/* Desktop nav — horizontal row */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600;
  color: var(--cp-text-muted); letter-spacing: 0.03em;
  transition: color var(--transition); position: relative; white-space: nowrap;
}
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--cp-gold); transform: scaleX(0); transition: transform var(--transition); }
.nav-links a:hover,
.nav-links a.current-menu-item { color: var(--cp-gold); }
.nav-links a:hover::after,
.nav-links a.current-menu-item::after { transform: scaleX(1); }

/* Mobile nav — hamburger visible, links hidden until .open */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-2xl);
    overflow-y: auto;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; text-align: center; }
  .nav-links a  { font-size: 1.4rem; font-weight: 700; display: block; padding: var(--space-sm) 0; }
}

/* Admin bar */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #site-header { top: 46px; } }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: var(--cp-deep); border-top: 1px solid var(--cp-border); padding: var(--space-3xl) 0 var(--space-xl); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-2xl); margin-bottom: var(--space-2xl); }
.footer-brand p { font-size: 0.9rem; margin-top: var(--space-md); max-width: 280px; }
.footer-col h4 { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cp-gold); margin-bottom: var(--space-lg); }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col ul a { font-size: 0.9rem; color: var(--cp-text-muted); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--cp-gold); }
.footer-bottom { border-top: 1px solid var(--cp-border); padding-top: var(--space-xl); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md); }
.footer-bottom p { font-size: 0.85rem; color: var(--cp-text-faint); margin: 0; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 72px; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(245,200,66,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(45,212,191,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 10%, rgba(255,107,74,0.04) 0%, transparent 60%);
}
.hero__stars { position: absolute; inset: 0; overflow: hidden; }
.hero__content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: center; padding: var(--space-3xl) 0; }
.hero__eyebrow { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.hero__title   { margin-bottom: var(--space-lg); }
.hero__subtitle { font-size: 1.2rem; line-height: 1.7; color: var(--cp-text-muted); margin-bottom: var(--space-xl); max-width: 480px; }
.hero__actions  { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.hero__visual   { display: flex; justify-content: center; align-items: center; position: relative; }
.hero__logo-wrap { position: relative; width: 320px; height: 320px; }
.hero__logo-wrap::before { content: ''; position: absolute; inset: -20px; border-radius: 50%; background: radial-gradient(circle, rgba(245,200,66,0.15) 0%, transparent 70%); animation: pulse-glow 3s ease-in-out infinite; }
.hero__logo { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 40px rgba(245,200,66,0.4)); animation: float 4s ease-in-out infinite; }
.hero__logo2 {
    width: 100% !important;
    max-width: 1000px !important;   /* ← increase this number */
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

  .hero__logo-wrap2,
.hero__visual2 {
    width: 100% !important;
    max-width: 1100px !important;   /* make container bigger */
    margin: 0 auto !important;
}

@media (max-width: 900px) {
  .hero__content { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { max-width: 100%; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__logo-wrap { width: 320px; height: 320px; }
  .hero__eyebrow { justify-content: center; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.feature-card { background: var(--cp-surface); border: 1px solid var(--cp-border); border-radius: var(--radius-lg); padding: var(--space-xl); transition: all var(--transition); position: relative; overflow: hidden; }
.feature-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--cp-gold), var(--cp-teal)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.feature-card:hover { border-color: rgba(245,200,66,0.25); transform: translateY(-6px); box-shadow: var(--shadow-card); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon  { font-size: 2.75rem; margin-bottom: var(--space-md); display: block; filter: drop-shadow(0 4px 12px rgba(245,200,66,0.3)); }
.feature-title { font-size: 1.15rem; font-weight: 700; margin-bottom: var(--space-sm); }
.feature-desc  { font-size: 0.9rem; color: var(--cp-text-muted); line-height: 1.65; }
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); align-items: start; }
.pricing-card { background: var(--cp-surface); border: 1px solid var(--cp-border); border-radius: var(--radius-xl); padding: var(--space-xl); position: relative; transition: all var(--transition); }
.pricing-card--featured { background: linear-gradient(160deg, var(--cp-surface-2) 0%, var(--cp-navy) 100%); border-color: rgba(245,200,66,0.4); box-shadow: var(--shadow-glow-gold); transform: scale(1.04); }
.pricing-card__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.pricing-card__name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--cp-text-muted); margin-bottom: var(--space-md); text-transform: uppercase; letter-spacing: 0.08em; }
.pricing-card__price { display: flex; align-items: baseline; gap: 0.25rem; margin-bottom: var(--space-lg); }
.price-amount { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; color: var(--cp-gold); line-height: 1; }
.price-period { font-size: 0.9rem; color: var(--cp-text-faint); }
.pricing-features { list-style: none; padding: 0; margin: var(--space-lg) 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.pricing-features li { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.9rem; color: var(--cp-text-muted); }
.pricing-features li::before { content: '⚓'; font-size: 0.8rem; flex-shrink: 0; }
.pricing-features li.disabled { opacity: 0.35; text-decoration: line-through; }
.pricing-grid2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);   /* or simply: 1fr */
    gap: var(--space-lg);
    align-items: start;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } .pricing-card--featured { transform: scale(1); } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card { background: var(--cp-surface); border: 1px solid var(--cp-border); border-radius: var(--radius-lg); padding: var(--space-xl); }
.testimonial-quote { font-size: 1.05rem; font-style: italic; color: var(--cp-text); line-height: 1.7; margin-bottom: var(--space-lg); position: relative; padding-left: var(--space-lg); }
.testimonial-quote::before { content: '"'; position: absolute; left: 0; top: -0.25rem; font-family: var(--font-display); font-size: 3rem; color: var(--cp-gold); line-height: 1; opacity: 0.6; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-md); }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--cp-gold), var(--cp-coral)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; color: var(--cp-black); flex-shrink: 0; }
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--cp-text); }
.testimonial-meta { font-size: 0.8rem; color: var(--cp-text-faint); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header .eyebrow { margin-bottom: var(--space-sm); }
.section-header .section-title { margin-bottom: var(--space-md); }
.divider { width: 60px; height: 3px; background: linear-gradient(90deg, var(--cp-gold), var(--cp-coral)); border-radius: var(--radius-pill); margin: var(--space-lg) auto 0; }

/* ============================================================
   BLOG / POSTS
   ============================================================ */
.post-card { background: var(--cp-surface); border: 1px solid var(--cp-border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.post-card:hover { border-color: rgba(245,200,66,0.3); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.post-card__thumbnail { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--cp-surface-2); }
.post-card__thumbnail-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--cp-surface-2), var(--cp-navy)); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.post-card__body    { padding: var(--space-lg); }
.post-card__meta    { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); font-size: 0.8rem; color: var(--cp-text-faint); }
.post-card__title   { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-sm); color: var(--cp-text); transition: color var(--transition); }
.post-card:hover .post-card__title { color: var(--cp-gold); }
.post-card__excerpt { font-size: 0.875rem; color: var(--cp-text-muted); line-height: 1.6; margin-bottom: var(--space-md); }

.single-post { padding-top: calc(72px + var(--space-3xl)); }
.single-post__title { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: var(--space-lg); }
.post-content { font-size: 1.05rem; line-height: 1.85; color: var(--cp-text-muted); }
.post-content h2 { font-size: 1.6rem; color: var(--cp-text); margin: var(--space-2xl) 0 var(--space-md); }
.post-content h3 { font-size: 1.25rem; color: var(--cp-gold); margin: var(--space-xl) 0 var(--space-sm); }
.post-content p  { margin-bottom: var(--space-lg); }
.post-content a  { color: var(--cp-gold); text-decoration: underline; text-decoration-color: rgba(245,200,66,0.4); }
.post-content ul, .post-content ol { margin-bottom: var(--space-lg); color: var(--cp-text-muted); }
.post-content li { margin-bottom: var(--space-sm); }
.post-content blockquote { border-left: 3px solid var(--cp-gold); padding-left: var(--space-lg); margin: var(--space-xl) 0; font-style: italic; color: var(--cp-text); }
.post-content img { border-radius: var(--radius-md); margin: var(--space-xl) 0; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form .form-group { margin-bottom: var(--space-lg); }
.contact-form label { display: block; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--cp-text-muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: var(--space-sm); }
.contact-form input,
.contact-form textarea,
.contact-form select { width: 100%; background: var(--cp-surface); border: 1px solid var(--cp-border); border-radius: var(--radius-md); padding: 0.85rem 1rem; font-family: var(--font-body); font-size: 1rem; color: var(--cp-text); transition: border-color var(--transition), box-shadow var(--transition); outline: none; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--cp-gold); box-shadow: 0 0 0 3px rgba(245,200,66,0.1); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--cp-text-faint); }
.contact-form textarea { min-height: 160px; resize: vertical; }
.comment-form input,
.comment-form textarea,
.search-form input { background: var(--cp-surface); border: 1px solid var(--cp-border); border-radius: var(--radius-md); padding: 0.75rem 1rem; color: var(--cp-text); font-family: var(--font-body); width: 100%; outline: none; }
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--cp-gold); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { background: linear-gradient(135deg, var(--cp-navy) 0%, var(--cp-deep) 100%); border: 1px solid var(--cp-border); border-radius: var(--radius-xl); padding: var(--space-3xl); text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(245,200,66,0.06) 0%, transparent 70%); pointer-events: none; }
.cta-section .display-title { font-size: clamp(2rem, 5vw, 3.5rem); }
.store-badges { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; margin-top: var(--space-xl); }
.store-badge { display: flex; align-items: center; gap: var(--space-sm); padding: 0.75rem 1.5rem; background: var(--cp-surface-2); border: 1px solid var(--cp-border); border-radius: var(--radius-md); color: var(--cp-text); font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; transition: all var(--transition); }
.store-badge:hover { border-color: var(--cp-gold); color: var(--cp-gold); background: rgba(245,200,66,0.05); }

/* ============================================================
   PAGE HEROES
   ============================================================ */
.about-hero { padding: calc(72px + var(--space-3xl)) 0 var(--space-3xl); }
.page-hero { padding: calc(72px + var(--space-2xl)) 0 var(--space-2xl); text-align: center; background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(245,200,66,0.06) 0%, transparent 60%); border-bottom: 1px solid var(--cp-border); margin-bottom: var(--space-2xl); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.content-sidebar-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-2xl); align-items: start; }
@media (max-width: 900px) { .content-sidebar-layout { grid-template-columns: 1fr; } }
.sidebar-widget { background: var(--cp-surface); border: 1px solid var(--cp-border); border-radius: var(--radius-lg); padding: var(--space-lg); margin-bottom: var(--space-lg); }
.sidebar-widget h3 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cp-gold); margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--cp-border); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); margin-top: var(--space-2xl); }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-md); font-weight: 700; font-size: 0.9rem; background: var(--cp-surface); border: 1px solid var(--cp-border); color: var(--cp-text-muted); transition: all var(--transition); }
.pagination a:hover { border-color: var(--cp-gold); color: var(--cp-gold); }
.pagination .current { background: var(--cp-gold); color: var(--cp-black); border-color: var(--cp-gold); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gold { color: var(--cp-gold); } .text-teal { color: var(--cp-teal); } .text-coral { color: var(--cp-coral); } .text-muted { color: var(--cp-text-muted); }
.text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; }
.mt-sm { margin-top: var(--space-sm); } .mt-md { margin-top: var(--space-md); } .mt-lg { margin-top: var(--space-lg); } .mt-xl { margin-top: var(--space-xl); } .mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); } .mb-md { margin-bottom: var(--space-md); } .mb-lg { margin-bottom: var(--space-lg); } .mb-xl { margin-bottom: var(--space-xl); } .mb-2xl { margin-bottom: var(--space-2xl); }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--space-sm); } .gap-md { gap: var(--space-md); } .gap-lg { gap: var(--space-lg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   WORDPRESS
   ============================================================ */
.wp-block-image img { border-radius: var(--radius-md); }
.wp-caption { color: var(--cp-text-faint); font-size: 0.85rem; }
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #site-header { top: 46px; } }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-up    { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in    { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse-glow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.7; } }
@keyframes float      { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes star-twinkle { 0%, 100% { opacity: 0.2; transform: scale(1); } 50% { opacity: 1; transform: scale(1.5); } }

.animate-fade-up         { animation: fade-up 0.7s var(--ease-out) both; }
.animate-fade-up-delay-1 { animation-delay: 0.1s; }
.animate-fade-up-delay-2 { animation-delay: 0.2s; }
.animate-fade-up-delay-3 { animation-delay: 0.3s; }
.animate-fade-up-delay-4 { animation-delay: 0.4s; }

/* ============================================================
   COMMENTS
   ============================================================ */
.cp-comments {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--cp-border);
}
 
.cp-comments__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cp-text);
  margin-bottom: var(--space-xl);
}
 
/* Comment list */
.cp-comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
 
.cp-comment {
  background: var(--cp-surface);
  border: 1px solid var(--cp-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--transition);
}
 
.cp-comment:hover {
  border-color: rgba(245, 200, 66, 0.2);
}
 
/* Nested replies */
.cp-comment .children {
  list-style: none;
  padding: 0;
  margin-top: var(--space-lg);
  padding-left: var(--space-lg);
  border-left: 2px solid var(--cp-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
 
.cp-comment__inner {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
 
.cp-comment__avatar {
  flex-shrink: 0;
}
 
.cp-comment__avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--cp-border);
}
 
.cp-comment__body {
  flex: 1;
  min-width: 0;
}
 
.cp-comment__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
 
.cp-comment__author a,
.cp-comment__author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cp-gold);
  text-decoration: none;
}
 
.cp-comment__date a,
.cp-comment__date {
  font-size: 0.8rem;
  color: var(--cp-text-faint);
  text-decoration: none;
}
 
.cp-comment__date a:hover {
  color: var(--cp-text-muted);
}
 
.cp-comment__pending {
  font-size: 0.75rem;
  color: var(--cp-coral);
  background: rgba(255, 107, 74, 0.1);
  border: 1px solid rgba(255, 107, 74, 0.25);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.6rem;
}
 
.cp-comment__text {
  font-size: 0.95rem;
  color: var(--cp-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}
 
.cp-comment__text p:last-child { margin-bottom: 0; }
 
.cp-comment__actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}
 
.cp-comment__actions a {
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--cp-text-faint);
  transition: color var(--transition);
}
 
.cp-comment__actions a:hover {
  color: var(--cp-gold);
}
 
/* Pagination */
.cp-comments__pagination {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}
 
.cp-comments__pagination a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cp-gold);
}
 
/* Closed / protected */
.cp-comments-closed,
.cp-comments-protected {
  font-size: 0.9rem;
  color: var(--cp-text-faint);
  font-style: italic;
  margin-bottom: var(--space-xl);
}
 
/* Comment form */
.cp-comment-form__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cp-text);
  margin-bottom: var(--space-xl);
}
 
.cp-comment-form .cp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
 
@media (max-width: 640px) {
  .cp-comment-form .cp-form-row { grid-template-columns: 1fr; }
}
 
.cp-comment-form .cp-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
 
.cp-comment-form label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cp-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
 
.cp-comment-form .required {
  color: var(--cp-coral);
  margin-left: 2px;
}
 
.cp-comment-form input[type="text"],
.cp-comment-form input[type="email"],
.cp-comment-form textarea {
  background: var(--cp-surface);
  border: 1px solid var(--cp-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cp-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
 
.cp-comment-form input:focus,
.cp-comment-form textarea:focus {
  border-color: var(--cp-gold);
  box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.1);
}
 
.cp-comment-form input::placeholder,
.cp-comment-form textarea::placeholder {
  color: var(--cp-text-faint);
}
 
.cp-comment-form textarea {
  min-height: 160px;
  resize: vertical;
}
 
.cp-form-cookies {
  font-size: 0.85rem;
  color: var(--cp-text-faint);
  margin-bottom: var(--space-lg);
}
 
.cp-form-cookies label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
 
.cp-form-cookies input[type="checkbox"] {
  accent-color: var(--cp-gold);
  width: 16px;
  height: 16px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 15px;
}

.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 15px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}


.captains-log .wp-block-post {
    background: #1f1f1f;
    border: 1px solid #3a2f1e;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.captains-log .wp-block-post:hover {
    border-color: #F2C74D;
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.5);
}

.captains-log .wp-block-post-featured-image img {
    transition: transform 0.5s ease;
}

.captains-log .wp-block-post:hover img {
    transform: scale(1.08);
}

.captains-log .wp-block-post-title a {
    color: #F2C74D;
}

.captains-log .wp-block-post-excerpt {
    color: #bbbbbb;
}