/* Jamito Solutions – shared styles (Phase 0, v2 30 Oct 2026)
   Brand values from the approved brand system (27 Oct 2026). Change colours/fonts HERE only. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/pjs-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/pjs-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/pjs-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --navy: #1B2A41;        /* brand UI navy – hero ground, headings on light */
  --deep: #141B26;        /* brand icon ground – footer */
  --paper: #F7F5F0;       /* brand off-white – text pages */
  --sky: #4FA3E3;         /* logo blue on dark */
  --amber: #F0B356;       /* logo amber on dark – primary button */
  --amber-hover: #F5C474;
  --blue: #1F6FB8;        /* logo blue on light – links on paper */
  --mist: #C5D0DE;        /* body text on navy */
  --dim: #93A1B4;         /* secondary text on navy/deep */
  --ink-soft: #55606F;    /* secondary text on paper */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--deep); }
body { margin: 0; font: 400 17px/1.6 var(--font); color: var(--navy); background: var(--paper); }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.logo { display: inline-block; line-height: 0; }
.logo img { width: 210px; height: auto; }

/* ---------- Home: navy hero ---------- */
.home { background: var(--navy); color: #fff; }
.hero { position: relative; overflow: hidden; min-height: 82vh; min-height: 82svh; display: flex; flex-direction: column; isolation: isolate;
  background:
    radial-gradient(900px 640px at 88% 12%, rgba(79,163,227,.55), transparent 62%),
    radial-gradient(760px 560px at 100% 100%, rgba(240,179,86,.42), transparent 60%),
    radial-gradient(700px 600px at -5% 105%, rgba(31,111,184,.65), transparent 60%),
    var(--navy); }
.hero-top { padding-top: 32px; }
.hero-body { flex: 1; display: flex; align-items: center; padding-top: 40px; padding-bottom: 72px; }
.hero-copy { max-width: 600px; }

.hero h1 {
  margin: 0 0 28px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.04;
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
}
.hero .lead { margin: 0 0 18px; font-size: 1.2rem; line-height: 1.6; color: var(--mist); max-width: 54ch; }
.hero .soft { margin: 0 0 36px; color: var(--dim); max-width: 54ch; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 1.05rem;
  background: var(--amber); color: var(--deep); padding: 16px 34px; border-radius: 12px;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--amber-hover); color: var(--deep); transform: translateY(-1px); }
.mail { display: block; margin-top: 16px; color: var(--dim); font-size: 15px; }
.mail a { color: var(--mist); }
.mail a:hover { color: #fff; }

/* The brand gear, very large, cropped off the right edge – the page's one bold element */
.gear {
  position: absolute; z-index: -1; pointer-events: none;
  width: min(64vw, 860px); aspect-ratio: 1; right: max(-14vw, -200px); top: 50%;
  transform: translateY(-50%);
  opacity: .6;
}
.gear .ring-l { fill: var(--sky); opacity: .9; }
.gear .ring-r { fill: var(--amber); opacity: .9; }
.gear .trace { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.gear .node { fill: none; stroke-width: 2.2; }
.gear .t-sky { stroke: var(--sky); }
.gear .t-amber { stroke: var(--amber); }
.gear-veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(27,42,65,.82) 38%, rgba(27,42,65,0) 64%); }

.grad { background: linear-gradient(90deg, #4FA3E3 0%, #86C0F0 38%, #F7C97A 72%, #F0B356 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- What we do ---------- */
.what { background: var(--paper); color: var(--navy); padding: 88px 0 96px; }
.eyebrow { margin: 0 0 12px; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #B5690A; }
.what h2 { margin: 0 0 44px; max-width: 20ch; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-size: clamp(2rem, 4.6vw, 3.1rem); color: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card { grid-column: span 2; background: #fff; border-radius: 22px; padding: 28px 26px 30px; border: 1px solid #E6E1D6; box-shadow: 0 1px 0 rgba(27,42,65,.04), 0 14px 34px -22px rgba(27,42,65,.35); }
.card.c1 { grid-column: span 3; background: linear-gradient(135deg, #1B2A41 0%, #1F6FB8 100%); border-color: transparent; color: #fff; }
.card.c2 { grid-column: span 3; }
.card h3 { margin: 18px 0 8px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.card.c1 p { color: #DCE6F2; }
.ico { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: #fff; }
.ico svg { width: 28px; height: 28px; }
.c1 .ico { background: rgba(255,255,255,.18); }
.c2 .ico { background: linear-gradient(135deg, #1F6FB8, #4FA3E3); }
.c3 .ico { background: linear-gradient(135deg, #D98A1F, #F0B356); }
.c4 .ico { background: linear-gradient(135deg, #1F6FB8, #4FA3E3); }
.c5 .ico { background: linear-gradient(135deg, #D98A1F, #F0B356); }

/* ---------- Call to action band ---------- */
.cta { text-align: center; color: #fff; padding: 84px 0 92px;
  background: radial-gradient(700px 400px at 85% 0%, rgba(240,179,86,.45), transparent 60%), linear-gradient(135deg, #1F6FB8 0%, #1B2A41 100%); }
.cta h2 { margin: 0 0 12px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.cta p { margin: 0 auto 30px; max-width: 46ch; color: #DCE6F2; font-size: 1.1rem; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Footer (all pages) ---------- */
footer.site { background: var(--deep); color: var(--dim); font-size: 13.5px; line-height: 1.6; padding: 28px 0 32px; }
footer.site p { margin: 0 0 10px; max-width: 86ch; }
footer.site .links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
footer.site a { color: var(--mist); }
footer.site a:hover { color: #fff; }

/* ---------- Text pages (privacy, 404) ---------- */
.bar { background: var(--navy); padding: 22px 0; }
.bar .logo img { width: 170px; }
.doc { padding-top: 44px; padding-bottom: 64px; }
.doc h1 { font-weight: 800; letter-spacing: -0.02em; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.12; margin: 0 0 8px; }
.doc .updated { color: var(--ink-soft); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 1.2rem; margin: 34px 0 8px; }
.doc p, .doc li { max-width: 66ch; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .logo img { width: 168px; }
  .hero-top { padding-top: 22px; }
  .hero { min-height: 0; }
  .hero-body { align-items: flex-start; padding-top: 40px; padding-bottom: 56px; }
  .hero h1 { margin-bottom: 20px; }
  .hero .lead { font-size: 1.06rem; }
  .hero .soft { margin-bottom: 28px; }
  .btn { display: block; text-align: center; }
  .mail { text-align: center; }
  .gear { width: 520px; right: -290px; top: 0; transform: none; opacity: .55; }
  .gear-veil { background: linear-gradient(180deg, rgba(27,42,65,0) 0%, rgba(27,42,65,.7) 32%, var(--navy) 58%); }
  .what { padding: 60px 0 64px; }
  .what h2 { margin-bottom: 30px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card, .card.c1, .card.c2 { grid-column: auto; padding: 24px 22px 26px; }
  .cta { padding: 60px 0 68px; }
  .bar .logo img { width: 150px; }
  .doc { padding-top: 32px; }
}

/* Easier tapping on phones and tablets: standalone text links get a 44px-high tap area */
@media (max-width: 900px) {
  footer.site .links a, .doc p a, .doc li a, .hero a:not(.btn), .cta a:not(.btn) { display: inline-block; padding: 11px 0; }
}

/* Fifteen starting points */
.starts { background: #fff; color: var(--navy); padding: 84px 0 92px; }
.starts h2 { margin: 0 0 14px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
.starts .lead2 { margin: 0 0 40px; max-width: 60ch; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.6; }
.startlist { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.startlist li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border-radius: 14px; padding: 18px 18px 20px; }
.startlist .num { flex: 0 0 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; font-weight: 800; font-size: .95rem; display: grid; place-items: center; }
.startlist h3 { margin: 4px 0 6px; font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.startlist p { margin: 0; color: var(--ink-soft); line-height: 1.55; font-size: .97rem; }
.starts .closer { margin: 0 0 18px; font-size: 1.15rem; font-weight: 700; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--blue); color: #fff; }
@media (max-width: 960px) { .startlist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .startlist { grid-template-columns: 1fr; } .starts { padding: 56px 0 64px; } }
.startlist .num { position: relative; }
.startlist .num::after { content: ""; width: 9px; height: 15px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -2px); display: block; }

/* Contact form */
.cform { max-width: 620px; margin-top: 8px; }
.field { margin: 0 0 18px; }
.field label { display: block; font-weight: 700; margin: 0 0 6px; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.cform input[type=text], .cform input[type=email], .cform input[type=tel], .cform select, .cform textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--navy); background: #fff; border: 1.5px solid #B9C2CF; border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.cform textarea { min-height: 150px; resize: vertical; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 3px solid rgba(79,163,227,.45); border-color: var(--blue); }
.cform .btn { border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.cform .btn[disabled] { opacity: .65; cursor: wait; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { color: var(--ink-soft); font-size: 14.5px; margin-top: 18px; }
.formerr { background: #FDECEA; color: #8A1F11; border-radius: 10px; padding: 12px 14px; max-width: 620px; font-weight: 600; }
.doc a.btn { display: inline-block; padding: 14px 24px; text-decoration: none; }
.doc .fine a, .doc .fine { line-height: 1.6; }
.doc .fine a { display: inline; padding: 0; }

/* Tables in legal pages */
.tablewrap { overflow-x: auto; margin: 14px 0 20px; -webkit-overflow-scrolling: touch; }
.doc table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #D5DBE4; }
.doc th { background: #ECEFF4; font-weight: 800; }
@media (max-width: 640px) {
  .doc table { min-width: 0; }
  .doc thead { position: absolute; left: -9999px; }
  .doc tr { display: block; margin: 0 0 14px; border: 1px solid #D5DBE4; border-radius: 10px; background: #fff; }
  .doc td { display: block; border: 0; padding: 8px 12px; }
  .doc td::before { content: attr(data-label); display: block; font-weight: 800; font-size: 13px; color: var(--ink-soft); }
}
