/* =========================================================
   IDEAL SOFTWARES — Design System
   Blueprint / Spec-sheet visual language
   ========================================================= */

:root {
  /* Color tokens */
  --ink:        #0D1321;
  --ink-soft:   #161f36;
  --paper:      #F6F7FA;
  --paper-dim:  #ECEEF3;
  --white:      #FFFFFF;
  --slate:      #5B6472;
  --slate-dim:  #8991A0;
  --blueprint:  #2E4FAC;
  --blueprint-light: #4E6FD1;
  --amber:      #FF9F1C;
  --amber-dark: #E88600;
  --green:      #2FA84F;
  --border:     #DDE1E9;
  --border-dark: rgba(255,255,255,0.14);

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Rhythm */
  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(13,19,33,0.04), 0 8px 24px rgba(13,19,33,0.06);
  --shadow-lift: 0 20px 40px rgba(13,19,33,0.14);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.4rem; line-height: 1.3; }

p { color: var(--slate); }

a { text-decoration: none; color: var(--blueprint); }
a:hover { color: var(--blueprint-light); }

::selection { background: var(--amber); color: var(--ink); }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.container-narrow { max-width: 900px; margin: 0 auto; }

/* =========================================================
   Utility: monospace spec labels (signature element)
   ========================================================= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blueprint);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--amber);
  display: inline-block;
}
.eyebrow.on-dark { color: #9DB2F2; }

.spec-row {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--slate-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  text-transform: uppercase;
}
.spec-row b { color: var(--ink); font-weight: 600; }

.status-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28em 0.7em;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  border: 1px solid var(--border);
  color: var(--slate);
}
.status-tag.live { color: var(--green); border-color: rgba(47,168,79,0.3); background: rgba(47,168,79,0.07); }
.status-tag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(47,168,79,0.18); }

/* =========================================================
   Blueprint grid background (dark sections)
   ========================================================= */
.blueprint-bg {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  position: relative;
  color: var(--white);
}
.blueprint-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 10%, rgba(46,79,172,0.35), transparent 60%);
  pointer-events: none;
}
.blueprint-bg .container, .blueprint-bg .container-fluid { position: relative; z-index: 1; }
.blueprint-bg p { color: rgba(255,255,255,0.68); }
.blueprint-bg h1, .blueprint-bg h2, .blueprint-bg h3 { color: var(--white); }

/* =========================================================
   Corner-bracket frame — the signature card treatment
   ========================================================= */
.spec-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.spec-card::before, .spec-card::after,
.spec-card .bracket-tl, .spec-card .bracket-br {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--amber);
  opacity: 0;
  transition: opacity 0.25s ease, width 0.25s ease, height 0.25s ease;
}
.spec-card::before { top: -1px; left: -1px; border-top: 2px solid var(--amber); border-left: 2px solid var(--amber); }
.spec-card::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--amber); border-right: 2px solid var(--amber); }
.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.spec-card:hover::before, .spec-card:hover::after { opacity: 1; width: 22px; height: 22px; }

.spec-card .icon-tile {
  width: 52px; height: 52px;
  border-radius: 8px;
  background: rgba(46,79,172,0.08);
  color: var(--blueprint);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}
.spec-card .index-mark {
  position: absolute;
  top: 1.6rem; right: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--border);
}

/* Dark variant of spec card (used on ink backgrounds) */
.spec-card.on-dark {
  background: rgba(255,255,255,0.03);
  border-color: var(--border-dark);
}
.spec-card.on-dark h3 { color: var(--white); }
.spec-card.on-dark p { color: rgba(255,255,255,0.62); }
.spec-card.on-dark .icon-tile { background: rgba(255,159,28,0.12); color: var(--amber); }

/* =========================================================
   Buttons
   ========================================================= */
.btn { font-family: var(--font-body); font-weight: 600; border-radius: 8px; padding: 0.75rem 1.6rem; transition: all 0.2s ease; border: 1px solid transparent; }
.btn-amber {
  background: var(--amber); color: var(--ink); border-color: var(--amber);
}
.btn-amber:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--ink); transform: translateY(-1px); }
.btn-outline-light-custom {
  color: var(--white); border-color: rgba(255,255,255,0.35); background: transparent;
}
.btn-outline-light-custom:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.06); }
.btn-outline-ink {
  color: var(--ink); border-color: var(--border); background: transparent;
}
.btn-outline-ink:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-dim); }
.btn-lg-cta { padding: 0.9rem 2rem; font-size: 1.02rem; }

/* =========================================================
   Navbar
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13,19,33,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dark);
}
.site-header .navbar-brand { display: flex; align-items: center; gap: 0.6rem; }
.site-header .brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blueprint), var(--blueprint-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}
.site-header .brand-text { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1.08rem; line-height: 1.1; }
.site-header .brand-text small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.12em; color: var(--slate-dim); text-transform: uppercase; }

.site-header .nav-link {
  color: rgba(255,255,255,0.78);
  font-weight: 500; font-size: 0.94rem;
  padding: 0.5rem 1rem !important;
  position: relative;
}
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--white); }
.site-header .nav-link.active::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 0.15rem; height: 2px; background: var(--amber);
}
.site-header .navbar-toggler { border-color: rgba(255,255,255,0.3); }
.site-header .navbar-toggler-icon { filter: invert(1); }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 6.5rem 0 5rem; }
.hero .stat-strip { border-top: 1px solid var(--border-dark); margin-top: 3.2rem; padding-top: 1.8rem; }
.hero .stat-strip .stat-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--white); }
.hero .stat-strip .stat-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-dim); }

/* Wireframe device mock (used in place of photography) */
.blueprint-mock {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  padding: 0.9rem;
  position: relative;
}
.blueprint-mock .mock-bar { display: flex; gap: 6px; margin-bottom: 0.9rem; }
.blueprint-mock .mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.blueprint-mock .mock-lines div { height: 10px; border-radius: 4px; background: rgba(255,255,255,0.08); margin-bottom: 10px; }
.blueprint-mock .mock-lines .w-70 { width: 70%; } .blueprint-mock .mock-lines .w-45 { width: 45%; } .blueprint-mock .mock-lines .w-90 { width: 90%; } .blueprint-mock .mock-lines .w-30 { width: 30%; }
.blueprint-mock .mock-block { height: 90px; border-radius: 8px; background: linear-gradient(135deg, rgba(46,79,172,0.25), rgba(255,159,28,0.14)); border: 1px dashed rgba(255,255,255,0.18); margin-bottom: 12px; display:flex; align-items:center; justify-content:center; font-family: var(--font-mono); font-size: 0.65rem; color: rgba(255,255,255,0.4); letter-spacing: 0.08em; text-transform: uppercase; }

/* =========================================================
   Process steps (dashed connector — order carries meaning)
   ========================================================= */
.process-step { position: relative; padding-left: 0; }
.process-step .step-num {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--amber);
  border: 1px solid var(--border); width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; background: var(--white);
  position: relative; z-index: 1;
}
.process-track { position: relative; }
.process-track::before {
  content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 0;
  border-top: 1px dashed var(--border); z-index: 0;
}
@media (max-width: 767px) { .process-track::before { display: none; } }

/* =========================================================
   Portfolio
   ========================================================= */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.filter-btn {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.5rem 1.1rem; border-radius: 100px; border: 1px solid var(--border);
  background: var(--white); color: var(--slate); cursor: pointer; transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--blueprint); color: var(--blueprint); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.portfolio-card { text-decoration: none; display: block; color: inherit; }
.portfolio-card .thumb-wrap {
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; border: 1px solid var(--border); border-bottom: none;
  background: var(--ink);
}
.portfolio-card .card-body-custom {
  border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.3rem 1.4rem; background: var(--white); transition: border-color 0.2s ease;
}
.portfolio-card:hover .card-body-custom { border-color: var(--blueprint); }
.portfolio-card:hover .thumb-wrap { border-color: var(--blueprint); }
.portfolio-card h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }

/* Browser chrome mock for portfolio thumbnails */
.browser-mock { padding: 10px; }
.browser-mock .chrome-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.browser-mock .chrome-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.browser-mock .chrome-url { flex: 1; height: 16px; margin-left: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); }

/* Phone mock for app portfolio items */
.phone-mock { width: 92px; margin: 0 auto; border: 3px solid rgba(255,255,255,0.22); border-radius: 16px; padding: 8px 6px; }
.phone-mock .phone-notch { width: 28px; height: 5px; background: rgba(255,255,255,0.22); border-radius: 4px; margin: 0 auto 8px; }
.phone-mock .phone-line { height: 7px; border-radius: 3px; background: rgba(255,255,255,0.14); margin-bottom: 7px; }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonial-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem; height: 100%;
}
.testimonial-card .quote-mark { font-family: var(--font-display); font-size: 2.6rem; color: var(--amber); line-height: 1; margin-bottom: 0.6rem; display: block; }
.testimonial-card .avatar-tile {
  width: 42px; height: 42px; border-radius: 50%; background: var(--paper-dim);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 600; color: var(--blueprint); font-size: 0.9rem;
}

/* =========================================================
   Forms — used on Get a Quote / Contact
   ========================================================= */
.form-shell {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 2.2rem;
}
.form-label-custom { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.4rem; display: block; }
.form-control-custom, .form-select-custom, textarea.form-control-custom {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 0.7rem 0.9rem;
  font-family: var(--font-body); font-size: 0.95rem; background: var(--paper); transition: border-color 0.2s ease, background 0.2s ease;
}
.form-control-custom:focus, .form-select-custom:focus, textarea.form-control-custom:focus {
  outline: none; border-color: var(--blueprint); background: var(--white); box-shadow: 0 0 0 3px rgba(46,79,172,0.12);
}
.chip-select { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-option input { position: absolute; opacity: 0; pointer-events: none; }
.chip-option label {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease; color: var(--slate);
}
.chip-option input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip-option input:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 2px; }

.budget-range small { font-family: var(--font-mono); font-size: 0.7rem; color: var(--slate-dim); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 4rem 0 0; }
.site-footer h6 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.9); margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,0.6); }
.site-footer a:hover { color: var(--amber); }
.site-footer .footer-bottom { border-top: 1px solid var(--border-dark); margin-top: 3rem; padding: 1.4rem 0; font-family: var(--font-mono); font-size: 0.75rem; }
.social-dot {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-dark);
  display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: all 0.2s ease;
}
.social-dot:hover { border-color: var(--amber); color: var(--amber); }

/* =========================================================
   Misc sections
   ========================================================= */
.section-pad { padding: 5.5rem 0; }
@media (max-width: 767px) { .section-pad { padding: 3.5rem 0; } }

.divider-mono { font-family: var(--font-mono); font-size: 0.7rem; color: var(--slate-dim); letter-spacing: 0.1em; text-transform: uppercase; }

.cta-band { background: var(--blueprint); color: var(--white); border-radius: 18px; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 16px 16px; opacity: 0.5;
}
.cta-band .container-fluid, .cta-band .row { position: relative; z-index: 1; }

.logo-strip { filter: grayscale(1); opacity: 0.55; }

.service-anchor-nav {
  position: sticky; top: 78px; background: var(--white); border-bottom: 1px solid var(--border); z-index: 900;
}
.service-anchor-nav a { color: var(--slate); font-size: 0.88rem; font-weight: 500; padding: 0.9rem 1rem; display: inline-block; border-bottom: 2px solid transparent; }
.service-anchor-nav a:hover, .service-anchor-nav a.active { color: var(--ink); border-color: var(--amber); }

.breadcrumb-mono { font-family: var(--font-mono); font-size: 0.75rem; color: var(--slate-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.breadcrumb-mono a { color: var(--slate-dim); }
.breadcrumb-mono a:hover { color: var(--blueprint); }

/* Back to top */
.back-to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.25s ease; z-index: 999; border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* =========================================================
   Additions for the WordPress build
   ========================================================= */
.faq-item { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 1rem; }
.faq-item:last-child { margin-bottom: 0; }

.empty-state { border: 1px dashed var(--border); border-radius: 10px; padding: 2rem; text-align: center; color: var(--slate-dim); font-family: var(--font-mono); font-size: 0.85rem; }

.gallery-thumb { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-wrap { min-height: 190px; }

.avatar-tile img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.team-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; display: block; border: 1px solid var(--border); }

.tech-ticker span { white-space: nowrap; }

.stat-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-dim); }
.blueprint-bg .stat-label { color: rgba(255,255,255,0.55); }
.stat-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; }
