/*
Theme Name: Cronely Development
Theme URI: https://example.com/cronely-development
Author: OpenAI
Author URI: https://openai.com
Description: A modern WordPress theme for the Cronely Development agency.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cronely-development
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, portfolio
*/

:root {
  --bg: #0b1020;
  --bg-soft: #121932;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --text: #eef2ff;
  --muted: #b8c1ec;
  --primary: #7c3aed;
  --primary-2: #22d3ee;
  --accent: #f59e0b;
  --border: rgba(255,255,255,0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.25), transparent 30%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 25%),
    linear-gradient(180deg, #0b1020 0%, #0f172a 45%, #09101d 100%);
  color: var(--text);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }

body.light-theme {
  --bg: #f8fafc;
  --bg-soft: #eef2ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.10), transparent 25%),
    linear-gradient(180deg, #f8fafc 0%, #eef4ff 45%, #ffffff 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
.section {
  padding: 90px 0;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 14px;
}
.section-subtitle {
  max-width: 720px;
  color: var(--muted);
  margin: 0 0 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 16px 32px rgba(124, 58, 237, 0.35);
}
.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(18px);
  background: rgba(8, 13, 28, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}
.branding a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.3);
}
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-navigation a {
  color: var(--muted);
  font-weight: 600;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: #fff;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
}
.hero {
  padding: 90px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--primary-2);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: .95;
  margin: 0 0 20px;
  letter-spacing: -0.05em;
}
.hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.stat-card,
.card,
.service-card,
.project-card,
.contact-card,
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-card {
  padding: 20px;
}
.stat-card strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.hero-visual {
  position: relative;
}
.dashboard-mockup {
  padding: 28px;
  overflow: hidden;
}
.mockup-top {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.mockup-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
}
.mockup-screen {
  display: grid;
  gap: 18px;
}
.mockup-row,
.mockup-panel {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(34, 211, 238, 0.15));
  border: 1px solid rgba(255,255,255,0.08);
}
.mockup-row { height: 74px; }
.mockup-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
.mockup-panel.large { min-height: 260px; }
.mockup-panel.small { min-height: 260px; }
.grid-3,
.grid-2 {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card,
.project-card,
.post-card,
.contact-card,
.card { padding: 28px; }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124,58,237,.35), rgba(34,211,238,.25));
  margin-bottom: 18px;
  font-size: 1.35rem;
}
.service-card h3,
.project-card h3,
.post-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
}
.service-card p,
.project-card p,
.post-card p,
.contact-card p,
.card p,
.entry-summary,
.entry-content {
  color: var(--muted);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #dbe4ff;
  font-size: .92rem;
}
.process-steps {
  counter-reset: steps;
  display: grid;
  gap: 18px;
}
.process-step {
  position: relative;
  padding: 26px 26px 26px 88px;
}
.process-step::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.site-footer {
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.entry-header,
.page-header {
  padding: 70px 0 24px;
}
.entry-title,
.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 12px;
}
.entry-meta {
  color: var(--muted);
  font-size: .95rem;
}
.content-wrap {
  padding-bottom: 80px;
}
.wp-block-group,
.wp-block-columns,
.wp-block-image,
.wp-block-cover,
.wp-block-quote {
  margin-bottom: 1.5rem;
}
input, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: #fff;
}
textarea { min-height: 160px; }
button, input[type="submit"] {
  cursor: pointer;
  border: none;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}
.screen-reader-text { position:absolute; left:-9999px; }
.alignwide { width: min(100%, calc(var(--container) + 120px)); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

@media (max-width: 980px) {
  .hero-grid,
  .contact-box,
  .grid-3,
  .grid-2,
  .mockup-grid {
    grid-template-columns: 1fr;
  }
  .main-navigation {
    display: none;
    width: 100%;
  }
  .main-navigation.is-open { display: block; }
  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0 10px;
  }
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .section { padding: 70px 0; }
  .service-card,
  .project-card,
  .post-card,
  .contact-card,
  .card,
  .process-step { padding: 22px; }
  .process-step { padding-left: 22px; }
  .process-step::before {
    position: static;
    margin-bottom: 16px;
  }
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
}
.theme-toggle__text {
  font-size: .95rem;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.portfolio-thumb img,
.portfolio-featured-image img {
  width: 100%;
  display: block;
  border-radius: 18px;
}
.portfolio-featured-image {
  margin-bottom: 28px;
}
.contact-section-grid {
  align-items: start;
}
.contact-meta {
  margin-top: 24px;
}
.cronely-contact-form {
  display: grid;
  gap: 14px;
}
.cronely-contact-form label {
  font-weight: 700;
}
.contact-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
}
.contact-notice.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.contact-notice.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.portfolio-cta {
  margin-top: 32px;
}
body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
body.light-theme .site-footer {
  background: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
body.light-theme .main-navigation a,
body.light-theme .service-card p,
body.light-theme .project-card p,
body.light-theme .post-card p,
body.light-theme .contact-card p,
body.light-theme .card p,
body.light-theme .entry-summary,
body.light-theme .entry-content,
body.light-theme .entry-meta,
body.light-theme .section-subtitle {
  color: var(--muted);
}
body.light-theme .main-navigation .current-menu-item > a,
body.light-theme .main-navigation a:hover {
  color: var(--text);
}
body.light-theme .menu-toggle {
  color: var(--text);
}
@media (max-width: 980px) {
  .theme-toggle__text { display: none; }
}
