/* =========================================================
   iCleanAll — Bosaa Trades Inc.
   Computer Systems Design & Integrated Systems
   Palette: Deep Espresso + Terracotta + Sage + Warm Ivory
   ========================================================= */

:root {
  --bg: #14100D;
  --bg-soft: #1B1511;
  --surface: #211A14;
  --surface-2: #2A2119;
  --line: #3A2E22;
  --line-soft: #2E241B;
  --ink: #F4EEE4;
  --muted: #BCB09D;
  --dim: #8D7F6B;
  --primary: #E07A4E;
  --primary-dark: #C96134;
  --primary-soft: #F0A47B;
  --sage: #A9B88E;
  --sage-dark: #85946B;
  --ochre: #D9A441;
  --danger: #E0604A;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --sidebar-w: 272px;
}

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

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

body {
  font-size: 16px;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-soft);
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}

::selection {
  background: var(--primary);
  color: #14100D;
}

/* ============ Sidebar navigation (fixed left rail) ============ */
.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(180deg, #1B1511 0%, #120E0A 100%);
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  z-index: 60;
  padding: 34px 26px 26px;
}

.sidebar-nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.sidebar-nav .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  color: #14100D;
  flex: 0 0 auto;
}

.sidebar-nav .brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--ink);
  line-height: 1.15;
}

.sidebar-nav .brand-sub {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
}

.sidebar-nav .nav-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dim);
  margin: 22px 0 12px;
}

.sidebar-nav .nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav .nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 14px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-nav .nav-links a:hover {
  background: var(--surface);
  color: var(--ink);
}

.sidebar-nav .nav-links a.active {
  background: var(--primary);
  color: #14100D;
}

.sidebar-nav .nav-links .nav-ico {
  font-size: 16px;
  width: 18px;
  text-align: center;
}

.sidebar-nav .side-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.sidebar-nav .side-contact {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.sidebar-nav .side-contact strong {
  color: var(--ink);
}

.sidebar-nav .side-contact a {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.sidebar-scrim {
  display: none;
}

/* ============ Main shell (offset for sidebar) ============ */
.site-shell {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============ Hero (asymmetric two-column) ============ */
.hero-section {
  position: relative;
  padding: 90px 0 80px;
  background:
    radial-gradient(900px 500px at 85% -10%, #2A1D13 0%, transparent 60%),
    radial-gradient(700px 500px at 0% 110%, #1C1711 0%, transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 22px;
}

.hero-eyebrow .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-section h1 {
  font-size: 52px;
  letter-spacing: -1px;
  margin-bottom: 22px;
}

.hero-section h1 .accent {
  color: var(--primary);
}

.hero-lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #14100D;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: #14100D;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-soft);
  transform: translateY(-2px);
}

.hero-proof {
  display: flex;
  gap: 26px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-proof .proof-item {
  display: flex;
  flex-direction: column;
}

.hero-proof .proof-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

.hero-proof .proof-label {
  font-size: 13px;
  color: var(--dim);
}

/* Hero visual panel — system monitor */
.hero-visual {
  position: relative;
}

.monitor-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.monitor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.monitor-head .win-dots {
  display: flex;
  gap: 7px;
}

.monitor-head .win-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.monitor-head .win-dots span:nth-child(1) { background: var(--danger); }
.monitor-head .win-dots span:nth-child(2) { background: var(--ochre); }
.monitor-head .win-dots span:nth-child(3) { background: var(--sage); }

.monitor-head .win-title {
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 1px;
}

.monitor-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.metric {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px;
}

.metric .metric-label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

.metric .metric-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}

.metric .metric-value.sage { color: var(--sage); }

.metric .metric-value.ochre { color: var(--ochre); }

.monitor-console {
  margin-top: 14px;
  background: #0C0907;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: "Consolas", "SF Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--sage);
}

.monitor-console .cmd { color: var(--primary-soft); }

.float-chip {
  position: absolute;
  background: var(--primary);
  color: #14100D;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.float-chip.top {
  top: -18px;
  right: 20px;
}

.float-chip.bottom {
  bottom: -18px;
  left: 24px;
  background: var(--sage);
  color: #14100D;
}

/* ============ Stats band ============ */
.stats-band {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stats-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 46px;
  padding-bottom: 46px;
}

.stat-cell {
  text-align: center;
}

.stat-cell .stat-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}

.stat-cell .stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* ============ Numbered capabilities ============ */
.capabilities-section {
  padding: 96px 0;
  background: var(--bg);
}

.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-title {
  font-size: 38px;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  max-width: 720px;
}

.section-intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 56px;
}

.cap-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cap-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 28px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cap-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.cap-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  opacity: 1;
}

.cap-body h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.cap-body p {
  color: var(--muted);
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.cap-tags span {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--sage);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ============ Timeline ============ */
.timeline-section {
  padding: 96px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
}

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-left: 66px;
  padding-bottom: 44px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--primary);
  z-index: 1;
}

.timeline-item h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--muted);
  max-width: 640px;
}

.timeline-item .phase-meta {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

/* ============ Solutions (tabbed content) ============ */
.solutions-section {
  padding: 96px 0;
  background: var(--bg);
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.tab-btn {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover {
  color: var(--ink);
  border-color: var(--line);
}

.tab-btn.active {
  background: var(--primary);
  color: #14100D;
  border-color: var(--primary);
}

.tab-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 40px;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.tab-panel h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.tab-panel p {
  color: var(--muted);
  margin-bottom: 12px;
}

.tab-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
}

.tab-checklist li::before {
  content: "\2713";
  color: var(--sage);
  font-weight: 800;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Method statement rows ============ */
.method-section {
  padding: 96px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
}

.method-row {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line-soft);
}

.method-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.method-row:first-child {
  padding-top: 0;
}

.method-row .method-idx {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
}

.method-row h3 {
  font-size: 26px;
  margin-bottom: 14px;
}

.method-row p {
  color: var(--muted);
  font-size: 16px;
}

/* ============ FAQ ============ */
.faq-section {
  padding: 96px 0;
  background: var(--bg);
}

.faq-list {
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  margin-bottom: 14px;
  background: var(--surface);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q .faq-icon {
  color: var(--primary);
  font-size: 22px;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a-inner {
  padding: 0 24px 22px;
  color: var(--muted);
}

/* ============ Contact ============ */
.contact-section {
  padding: 96px 0;
  background:
    radial-gradient(800px 500px at 100% 0%, #281B12 0%, transparent 55%),
    var(--bg-soft);
  border-top: 1px solid var(--line-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h3 {
  font-size: 26px;
  margin-bottom: 14px;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-detail .cd-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 18px;
  flex: 0 0 auto;
}

.contact-detail .cd-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
}

.contact-detail .cd-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.contact-detail a.cd-value:hover {
  color: var(--primary-soft);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 13px;
  color: var(--dim);
  margin-top: 10px;
}

.form-status {
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  display: none;
}

.form-status.ok { color: var(--sage); }
.form-status.err { color: var(--danger); }

/* ============ Footer (multi-column + newsletter band) ============ */
.site-footer {
  background: #0F0B08;
  border-top: 1px solid var(--line-soft);
}

.newsletter-band {
  padding: 54px 0;
  border-bottom: 1px solid var(--line-soft);
}

.newsletter-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.newsletter-band h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.newsletter-band p {
  color: var(--muted);
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.footer-main {
  padding: 60px 0 40px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-col .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #14100D;
}

.footer-col .brand-name {
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}

.footer-col p {
  color: var(--dim);
  font-size: 14px;
}

.footer-col h4 {
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: var(--dim);
  font-size: 14px;
}

.footer-col ul a:hover {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--dim);
}

.footer-bottom .legal-links {
  display: flex;
  gap: 22px;
}

.footer-bottom .legal-links a {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom .legal-links a:hover {
  color: var(--primary);
}

/* ============ Reveal animation ============ */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .newsletter-band .container { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .sidebar-nav {
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    width: 280px;
  }
  .sidebar-nav.open {
    transform: translateX(0);
  }
  .nav-toggle {
    display: flex;
  }
  .site-shell {
    margin-left: 0;
  }
  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line-soft);
  }
  .mobile-bar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .mobile-bar .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #14100D;
  }
  .mobile-bar .brand-name {
    font-weight: 800;
    font-size: 16px;
    color: var(--ink);
  }
  .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .sidebar-scrim.show {
    opacity: 1;
    pointer-events: auto;
  }
  .container { padding: 0 22px; }
  .hero-section { padding: 60px 0; }
  .hero-section h1 { font-size: 38px; }
  .cap-item { grid-template-columns: 1fr; gap: 16px; }
  .tab-panel.active { grid-template-columns: 1fr; }
  .method-row { grid-template-columns: 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .hero-section h1 { font-size: 32px; }
  .section-title { font-size: 28px; }
  .stats-band .container { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .float-chip { position: static; margin-top: 12px; }
  .hero-visual { position: relative; }
}
