/* SidKa Infotech — site styles
   Palette: ink navy, blueprint blue, signal teal on cool white. */

:root {
  --ink: #0E1A33;
  --ink-2: #1B2A4A;
  --blue: #2B59E0;
  --blue-soft: #E7EDFD;
  --teal: #0F9D8A;
  --paper: #F4F6FA;
  --white: #FFFFFF;
  --text: #2E3A50;
  --muted: #5D6B82;
  --line: #D9DFEA;
  --grid: rgba(43, 89, 224, 0.07);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 6px;
  --radius-lg: 14px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 650;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--white);
  padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand svg { width: 34px; height: 34px; }
.brand span b { color: var(--blue); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.98rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { margin: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-sm);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.nav .btn { padding: 10px 18px; color: var(--white); }
.nav .btn:hover, .nav .btn[aria-current="page"] { color: var(--white); }
.nav .btn[aria-current="page"] { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: center; padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(56px, 9vw, 112px);
}
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 22px; font-size: 0.95rem; color: var(--muted); }

.blueprint {
  background: var(--ink); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: 0 30px 60px -30px rgba(14, 26, 51, 0.55);
}
.blueprint-caption {
  display: flex; justify-content: space-between; gap: 12px;
  color: #9FB2D9; font-size: 0.85rem; margin-bottom: 12px;
}
.blueprint svg text { font-family: var(--font-body); }
.bp-line { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.4s ease-out forwards; }
.bp-node { opacity: 0; animation: appear .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .bp-line { stroke-dashoffset: 0; animation: none; }
  .bp-node { opacity: 1; animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

/* Services list: ruled rows, not cards */
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 56px 1fr 1.4fr auto; gap: 28px;
  align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.service-row:hover h3 { color: var(--blue); }
.service-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center;
}
.service-row h3 { margin: 10px 0 0; transition: color .15s; }
.service-row p { margin: 6px 0 0; color: var(--muted); }
.service-row .more { margin-top: 10px; font-weight: 600; color: var(--blue); white-space: nowrap; }

/* Process: a real sequence, so it's numbered */
.process {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  counter-reset: step;
}
.process li {
  counter-increment: step; position: relative;
  padding: 0 20px 0 0;
}
.process li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--blue); color: var(--blue);
  font: 700 1rem var(--font-display);
  margin-bottom: 18px; position: relative; z-index: 1;
}
.process li::after {
  content: ""; position: absolute; top: 20px; left: 40px; right: 0;
  height: 2px; background: var(--line);
}
.process li:last-child::after { display: none; }
.process h3 { font-size: 1.12rem; margin-bottom: 6px; }
.process p { font-size: 0.97rem; color: var(--muted); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 64px; }
.principle { border-left: 3px solid var(--teal); padding-left: 22px; }
.principle p { color: var(--muted); margin: 0; }

/* Tech stack */
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stack h3 { font-size: 1rem; color: var(--muted); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.stack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px; font-size: 0.93rem; color: var(--ink);
}

/* CTA band */
.cta-band { background: var(--ink); color: #C9D4EA; }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding-top: 64px; padding-bottom: 64px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { margin: 0; }
.cta-band .btn-ghost { border-color: #C9D4EA; color: var(--white); }
.cta-band .btn-ghost:hover { background: var(--white); color: var(--ink); }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 88px) 0;
}
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.page-head p { font-size: 1.18rem; color: var(--muted); max-width: 60ch; margin: 0; }

/* Service detail blocks */
.service-detail {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px;
  padding: 56px 0; border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.service-detail:last-child { border-bottom: 0; }
.service-detail .service-icon { margin-bottom: 18px; }
.service-detail p { color: var(--muted); }
.checklist { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.5 17.2-5-5 1.6-1.6 3.4 3.4 7-7 1.6 1.6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.5 17.2-5-5 1.6-1.6 3.4 3.4 7-7 1.6 1.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: 0.88rem; color: var(--ink-2); background: var(--blue-soft);
  padding: 4px 11px; border-radius: 999px;
}

/* About */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.statement {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.3; color: var(--ink); letter-spacing: -0.015em; font-weight: 500;
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.08rem;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 56px; align-items: start; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 0.97rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -5000px; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #C0392B; }

.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px;
}
.contact-card h3 { font-size: 1.1rem; }
.contact-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-item span { display: block; font-size: 0.9rem; color: var(--muted); }
.contact-item a, .contact-item strong { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-item a:hover { color: var(--blue); }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }

/* ---------- Products (Glamsoft, GreenGrocer) ---------- */
.product-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.badge {
  display: inline-block; font-size: 0.9rem !important; font-weight: 600;
  color: #B0306A !important; background: #FBE3EE; border-radius: 999px;
  padding: 5px 13px; margin-bottom: 18px !important;
}
.badge--green { color: #1E7A3C !important; background: #DDF3E3; }

.product-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-panel {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius-lg); padding: 36px 32px;
  border: 1px solid; transition: border-color .15s;
}
.product-panel h3 { font-size: 1.9rem; margin-bottom: 10px; }
.product-panel p { color: var(--muted); }
.product-panel .more { font-weight: 600; }
.product-panel--glam { background: #FBF3F7; border-color: #F0DCE6; }
.product-panel--glam .more { color: #B0306A; }
.product-panel--glam:hover { border-color: #D6457F; }
.product-panel--green { background: #F1F9F3; border-color: #D3EBDA; }
.product-panel--green .badge { color: #1E7A3C !important; background: #DDF3E3; }
.product-panel--green .more { color: #1E7A3C; }
.product-panel--green:hover { border-color: #2E9E4F; }

.page-head--green {
  background:
    linear-gradient(rgba(46,158,79,0.08) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(46,158,79,0.08) 1px, transparent 1px) 0 0 / 32px 32px,
    #F3F8F4;
}
.principles--green .principle { border-left-color: #2E9E4F; }
.principles--green { row-gap: 36px; }

/* Illustrative phone-style mock */
.app-mock {
  --acc: #D6457F; --acc-text: #B0306A; --acc-line: #EBD5E0; --acc-soft: #F6F1F4; --acc-row: #F2E6EC;
  width: 100%; max-width: 340px; justify-self: center;
  background: var(--white); border: 1px solid var(--acc-line); border-radius: 28px;
  padding: 20px 16px; box-shadow: 0 30px 60px -32px rgba(14, 26, 51, 0.4);
  font-size: 0.92rem;
}
.app-mock--green { --acc: #2E9E4F; --acc-text: #1E7A3C; --acc-line: #D3EBDA; --acc-soft: #EEF6F0; --acc-row: #E4F1E8; }
.app-bar { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.app-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); flex: none; }
.app-loc { margin-left: auto; font-weight: 500; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.app-search { background: var(--acc-soft); color: var(--muted); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.app-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 2px; border-bottom: 1px solid var(--acc-row);
}
.app-item > div { flex: 1; }
.app-item strong { display: block; color: var(--ink); }
.app-item span { color: var(--muted); font-size: 0.84rem; }
.app-item em { font-style: normal; font-weight: 600; color: var(--acc-text); white-space: nowrap; }
.app-add {
  font-weight: 600; font-size: 0.84rem; color: var(--acc-text);
  border: 1px solid var(--acc); border-radius: 8px; padding: 4px 10px; white-space: nowrap;
}
.app-add.on { background: var(--acc); color: var(--white); }
.app-slots { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0; color: var(--muted); }
.app-slots span { margin-right: 4px; }
.app-slots b { font-weight: 600; border: 1px solid var(--acc-line); border-radius: 8px; padding: 4px 8px; color: var(--ink); }
.app-slots b.on { background: var(--acc); border-color: var(--acc); color: var(--white); }
.app-cta { background: var(--ink); color: var(--white); text-align: center; border-radius: 12px; padding: 12px; font-weight: 600; }
@media (max-width: 980px) { .product-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 760px) { .product-panels { grid-template-columns: 1fr; } .product-panel { padding: 28px 22px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A9B6D0; font-size: 0.96rem; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer .brand span b { color: #7FA1FF; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #A9B6D0; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.9rem;
}

/* WhatsApp button */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.35);
}
.wa-float:hover { color: var(--white); background: #1DA851; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 28px; }
  .process li { display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; padding: 0; }
  .process li::before { grid-row: span 2; margin: 0; }
  .process li::after { top: 40px; bottom: -28px; left: 19px; right: auto; width: 2px; height: auto; }
  .stack { grid-template-columns: repeat(2, 1fr); }
  .service-detail, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
  .service-row { grid-template-columns: 48px 1fr; gap: 6px 18px; }
  .service-row p, .service-row .more { grid-column: 2; }
  .service-row h3 { margin-top: 10px; }
}

@media (max-width: 600px) {
  .principles, .stack, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
  .blueprint { padding: 14px; }
}
