/* ==========================================================================
   Eboracum IT — Design System
   Modern, Microsoft-aligned. Navy + Azure + Teal.
   ========================================================================== */

:root {
  /* Brand palette */
  --navy:        #0a1f44;
  --navy-deep:   #061330;
  --azure:       #0b5cd8;
  --azure-dark:  #0846a8;
  --azure-light: #3d82ef;
  --teal:        #00b7c3;
  --teal-dark:   #008a93;

  /* Neutrals */
  --ink:    #11151c;
  --body:   #41505f;
  --muted:  #6b7a8d;
  --line:   #e3e8ef;
  --surface:#f6f8fb;
  --surface-2:#eef2f8;
  --white:  #ffffff;

  /* Effects */
  --grad-brand: linear-gradient(120deg, var(--azure) 0%, var(--teal) 100%);
  --grad-hero:  linear-gradient(135deg, #0a1f44 0%, #0b3a8c 55%, #0b5cd8 100%);
  --shadow-sm:  0 1px 2px rgba(10,31,68,.06), 0 1px 3px rgba(10,31,68,.08);
  --shadow-md:  0 6px 18px rgba(10,31,68,.08), 0 2px 6px rgba(10,31,68,.06);
  --shadow-lg:  0 24px 50px -12px rgba(10,31,68,.22);

  --radius:   14px;
  --radius-sm:10px;
  --radius-lg:22px;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--azure); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--tint { background: var(--surface); }
.section--navy { background: var(--navy); color: #c9d6ea; }
.section--navy h2, .section--navy h3 { color: #fff; }
.center { text-align: center; }
.measure { max-width: 720px; margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--azure); margin-bottom: .9rem;
}
.section--navy .eyebrow { color: var(--teal); }
.lead { font-size: 1.18rem; color: var(--muted); }
.section--navy .lead { color: #aebfd8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .95em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px rgba(11,92,216,.32); }
.btn--primary:hover { box-shadow: 0 12px 26px rgba(11,92,216,.42); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--azure); color: var(--azure); }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); }
.btn--lg { padding: 1.1em 2em; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand span b { color: var(--azure); }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--body); font-weight: 600; font-size: .96rem; padding: .55em .85em; border-radius: 8px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--azure); background: var(--surface-2); text-decoration: none; }
.nav-cta { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 22px;
    gap: .2rem; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .8em .6em; }
  .nav-cta { margin: .4rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-hero); color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(540px 380px at 85% -10%, rgba(0,183,195,.35), transparent 60%),
    radial-gradient(480px 420px at 10% 110%, rgba(61,130,239,.35), transparent 60%);
}
.hero .container { position: relative; z-index: 1; padding-top: clamp(60px, 10vw, 110px); padding-bottom: clamp(60px, 10vw, 110px); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: var(--teal); }
.hero p { color: #cfe0fb; font-size: 1.2rem; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: 2.6rem; align-items: center; opacity: .9; }
.hero-badges span { font-size: .86rem; font-weight: 600; color: #bcd0f2; display: inline-flex; align-items: center; gap: .5em; }
.hero-badges svg { width: 18px; height: 18px; }

/* ---------- Grid & Cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfdcf0; }
.card h3 { margin-bottom: .5rem; }
.card p { margin-bottom: 0; color: var(--body); font-size: .98rem; }
.card a.card-link { display: inline-flex; align-items: center; gap: .35em; margin-top: 1rem; font-weight: 600; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(11,92,216,.12), rgba(0,183,195,.14)); color: var(--azure);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }

/* Feature list with ticks */
.ticks { list-style: none; padding: 0; margin: 1.2rem 0; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: .7rem; color: var(--body); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.35rem; height: 1.35rem;
  background: var(--grad-brand); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/72% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/72% no-repeat;
}
.section--navy .ticks li { color: #c9d6ea; }

/* ---------- Split / Media rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 820px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; text-align: center; }
@media (max-width: 720px){ .stats { grid-template-columns: repeat(2,1fr); } }
.stat .num { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: #fff; letter-spacing: -.03em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .label { font-size: .92rem; color: #aebfd8; }

/* Logos / partner strip */
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.4rem; }
.trust .pill { font-weight: 700; color: var(--muted); font-size: .95rem; padding: .5em 1.1em; border: 1px solid var(--line); border-radius: 999px; background: #fff; }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.6rem 4.6rem; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.4rem; top: 1.5rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--grad-brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1rem;
}
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; font-size: .96rem; }

/* App showcase */
.app-card { display: flex; gap: 1.4rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.app-card .app-emoji { font-size: 2.4rem; line-height: 1; flex: 0 0 auto; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: var(--surface); }
.app-card h3 { margin-bottom: .25rem; }
.app-card p { margin-bottom: .6rem; font-size: .96rem; }
.store-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.store-links a { font-size: .85rem; font-weight: 600; padding: .4em .9em; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.store-links a:hover { border-color: var(--azure); color: var(--azure); text-decoration: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-hero); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.4rem, 5vw, 3.6rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(420px 300px at 100% 0, rgba(0,183,195,.4), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0fb; max-width: 56ch; margin-inline: auto; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .4rem; font-size: .95rem; }
.field .req { color: var(--azure); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: .8em .95em;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fcfdff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(11,92,216,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { margin-top: 1rem; padding: .9em 1.1em; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; display: none; }
.form-status.show { display: block; }
.form-status.success { background: #e7f8ef; color: #0a7a43; border: 1px solid #b8eccf; }
.form-status.error { background: #fdecec; color: #b3261e; border: 1px solid #f5c2c0; }
.btn[disabled] { opacity: .65; cursor: not-allowed; transform: none; }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.2rem; margin-bottom: .8rem; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--azure); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { padding-bottom: .4rem; }
.faq p { padding-bottom: 1.2rem; margin: 0; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--grad-hero); color: #fff; }
.page-hero .container { padding-top: clamp(48px, 8vw, 80px); padding-bottom: clamp(48px, 8vw, 80px); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero p { color: #cfe0fb; max-width: 60ch; font-size: 1.15rem; }
.breadcrumb { font-size: .85rem; color: #9fb6dc; margin-bottom: 1rem; }
.breadcrumb a { color: #cfe0fb; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9fb0c9; padding: clamp(48px, 7vw, 72px) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #9fb0c9; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand span b { color: var(--teal); }
.footer-brand p { font-size: .95rem; max-width: 36ch; }
.footer-locations { display: flex; gap: 1.4rem; margin-top: 1rem; }
.footer-locations strong { color: #fff; display: block; font-size: .9rem; }
.footer-locations span { font-size: .85rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .85rem; }

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.stack > * + * { margin-top: 1rem; }
.pill-tag { display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color: var(--teal-dark); background: rgba(0,183,195,.12); padding:.35em .8em; border-radius:999px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; transition:none; } html{scroll-behavior:auto;} }
.skip-link { position:absolute; left:-9999px; top:0; background:#fff; color:var(--ink); padding:.6em 1em; z-index:100; border-radius:0 0 8px 0; }
.skip-link:focus { left:0; }
