/*
Theme Name: Atomcase
Theme URI: https://atomcase.com
Author: Atomcase
Author URI: https://atomcase.com
Description: Custom managed-IT theme for Atomcase — navy/amber palette, atom-mark branding, case-file design system.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atomcase
*/

  :root {
    --navy: #0B1220;
    --panel: #131B2E;
    --panel-2: #1B2540;
    --stroke: #26314D;
    --white: #F1F3F5;
    --slate: #8C96A8;
    --amber: #FF7A29;
    --amber-dim: #C2541A;
    --cyan: #4DD9E8;
  }

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

  body {
    background: var(--navy);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  h1, h2, h3, .display {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
  }

  .mono {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  a { color: inherit; text-decoration: none; }

  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

  /* ---------- ATOM MARK ---------- */
  .atom-mark { display: inline-block; }
  .atom-mark svg { display: block; }
  .nucleus { fill: var(--amber); }
  .orbit { fill: none; stroke: var(--cyan); stroke-width: 1.6; opacity: 0.85; }
  .electron { fill: var(--cyan); }

  @keyframes spin1 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  @keyframes spin2 { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

  .orbit-group-1 { transform-origin: 50% 50%; animation: spin1 7s linear infinite; }
  .orbit-group-2 { transform-origin: 50% 50%; animation: spin2 11s linear infinite; }

  @media (prefers-reduced-motion: reduce) {
    .orbit-group-1, .orbit-group-2 { animation: none; }
  }

  /* ---------- HEADER ---------- */
  header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11,18,32,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--stroke);
  }
  .nav-row {
    display: flex; align-items: center; justify-content: space-between;
    height: 84px;
  }
  .brand { display: flex; align-items: center; gap: 12px; }
  .brand .word { font-size: 20px; font-weight: 700; color: var(--white); }

  nav ul { list-style: none; display: flex; gap: 36px; }
  nav a {
    font-size: 14.5px; font-weight: 500; color: var(--slate);
    transition: color .2s ease;
  }
  nav a:hover { color: var(--white); }
  .nav-links { display: flex; align-items: center; gap: 36px; }

  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    border: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .btn-primary { background: var(--amber); color: #1A0D04; }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,122,41,0.28); }
  .btn-ghost { border: 1px solid var(--stroke); color: var(--white); background: transparent; }
  .btn-ghost:hover { border-color: var(--cyan); }

  /* ---------- HERO ---------- */
  .hero {
    padding: 110px 0 90px;
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
  }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; color: var(--cyan);
    padding: 6px 12px; border: 1px solid var(--stroke); border-radius: 100px;
    margin-bottom: 26px;
  }
  .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

  .hero h1 {
    font-size: 54px; line-height: 1.08; font-weight: 700; margin-bottom: 24px;
  }
  .hero h1 em {
    font-style: normal; color: var(--amber);
  }
  .hero p.lede {
    font-size: 18px; color: var(--slate); max-width: 460px; margin-bottom: 36px; line-height: 1.6;
  }
  .hero-ctas { display: flex; gap: 16px; align-items: center; }
  .hero-ctas .link-under {
    font-size: 14px; color: var(--white); border-bottom: 1px solid var(--stroke); padding-bottom: 3px;
  }

  .hero-visual {
    display: flex; align-items: center; justify-content: center;
    position: relative; height: 420px;
  }

  .case-tab {
    position: absolute;
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 12px;
  }
  .case-tab .k { color: var(--slate); font-size: 10.5px; }
  .case-tab .v { font-weight: 600; margin-top: 2px; }
  .case-tab.t1 { top: 6%; left: -4%; }
  .case-tab.t2 { bottom: 10%; right: -6%; }
  .case-tab.t3 { top: 46%; right: -14%; }

  /* ---------- TRUST BAR ---------- */
  .trust-bar {
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
    padding: 28px 0;
  }
  .trust-row {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  }
  .stat { display: flex; flex-direction: column; gap: 4px; }
  .stat .num { font-family: 'Space Grotesk'; font-size: 26px; font-weight: 700; color: var(--white); }
  .stat .lab { font-size: 12px; color: var(--slate); }

  /* ---------- SECTION HEADS ---------- */
  section { padding: 20px 0 !important; }
#why { margin-top: 20px; }
  .sec-head { max-width: 620px; margin-bottom: 56px; }
  .sec-head .tag { font-size: 12px; color: var(--amber); margin-bottom: 14px; margin-top: 50px;}
  .sec-head h2 { font-size: 36px; font-weight: 700; margin-bottom: 14px; }
  .sec-head p { color: var(--slate); font-size: 16px; line-height: 1.6; }

  /* ---------- CASE FILE CARDS (services) ---------- */
  .cases-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  }
  .case-card {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 28px 24px;
    transition: border-color .2s ease, transform .2s ease;
    position: relative;
    overflow: hidden;
  }
  .case-card:hover { border-color: var(--cyan); transform: translateY(-4px); }
  .case-card .file-no {
    font-size: 11px; color: var(--slate); margin-bottom: 18px; display: block;
  }
  .case-card h3 { font-size: 19px; margin-bottom: 10px; font-weight: 600; }
  .case-card p { font-size: 14px; color: var(--slate); line-height: 1.55; }
  .case-card .status {
    margin-top: 20px; display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; color: var(--cyan);
  }
  .case-card .status .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }

  /* ---------- WHY / DIFFERENTIATORS ---------- */
  .why {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  }
  .why-list { display: flex; flex-direction: column; gap: 28px; }
  .why-item { display: flex; gap: 18px; }
  .why-item .idx {
    font-family: 'IBM Plex Mono'; color: var(--amber); font-size: 13px; padding-top: 3px; min-width: 30px;
  }
  .why-item h4 { font-size: 17px; margin-bottom: 6px; font-weight: 600; }
  .why-item p { font-size: 14.5px; color: var(--slate); line-height: 1.55; }

  .why-visual {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 36px;
    height: 380px;
    display: flex; align-items: center; justify-content: center;
  }

  /* ---------- PROCESS ---------- */
  .process-steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    position: relative;
  }
  .process-steps::before {
    content: ''; position: absolute; top: 22px; left: 0; right: 0; height: 1px;
    background: var(--stroke);
  }
  .step { position: relative; padding-right: 20px; }
  .step .marker {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--panel); border: 1px solid var(--stroke);
    display: flex; align-items: center; justify-content: center;
    font-family: 'IBM Plex Mono'; font-size: 13px; color: var(--amber);
    margin-bottom: 22px; position: relative; z-index: 2;
  }
  .step h4 { font-size: 16px; margin-bottom: 8px; font-weight: 600; }
  .step p { font-size: 13.5px; color: var(--slate); line-height: 1.55; }

  /* ---------- TESTIMONIAL ---------- */
  .testimonial {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 56px;
    display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  }
  .testimonial blockquote {
    font-family: 'Space Grotesk'; font-size: 24px; font-weight: 500; line-height: 1.45;
  }
  .testimonial .who { margin-top: 20px; font-size: 13.5px; color: var(--slate); }
  .testimonial .who strong { color: var(--white); }

  /* ---------- FINAL CTA ---------- */
  .final-cta {
    background: linear-gradient(135deg, var(--panel-2), var(--navy));
    border: 1px solid var(--stroke);
    border-radius: 24px;
    padding: 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .final-cta h2 { font-size: 38px; margin-bottom: 16px; }
  .final-cta p { color: var(--slate); font-size: 16px; margin-bottom: 34px; }
  .final-cta .btn-primary { padding: 16px 32px; font-size: 15px; }

  /* ---------- FOOTER ---------- */
  footer {
    border-top: 1px solid var(--stroke);
    padding: 48px 0;
  }
  .footer-row {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  }
  .footer-row .mono { font-size: 12px; color: var(--slate); }

  @media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .why { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .testimonial { grid-template-columns: 1fr; text-align: left; }

    nav { display: none; }
    .hamburger { display: flex !important; }
    .nav-links .btn-ghost { display: none; }

    nav.mobile-open {
      display: block;
      position: absolute;
      top: 84px; left: 0; right: 0;
      background: var(--panel);
      border-bottom: 1px solid var(--stroke);
      padding: 12px 0;
      z-index: 100;
    }
    nav.mobile-open ul { flex-direction: column; gap: 0; }
    nav.mobile-open ul li { border-top: 1px solid var(--stroke); }
    nav.mobile-open ul li:first-child { border-top: none; }
    nav.mobile-open ul li a { display: block; padding: 16px 32px; }
  }

.hamburger {
    display: none !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-sizing: border-box !important;
  }
  .hamburger span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    min-width: 24px !important;
    min-height: 2px !important;
    background: var(--white) !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform .2s ease, opacity .2s ease;
  }
  .hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.is-open span:nth-child(2) { opacity: 0; }
  .hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Extra: services detail, blog, contact page styles ---------- */
.page-hero { padding: 72px 0 30px; }
.page-hero h1 { font-size: 44px; margin-bottom: 16px; }
.page-hero p { color: var(--slate); font-size: 17px; max-width: 560px; line-height: 1.6; }

.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding: 64px 0; border-bottom: 1px solid var(--stroke); }
.service-detail:last-of-type { border-bottom: none; }
.service-detail .num-big { font-family: 'Space Grotesk'; font-size: 15px; color: var(--amber); margin-bottom: 14px; }
.service-detail h2 { font-size: 30px; font-weight: 700; margin-bottom: 16px; }
.service-detail > div:first-child p.desc { color: var(--slate); font-size: 15.5px; line-height: 1.65; margin-bottom: 24px; }
.includes { display: flex; flex-direction: column; gap: 12px; }
.includes li { list-style: none; display: flex; gap: 10px; font-size: 14.5px; color: var(--white); align-items: flex-start; }
.includes li::before { content: '—'; color: var(--cyan); flex-shrink: 0; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 100px; }
.post-card { background: var(--panel); border: 1px solid var(--stroke); border-radius: 14px; padding: 30px 26px; display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease; text-decoration:none; }
.post-card:hover { border-color: var(--cyan); transform: translateY(-4px); }
.post-card .file-no { font-size: 11px; color: var(--slate); margin-bottom: 18px; }
.post-card h2 { font-size: 20px; font-weight: 600; margin-bottom: 12px; line-height: 1.3; }
.post-card p { font-size: 14px; color: var(--slate); line-height: 1.6; flex-grow: 1; margin-bottom: 20px; }
.post-card .read-link { font-size: 13.5px; color: var(--cyan); font-weight: 600; }

.post-hero { padding: 64px 0 20px; max-width: 760px; }
.post-hero .tag { color: var(--amber); font-size:12px; margin-bottom:18px; }
.post-hero h1 { font-size: 38px; line-height:1.2; margin-bottom: 18px; }
.entry-content { max-width: 720px; padding-bottom: 100px; }
.entry-content h2 { font-size: 26px; margin: 44px 0 16px; font-weight:700; }
.entry-content p { font-size: 16px; line-height: 1.75; color: var(--white); margin-bottom: 18px; }
.entry-content ul, .entry-content ol { margin: 0 0 18px 22px; }
.entry-content li { font-size: 15.5px; line-height: 1.7; color: var(--white); margin-bottom: 8px; }
.entry-content strong { color: var(--amber); }
.post-cta { background: var(--panel); border: 1px solid var(--stroke); border-radius: 16px; padding: 36px; margin-top: 40px; text-align: center; }
.post-cta p { color: var(--slate); margin-bottom: 20px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; padding-bottom: 100px; align-items: start; }
.contact-info-card { background: var(--panel); border: 1px solid var(--stroke); border-radius: 16px; padding: 32px; margin-bottom: 20px; }
.contact-info-card .k { font-size: 11px; color: var(--slate); margin-bottom: 6px; }
.contact-info-card .v { font-size: 16px; font-weight: 600; }
.form-card { background: var(--panel); border: 1px solid var(--stroke); border-radius: 16px; padding: 40px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 13px; color: var(--slate); margin-bottom: 8px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; background: var(--navy); border: 1px solid var(--stroke); border-radius: 8px; padding: 12px 14px; color: var(--white); font-family: 'Inter'; font-size: 14.5px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--cyan); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.submit-btn { width: 100%; padding: 14px; font-size: 15px; border:none; cursor:pointer; }
.form-success { background: var(--panel); border: 1px solid var(--cyan); border-radius: 16px; padding: 32px; text-align:center; margin-bottom:24px; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Industry landing pages ---------- */
.industry-hero { padding: 80px 0 50px; }
.industry-hero h1 { font-size: 46px; line-height: 1.1; margin-bottom: 20px; max-width: 700px; }
.industry-hero p.lede { color: var(--slate); font-size: 18px; max-width: 540px; line-height: 1.6; margin-bottom: 32px; }

.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px 0 90px; }
.pain-card { background: var(--panel); border: 1px solid var(--stroke); border-radius: 14px; padding: 26px 24px; }
.pain-card .file-no { font-size: 11px; color: var(--slate); margin-bottom: 16px; display:block; }
.pain-card h3 { font-size: 17px; margin-bottom: 10px; font-weight: 600; }
.pain-card p { font-size: 14px; color: var(--slate); line-height: 1.55; }

.fit-list { display: flex; flex-direction: column; gap: 10px; margin: 28px 0 40px; }
.fit-list li { list-style: none; display: flex; gap: 10px; font-size: 15px; }
.fit-list li::before { content: '✓'; color: var(--cyan); font-weight:700; }

@media (max-width: 900px) {
  .pain-grid { grid-template-columns: 1fr; }
}

/* ---------- Embedded assessment form (attention-grabbing, for landing pages) ---------- */
.assessment-block {
  position: relative;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 4px;
  margin: 30px 0 100px;
  overflow: hidden;
}
.assessment-block::before {
  content: '';
  position: absolute;
  inset: -2px;
  padding: 2px;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--amber), transparent 35%, transparent 65%, var(--cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}
.assessment-inner {
  position: relative;
  background: var(--panel);
  border-radius: 19px;
  padding: 52px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.assessment-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--amber);
  background: rgba(255,122,41,0.1);
  border: 1px solid rgba(255,122,41,0.35);
  padding: 6px 12px; border-radius: 100px;
  margin-bottom: 22px;
}
.assessment-badge .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,122,41,0.55); }
  50% { box-shadow: 0 0 0 6px rgba(255,122,41,0); }
}
.assessment-inner h2 { font-size: 30px; line-height: 1.15; margin-bottom: 16px; }
.assessment-inner .sub { color: var(--slate); font-size: 15px; line-height: 1.6; margin-bottom: 26px; }
.assessment-points { display: flex; flex-direction: column; gap: 12px; }
.assessment-points li { list-style: none; display: flex; gap: 10px; font-size: 14px; color: var(--white); }
.assessment-points li::before { content: '—'; color: var(--cyan); flex-shrink: 0; }

.assessment-form-card { background: var(--navy); border: 1px solid var(--stroke); border-radius: 16px; padding: 30px; }
.assessment-form-card .form-row { margin-bottom: 16px; }
.assessment-trust-line { text-align: center; font-size: 12px; color: var(--slate); margin-top: 14px; }

@media (max-width: 900px) {
  .assessment-inner { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 900px) {
  .hamburger { display: flex !important; }
}
