/* DECODE IT Solutions — shared design system
   Same visual language as /ntmart (forest/emerald/coral palette, Fraunces + Inter). */

:root {
  --paper: #FAF9F3;
  --paper-alt: #EFEEE1;
  --line: #DDD9C8;
  --ink: #17231D;
  --muted: #6E7168;
  --forest: #16332A;
  --forest-line: #2A4A3C;
  --forest-text: #E9EDE6;
  --emerald: #1F6E52;
  --emerald-dark: #16543D;
  --coral: #E2572B;
  --coral-dark: #C2461F;
  --radius: 10px;
  --serif: 'Fraunces', serif;
  --sans: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
h1, h2, h3 { font-family: var(--serif); margin: 0; }
.eyebrow {
  font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--coral); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--coral); display: inline-block; }
:focus-visible { outline: 2.5px solid var(--coral); outline-offset: 3px; }

/* ---------- Nav ---------- */
nav.site-nav {
  position: sticky; top: 0; z-index: 40; background: rgba(250,249,243,0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
nav.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: auto; height: 34px; border-radius: 0; }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 500; }
.nav-links a:not(.btn) { text-decoration: none; opacity: 0.75; }
.nav-links a:not(.btn):hover { opacity: 1; }
.btn {
  font-family: var(--sans); font-weight: 600; font-size: 14.5px; border-radius: 100px;
  padding: 12px 22px; border: none; cursor: pointer; text-decoration: none; display: inline-block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -10px rgba(226,87,43,0.55); }
.btn-coral:hover { background: var(--coral-dark); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost-dark { background: transparent; color: var(--forest-text); border: 1.5px solid var(--forest-line); }
.btn-ghost-dark:hover { border-color: var(--forest-text); }
.btn-whatsapp { background: var(--emerald); color: #fff; box-shadow: 0 10px 24px -10px rgba(31,110,82,0.55); }
.btn-whatsapp:hover { background: var(--emerald-dark); }
.btn-whatsapp svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; fill: currentColor; }
.nav-cta { display: none; }
@media (min-width: 760px) { .nav-cta { display: inline-block; } }

.nav-toggle {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 8px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; flex-direction: column; gap: 4px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); display: block; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 760px) { .nav-toggle { display: none; } }
@media (max-width: 759px) {
  .nav-links {
    position: fixed; top: 65px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 28px 18px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: transform 0.18s ease, opacity 0.18s ease, visibility 0s linear 0.18s;
  }
  .nav-links.open {
    transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible;
    transition: transform 0.18s ease, opacity 0.18s ease, visibility 0s;
  }
  .nav-links a:not(.btn) { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
}
.nav-links a.active-link:not(.btn),
.nav-links a[aria-current="page"]:not(.btn) { opacity: 1; color: var(--emerald); }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 20px; }
.hero-copy { max-width: 700px; }
.hero.hero-center .hero-copy { max-width: 640px; margin: 0 auto; text-align: center; }
.hero.hero-center .hero-ctas { justify-content: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.08; font-weight: 600; letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: var(--emerald); font-weight: 500; }
.hero p.lede { font-family: var(--sans); font-size: 18px; color: #48493F; max-width: 54ch; margin: 20px 0 30px; }
.hero.hero-center p.lede { margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 13.5px; color: var(--muted); }

/* Jump-link pills (section navigation) */
.pill-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.pill-nav a {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--muted);
  background: #fff; border: 1.5px solid var(--line); border-radius: 100px; padding: 9px 18px;
  text-decoration: none; transition: all 0.15s ease;
}
.pill-nav a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
section.block.tight { padding: 56px 0; }
section.block.alt { background: var(--paper-alt); }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(27px, 3.5vw, 36px); font-weight: 600; line-height: 1.15; }
.section-head p { font-size: 16.5px; color: #48493F; margin-top: 16px; }

/* Banner strip (forest, 1–3 columns) */
.strip { background: var(--forest); color: var(--forest-text); }
.strip .wrap { display: grid; grid-template-columns: 1fr; gap: 40px; }
.strip.cols-3 .wrap { grid-template-columns: 1fr; }
@media (min-width: 860px) { .strip.cols-3 .wrap { grid-template-columns: repeat(3, 1fr); } }
.strip h2 { color: var(--forest-text); font-size: clamp(25px, 3.1vw, 31px); max-width: 22ch; font-weight: 600; }
.strip-col p { font-size: 15px; color: #C3CDC5; margin-top: 10px; }
.strip-col .tag { font-family: var(--sans); font-size: 12px; color: #7FBFA0; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.strip.banner-cta { text-align: center; padding: 56px 0; }
.strip.banner-cta h2 { max-width: none; margin: 0 auto; }
.strip.banner-cta .strip-actions { margin-top: 22px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Feature cards */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.features-grid.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .features-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.features-grid.cols-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .features-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.features-grid.cols-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .features-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.feature-card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--paper-alt); display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 14px; }
.feature-card h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.feature-card p { font-size: 14.5px; color: #524A40; margin: 0; }
.feature-card img.card-shot { border-radius: 8px; margin-bottom: 16px; border: 1px solid var(--line); }

/* Split content row (copy + image) */
.split { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 0.9fr; } }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
.split h2, .split h3 { margin-bottom: 14px; }
.split p { font-size: 15.5px; color: #48493F; }

/* Accent-bordered "gem" cards */
.gems-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .gems-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gems-grid { grid-template-columns: repeat(3, 1fr); } }
.gem-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 22px; border-left: 3px solid var(--emerald);
}
.gem-card.coral { border-left-color: var(--coral); }
.gem-card img {
  width: 100%; height: 110px; object-fit: contain; background: var(--paper-alt);
  border-radius: 8px; margin-bottom: 14px; padding: 10px;
}
.gem-card h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.gem-card p { font-size: 13.5px; color: #524A40; margin: 0; }

/* Dotted list items */
.dot-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 760px) { .dot-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.dot-item { display: flex; gap: 16px; align-items: flex-start; }
.dot-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); margin-top: 8px; flex-shrink: 0; }
.dot-item h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 700; }
.dot-item p { font-size: 14.5px; color: #524A40; margin: 4px 0 0; }

/* Numbered steps */
.steps-grid { counter-reset: step; display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 760px) { .steps-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .steps-grid.cols-5 { grid-template-columns: repeat(2, 1fr); } }
.step { counter-increment: step; position: relative; padding-left: 48px; }
.step.no-counter { counter-increment: none; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: 0; font-family: var(--serif); font-weight: 600;
  font-size: 15px; width: 34px; height: 34px; border-radius: 50%; background: var(--emerald); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 700; }
.step p { font-size: 14.5px; color: #524A40; margin: 6px 0 0; }

/* Mono label (for spec-like lists) */
.mono-list { font-family: var(--mono); font-size: 13.5px; line-height: 2; color: #48493F; }
.mono-list strong { color: var(--ink); font-weight: 600; }

/* CTA / footer */
.cta { background: var(--forest); color: var(--forest-text); text-align: center; }
.cta h2 { color: var(--forest-text); font-size: clamp(27px, 4vw, 38px); font-weight: 600; }
.cta p { color: #C3CDC5; font-size: 16.5px; margin: 18px auto 32px; max-width: 48ch; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

footer.site-footer { background: var(--forest); color: #8FA096; border-top: 1px solid var(--forest-line); padding: 32px 0; }
footer.site-footer .wrap { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; font-size: 13px; flex-wrap: wrap; }
@media (min-width: 700px) { footer.site-footer .wrap { flex-direction: row; justify-content: space-between; text-align: left; } }
@media (max-width: 699px) { footer.site-footer .wrap > div:last-child { width: 100%; } }
footer.site-footer .brand span { color: var(--forest-text); font-family: var(--serif); }
footer.site-footer a { text-decoration: none; }
footer.site-footer a:hover { color: var(--forest-text); }

/* Full sitemap footer (used on multi-page site, not the single-page /ntmart product page) */
footer.footer-full { background: var(--forest); color: #8FA096; padding: 72px 0 0; }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
@media (min-width: 700px) { .footer-cols { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-cols h4 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--forest-text); margin: 0 0 16px; }
.footer-cols p, .footer-cols li { font-size: 14px; line-height: 1.9; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--forest-text); }
.footer-social { display: flex; gap: 16px; margin-top: 18px; font-size: 13.5px; }
.footer-bottom { border-top: 1px solid var(--forest-line); padding: 22px 0; text-align: center; font-size: 13px; }

/* Contact / lead forms */
.nt-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; max-width: 520px; }
.nt-form label { display: block; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 6px; }
.nt-form .field { margin-bottom: 18px; }
.nt-form input, .nt-form textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14.5px; }
.nt-form input:focus, .nt-form textarea:focus { outline: none; border-color: var(--ink); }
.nt-form textarea { min-height: 110px; resize: vertical; }
.nt-form button[type="submit"] { width: 100%; }
.nt-form-success { display: block; background: #E7F3EA; border: 1px solid #BFE0C8; color: #1F6E52; padding: 12px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 16px; }
.nt-form-error { display: block; background: #FBE9E9; border: 1px solid #EFC0C0; color: #A32E2E; padding: 12px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 16px; }

/* Footer newsletter/subscription capture */
.footer-subscribe { margin-top: 20px; }
.footer-subscribe form { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-subscribe input[type="email"] { flex: 1 1 180px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--forest-line); background: rgba(255,255,255,0.06); color: var(--forest-text); font-size: 13.5px; }
.footer-subscribe input[type="email"]::placeholder { color: #8FA096; }
.footer-subscribe button { padding: 9px 16px; border-radius: 8px; border: none; background: var(--forest-text); color: var(--forest); font-weight: 700; font-size: 13px; cursor: pointer; }
.footer-subscribe p[data-nt-status] { font-size: 12.5px; margin: 8px 0 0; }

::selection { background: var(--coral); color: #fff; }
