/*
Theme Name: Crowelo
Theme URI: https://crowelo.com
Author: Crowelo
Version: 6.0.0
Text Domain: crowelo
*/

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

:root {
  --dark: #1a1a2e;
  --text: #3a3a4f;
  --muted: #8a8a9c;
  --white: #faf8f5;
  --pure-white: #fff;
  --cream: #f0ede6;
  --accent: #ff6b4a;
  --accent-dark: #e8553a;
  --accent-light: #fff0ec;
  --border: #ddd8cf;
  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --r: 0;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font); color: var(--text);
  background: var(--white); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { color: var(--dark); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

.wrap { max-width: 1140px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
@media (max-width: 600px) { .wrap { padding-left: 20px; padding-right: 20px; } }

/* ===== NAV ===== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 2px solid var(--dark);
}
.site-header .container {
  max-width: 1140px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-size: 22px; font-weight: 800; color: var(--dark);
  letter-spacing: -.5px;
}
.main-nav ul {
  list-style: none; display: flex; gap: 8px; align-items: center;
}
.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 8px 16px; transition: all .2s; position: relative;
}
.main-nav a:hover {
  color: var(--dark); background: var(--cream);
}
.main-nav .current-menu-item a {
  color: var(--dark); font-weight: 700;
}
.main-nav li:last-child a {
  background: var(--accent); color: var(--pure-white);
  padding: 10px 28px; font-weight: 700;
  border: 2px solid var(--accent);
}
.main-nav li:last-child a:hover {
  background: var(--accent-dark); border-color: var(--accent-dark);
  color: var(--pure-white);
}

.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 6px 0; }
@media (max-width: 768px) {
  .site-header .container { padding: 0 20px; }
  .menu-toggle { display: block; }
  .main-nav ul {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 2px solid var(--dark);
    padding: 12px 20px;
  }
  .main-nav.open ul { display: flex; }
  .main-nav a { padding: 14px 16px; display: block; font-size: 16px; width: 100%; }
  .main-nav li:last-child a { display: inline-block; margin-top: 8px; text-align: center; }
}

/* ===== HERO — treize style, big mixed text ===== */
.hero { padding: 100px 0 80px; min-height: 80vh; display: flex; align-items: center; }
.hero-content h1 {
  font-size: clamp(42px, 7vw, 82px); font-weight: 800;
  line-height: 1.05; letter-spacing: -2.5px;
}
.hero-content h1 .em {
  color: var(--accent);
}
.hero-content h1 .light {
  font-weight: 400; color: var(--muted);
}
.hero-tagline {
  margin-top: 32px; font-size: 18px; color: var(--muted);
  line-height: 1.65; max-width: 480px;
}
.hero-btns { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 64px; display: flex; gap: 48px;
}
.hero-meta-item { }
.hero-meta-item .label { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.hero-meta-item .value { font-size: 15px; font-weight: 700; color: var(--dark); }

@media (max-width: 600px) {
  .hero { padding: 60px 0 40px; min-height: auto; }
  .hero-meta { flex-direction: column; gap: 20px; margin-top: 40px; }
}

/* ===== SECTION LABEL (treize /style) ===== */
.section-label {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  margin-bottom: 20px; font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 16px 36px;
  font-size: 15px; font-weight: 700; 
  cursor: pointer; transition: all .2s; border: none; font-family: var(--font);
}
.btn-primary { background: var(--dark); color: var(--pure-white); }
.btn-primary:hover { background: #2a2a45; color: var(--pure-white); }
.btn-ghost { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--dark); }

/* ===== EXPERTISE SECTION ===== */
.expertise { padding: 100px 0; }
.expertise h2 {
  font-size: clamp(30px, 4.5vw, 48px); font-weight: 800;
  letter-spacing: -1px; line-height: 1.15; max-width: 700px;
  margin-bottom: 24px;
}
.expertise-text {
  font-size: 17px; color: var(--muted); line-height: 1.75;
  max-width: 580px; margin-bottom: 32px;
}
.expertise-link {
  font-weight: 700; color: var(--dark); font-size: 15px;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
  transition: color .2s;
}
.expertise-link:hover { color: var(--accent); }

/* ===== SERVICES GRID ===== */
.services { padding: 80px 0 100px; }
.services h2 {
  font-size: clamp(30px, 4.5vw, 48px); font-weight: 800;
  letter-spacing: -1px; margin-bottom: 48px;
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.svc-card {
  background: var(--cream); padding: 36px 28px; 
  transition: transform .25s ease, box-shadow .25s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.06); }
.svc-card .num {
  display: inline-block; background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  width: 32px; height: 32px; line-height: 32px; text-align: center;
   margin-bottom: 20px;
}
.svc-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; letter-spacing: -.3px; }
.svc-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ===== CLIENTS ===== */
.clients { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.clients-inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; justify-content: center; }
.clients-inner span {
  font-size: 18px; font-weight: 800; color: #d0cdc6;
  letter-spacing: -.3px; transition: color .2s; cursor: default;
}
.clients-inner span:hover { color: var(--dark); }

/* ===== ABOUT BLOCK ===== */
.about-block { padding: 100px 0; }
.about-block h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  letter-spacing: -1px; line-height: 1.2; max-width: 650px;
  margin-bottom: 24px;
}
.about-text {
  font-size: 17px; color: var(--muted); line-height: 1.75;
  max-width: 560px; margin-bottom: 28px;
}

/* ===== STATS ===== */
.stats { padding: 72px 0; background: var(--dark); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stats .num { font-size: clamp(40px, 5vw, 60px); font-weight: 800; color: var(--accent); letter-spacing: -2px; line-height: 1; margin-bottom: 8px; }
.stats .lab { font-size: 14px; color: #999; }
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ===== PROJECTS ===== */
.projects { padding: 100px 0; }
.projects h2 {
  font-size: clamp(30px, 4.5vw, 48px); font-weight: 800;
  letter-spacing: -1px; margin-bottom: 40px;
}
.proj-list {}
.proj-row {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  transition: padding-left .3s ease;
}
.proj-row:first-child { border-top: 1px solid var(--border); }
.proj-row:hover { padding-left: 12px; }
.proj-row .idx { font-family: var(--mono); font-size: 13px; color: var(--muted); width: 36px; flex-shrink: 0; }
.proj-row h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 700; letter-spacing: -.3px; flex: 1; }
.proj-row .cat { background: var(--accent-light); color: var(--accent); padding: 5px 14px;  font-size: 12px; font-weight: 600; flex-shrink: 0; }
@media (max-width: 600px) { .proj-row .idx { display: none; } .proj-row { flex-wrap: wrap; gap: 6px; } .proj-row .cat { order: -1; } }

/* ===== MARQUEE CTA (treize style) ===== */
.marquee-cta {
  display: block; background: var(--accent); overflow: hidden;
  white-space: nowrap; padding: 28px 0; cursor: pointer;
  transition: background .2s;
}
.marquee-cta:hover { background: var(--accent-dark); }
.marquee-cta .track {
  display: inline-flex; animation: scroll 16s linear infinite;
}
.marquee-cta span {
  font-size: clamp(28px, 4vw, 48px); font-weight: 800;
  color: #fff; padding: 0 40px; flex-shrink: 0;
  letter-spacing: -1px;
}
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== TOP MARQUEE (smaller) ===== */
.marquee-sm {
  overflow: hidden; white-space: nowrap;
  border-bottom: 1px solid var(--border); padding: 10px 0;
}
.marquee-sm .track { display: inline-flex; animation: scroll 30s linear infinite; }
.marquee-sm span {
  font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 0 24px; flex-shrink: 0;
}

/* ===== PAGE ===== */
.page-header-brutal { padding: 72px 0 40px; }
.page-header-brutal h1 {
  font-size: clamp(36px, 5.5vw, 64px); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.1;
}
.page-content { max-width: 660px; margin: 0 auto; padding: 40px 40px 100px; font-size: 17px; line-height: 1.8; }
.page-content h2 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin: 48px 0 12px; }
.page-content p { margin-bottom: 20px; }
.page-content a { color: var(--dark); font-weight: 700; border-bottom: 2px solid var(--accent); }
.page-content a:hover { color: var(--accent); }
.page-content strong { color: var(--dark); font-weight: 800; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--border); padding: 36px 40px; text-align: center; }
.footer-nav { margin-bottom: 12px; }
.footer-nav ul { list-style: none; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; font-weight: 500; color: var(--muted); }
.footer-nav a:hover { color: var(--dark); }
.site-footer p { font-size: 12px; color: #c0bdb5; }

/* ===== INLINE EDITOR ===== */
.crowelo-edit-bar { position: fixed; bottom: 20px; right: 20px; z-index: 9999; background: var(--dark); color: #fff; padding: 10px 20px;  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.crowelo-edit-bar button { background: var(--accent); color: #fff; border: none; padding: 8px 18px;  cursor: pointer; font-weight: 700; font-size: 12px; }
.crowelo-edit-bar button:hover { background: var(--accent-dark); }
.crowelo-edit-bar button.cancel { background: transparent; border: 1.5px solid #555; color: #fff;  }
[data-editable] { position: relative; }
body.editing [data-editable]:hover { outline: 2px dashed var(--accent); outline-offset: 6px; cursor: text; }
body.editing [data-editable]:focus { outline: 2px solid var(--accent); outline-offset: 6px; }
body.editing [data-editable-link]:hover { outline: 2px dashed var(--accent-dark); outline-offset: 4px; }
.link-editor-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #fff; padding: 32px;  box-shadow: 0 20px 60px rgba(0,0,0,.12); z-index: 10000; min-width: 400px; }
.link-editor-popup h4 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.link-editor-popup label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--muted); }
.link-editor-popup input { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);  font-size: 15px; margin-bottom: 12px; font-family: var(--font); }
.link-editor-popup input:focus { outline: none; border-color: var(--accent); }
.link-editor-popup .popup-btns { display: flex; gap: 8px; justify-content: flex-end; }
.link-editor-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 9999; }


/* ===== BLOG LIST (row style like projects) ===== */
.blog-list {}
.blog-row {
  display: block; padding: 32px 0;
  border-bottom: 2px solid var(--border);
  transition: padding-left .3s ease;
  color: var(--text);
}
.blog-row:first-child { border-top: 2px solid var(--border); }
.blog-row:hover { padding-left: 12px; }
.blog-row-meta {
  display: flex; gap: 16px; align-items: center; margin-bottom: 10px;
}
.blog-date {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.blog-cat {
  background: var(--accent-light); color: var(--accent);
  padding: 3px 12px; font-size: 12px; font-weight: 600;
}
.blog-row-title {
  font-size: clamp(20px, 3vw, 28px); font-weight: 800;
  letter-spacing: -.5px; color: var(--dark); margin-bottom: 8px;
  transition: color .2s;
}
.blog-row:hover .blog-row-title { color: var(--accent); }
.blog-row-excerpt {
  font-size: 15px; color: var(--muted); line-height: 1.6;
  max-width: 600px;
}

/* ===== SINGLE POST META ===== */
.post-meta-top {
  display: flex; gap: 16px; align-items: center; margin-bottom: 20px;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.post-cat {
  background: var(--accent-light); color: var(--accent);
  padding: 3px 12px; font-size: 12px; font-weight: 600;
  font-family: var(--font);
}
