/* Amaze Homepage v1.1 — flat rules, every selector scoped to #amaze-homepage.
   Every text colour is set explicitly so theme styles can never make text unreadable. */

body.amaze-page { margin: 0; background: #fff; }
.amaze-skip { position: absolute; left: -9999px; top: 0; background: #fff; color: #061a2d; padding: 10px 16px; z-index: 100; }
.amaze-skip:focus { left: 8px; top: 8px; }

#amaze-homepage {
  --navy: #061a2d;
  --blue: #078ff5;
  --blue-dark: #0658a0;
  --cyan: #16c8ff;
  --text: #0b2034;
  --muted: #3f566b;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
#amaze-homepage *, #amaze-homepage *::before, #amaze-homepage *::after { box-sizing: border-box; }
#amaze-homepage img { max-width: 100%; height: auto; display: block; border: 0; }
#amaze-homepage a { text-decoration: none; color: inherit; }
#amaze-homepage a:focus-visible, #amaze-homepage button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
#amaze-homepage ul, #amaze-homepage ol { margin: 0; padding: 0; list-style: none; }
#amaze-homepage p { margin: 0 0 1em; }
#amaze-homepage h1, #amaze-homepage h2, #amaze-homepage h3 { font-family: inherit; font-weight: 800; letter-spacing: 0; text-transform: none; }
#amaze-homepage .container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ---------- Header (white, so the logo's blue + orange read clearly) ---------- */
#amaze-homepage .top { background: #fff; color: var(--navy); position: relative; z-index: 10; box-shadow: 0 2px 14px #06306a1f; }
#amaze-homepage .nav { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
#amaze-homepage .logo { display: block; flex: 0 0 auto; }
#amaze-homepage .logo img { width: 270px; height: auto; }
#amaze-homepage .menu { display: flex; gap: 22px; font-size: 15px; font-weight: 700; }
#amaze-homepage .menu a { color: var(--navy); padding: 6px 0; border-bottom: 2px solid transparent; }
#amaze-homepage .menu a:hover { color: var(--blue-dark); border-bottom-color: #d2691e; }
#amaze-homepage .cta { background: var(--blue-dark); color: #fff; padding: 13px 22px; border-radius: 7px; font-weight: 700; font-size: 15px; white-space: nowrap; }
#amaze-homepage .cta:hover { background: #04437a; }
#amaze-homepage .nav-toggle { display: none; background: #fff; border: 1px solid #9db8cf; border-radius: 6px; width: 44px; height: 44px; cursor: pointer; padding: 0; position: relative; }
#amaze-homepage .nav-toggle span, #amaze-homepage .nav-toggle span::before, #amaze-homepage .nav-toggle span::after { content: ""; position: absolute; left: 11px; width: 20px; height: 2px; background: var(--navy); }
#amaze-homepage .nav-toggle span { top: 20px; }
#amaze-homepage .nav-toggle span::before { left: 0; top: -6px; }
#amaze-homepage .nav-toggle span::after { left: 0; top: 6px; }

/* ---------- Hero ---------- */
#amaze-homepage .hero { background: linear-gradient(115deg, #061a2d 0%, #092e4c 60%, #061a2d 100%); color: #fff; padding: 60px 0 52px; }
#amaze-homepage .hero-grid { display: grid; grid-template-columns: 42% 58%; align-items: center; gap: 30px; }
#amaze-homepage .eyebrow { color: #5fd6ff; font-size: 14px; letter-spacing: 2px; font-weight: 800; }
#amaze-homepage .hero h1 { color: #fff; font-size: 50px; line-height: 1.08; margin: 12px 0 16px; }
#amaze-homepage .hero h1 .accent { color: #5fd6ff; display: block; font-size: 34px; line-height: 1.15; margin-top: 8px; }
#amaze-homepage .hero p { color: #e3edf6; font-size: 17px; line-height: 1.65; max-width: 540px; }
#amaze-homepage .buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
#amaze-homepage .btn { display: inline-block; padding: 14px 24px; border-radius: 7px; background: var(--blue-dark); color: #fff; font-weight: 700; font-size: 15px; border: 2px solid var(--blue-dark); }
#amaze-homepage .btn:hover { background: #04437a; border-color: #04437a; }
#amaze-homepage .btn.outline { background: transparent; border-color: #5fd6ff; color: #fff; }
#amaze-homepage .btn.outline:hover { background: #ffffff1f; }
#amaze-homepage .hero-art { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
#amaze-homepage .hero-card { display: flex; flex-direction: column; justify-content: flex-start; gap: 18px; padding: 18px 12px 18px; border-radius: 12px; color: #fff; border: 1px solid #ffffff2e; min-height: 250px; }
#amaze-homepage .hero-card img { width: 100%; height: 110px; object-fit: contain; }
#amaze-homepage .hero-card b { display: block; min-height: 3.9em; font-size: 14px; line-height: 1.35; letter-spacing: .4px; color: #fff; }
#amaze-homepage .hero-card:nth-child(1) { background: linear-gradient(160deg, #0757a0, #062e5c); }
#amaze-homepage .hero-card:nth-child(2) { background: linear-gradient(160deg, #00796b, #005a59); }
#amaze-homepage .hero-card:nth-child(3) { background: linear-gradient(160deg, #6334d4, #382087); }
#amaze-homepage .hero-card:nth-child(4) { background: linear-gradient(160deg, #b34e05, #8a3a00); }
#amaze-homepage .audience { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px; font-size: 14.5px; font-weight: 700; color: #e3edf6; }

/* ---------- Generic section ---------- */
#amaze-homepage section { padding: 56px 0; }
#amaze-homepage .section-eyebrow { font-size: 13px; letter-spacing: 2px; color: var(--blue-dark); font-weight: 800; }
#amaze-homepage .section-title { color: var(--navy); font-size: 32px; line-height: 1.2; margin: 8px 0 10px; }
#amaze-homepage .section-sub { color: var(--muted); font-size: 17px; margin: 0 0 26px; }

/* ---------- Four pillars ---------- */
#amaze-homepage .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
#amaze-homepage .card { display: flex; flex-direction: column; border-radius: 12px; padding: 20px 22px 24px; color: #fff; box-shadow: 0 6px 20px #0a294226; }
#amaze-homepage .card-art { background: #ffffff1a; border-radius: 10px; padding: 8px 10px; margin-bottom: 18px; }
#amaze-homepage .card-art img { width: 100%; height: 112px; object-fit: contain; }
#amaze-homepage .card h3 { color: #fff; font-size: 20px; line-height: 1.25; margin: 0 0 10px; min-height: 2.5em; }
#amaze-homepage .card p { color: #fff; font-size: 15px; line-height: 1.55; margin: 0 0 14px; }
#amaze-homepage .card ul.checks { font-size: 14.5px; line-height: 1.45; margin: 0 0 20px; }
#amaze-homepage .card ul.checks li { position: relative; padding: 5px 0 5px 24px; color: #fff; }
#amaze-homepage .card ul.checks li::before { content: "\2713"; position: absolute; left: 0; top: 5px; color: #ffd84d; font-weight: 800; }
#amaze-homepage .card.blue   { background: linear-gradient(150deg, #0757a0, #062e5c); }
#amaze-homepage .card.green  { background: linear-gradient(150deg, #00796b, #005a59); }
#amaze-homepage .card.purple { background: linear-gradient(150deg, #6334d4, #382087); }
#amaze-homepage .card.orange { background: linear-gradient(150deg, #b34e05, #8a3a00); }
#amaze-homepage .card .mini-btn { margin-top: auto; align-self: flex-start; display: inline-block; background: #fff; color: #0a3c66; padding: 11px 16px; border-radius: 7px; font-size: 14px; font-weight: 800; }
#amaze-homepage .card .mini-btn:hover { background: #ffd84d; color: #061a2d; }

/* ---------- Featured projects ---------- */
#amaze-homepage .projects { background: #f2f7fb; }
#amaze-homepage .project-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 16px; margin-top: 26px; }
#amaze-homepage .project { grid-column: span 2; display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 16px #0a29422b; transition: transform .2s, box-shadow .2s; }
#amaze-homepage .project:hover { transform: translateY(-4px); box-shadow: 0 10px 24px #0a294238; }
#amaze-homepage .project-img { aspect-ratio: 400 / 260; background: #0a3c66; overflow: hidden; }
#amaze-homepage .project-img img { width: 100%; height: 100%; object-fit: cover; }
#amaze-homepage .project-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 14px 14px 16px; }
#amaze-homepage .project-body h3 { color: var(--navy); font-size: 16px; line-height: 1.3; margin: 0; min-height: 2.6em; }
#amaze-homepage .project-body small { display: inline-block; align-self: flex-start; background: #e3f0fa; color: #0a3c66; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* ---------- Process ---------- */
#amaze-homepage .process { background: #052541; color: #fff; }
#amaze-homepage .process .section-eyebrow { color: #5fd6ff; }
#amaze-homepage .process .section-title { color: #fff; }
#amaze-homepage .process p { color: #dbe8f3; font-size: 16px; }
#amaze-homepage .process-grid { display: grid; grid-template-columns: 1.2fr 3fr; gap: 35px; align-items: center; }
#amaze-homepage .steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
#amaze-homepage .step { text-align: center; }
#amaze-homepage .circle { width: 54px; height: 54px; border: 2px solid #5fd6ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: #5fd6ff; font-weight: 800; font-size: 16px; }
#amaze-homepage .step b { display: block; min-height: 2.7em; color: #fff; font-size: 15px; margin-bottom: 4px; }
#amaze-homepage .step p { font-size: 13.5px; color: #c5d7e6; line-height: 1.45; margin: 0; }

/* ---------- Tools ---------- */
#amaze-homepage .tools { background: #eaf5fb; }
#amaze-homepage .tools .section-sub { margin-bottom: 20px; }
#amaze-homepage .tool-grid { display: grid; grid-template-columns: 1.2fr 3fr; gap: 28px; align-items: center; }
#amaze-homepage .tool-boxes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
#amaze-homepage .tool { background: #fff; color: var(--navy); border: 1px solid #c9dfec; border-radius: 10px; padding: 18px 14px; font-size: 15px; font-weight: 800; }
#amaze-homepage .tool span { display: block; color: #0a5a96; margin-top: 10px; font-size: 13.5px; font-weight: 400; line-height: 1.5; }

/* ---------- Why ---------- */
#amaze-homepage .why { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 22px; }
#amaze-homepage .why > div { border-left: 3px solid #d2691e; padding-left: 16px; }
#amaze-homepage .why b { display: block; color: var(--navy); font-size: 16px; margin-bottom: 6px; }
#amaze-homepage .why p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---------- Footer ---------- */
#amaze-homepage footer { background: var(--navy); color: #cfdeea; padding: 42px 0; }
#amaze-homepage .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 28px; }
#amaze-homepage .foot-logo { display: inline-block; background: #fff; border-radius: 10px; padding: 8px 14px; margin-bottom: 14px; }
#amaze-homepage .foot-logo img { width: 240px; height: auto; }
#amaze-homepage .fh { color: #fff; font-weight: 800; font-size: 16px; margin: 0 0 10px; }
#amaze-homepage .footer-grid p, #amaze-homepage .footer-grid a { font-size: 14.5px; line-height: 1.9; color: #cfdeea; }
#amaze-homepage .footer-grid p { margin: 0 0 6px; }
#amaze-homepage .footer-grid a:hover { color: #5fd6ff; }
#amaze-homepage .footer-grid .foot-logo { padding: 8px 14px; }

/* ---------- Tablet / small laptop ---------- */
@media (max-width: 1100px) {
  #amaze-homepage .menu { gap: 16px; font-size: 14px; }
  #amaze-homepage .logo img { width: 230px; }
  #amaze-homepage .cards { grid-template-columns: repeat(2, 1fr); }
  #amaze-homepage .project-grid { grid-template-columns: repeat(6, 1fr); }
  #amaze-homepage .project:nth-child(4) { grid-column: 2 / span 2; }
  #amaze-homepage .project:nth-child(5) { grid-column: 4 / span 2; }
  #amaze-homepage .tool-boxes { grid-template-columns: repeat(3, 1fr); }
  #amaze-homepage .why { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  #amaze-homepage .nav-toggle { display: block; }
  #amaze-homepage .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-top: 1px solid #d5e3ee; box-shadow: 0 10px 20px #06306a26; padding: 8px 28px 16px; font-size: 16px; }
  #amaze-homepage .menu.open { display: flex; }
  #amaze-homepage .menu a { padding: 13px 0; border-bottom: 1px solid #e3edf4; }
  #amaze-homepage .hero-grid, #amaze-homepage .process-grid, #amaze-homepage .tool-grid { grid-template-columns: 1fr; }
  #amaze-homepage .hero h1 { font-size: 42px; }
  #amaze-homepage .steps { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  #amaze-homepage .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Phone ---------- */
@media (max-width: 600px) {
  #amaze-homepage .container { padding: 0 18px; }
  #amaze-homepage .nav { min-height: 72px; gap: 12px; }
  #amaze-homepage .logo img { width: 200px; }
  #amaze-homepage .cta { display: none; }
  #amaze-homepage .nav-toggle { margin-left: auto; }
  #amaze-homepage .menu { padding: 8px 18px 16px; }
  #amaze-homepage .hero { padding: 40px 0 36px; }
  #amaze-homepage .hero h1 { font-size: 36px; }
  #amaze-homepage .hero h1 .accent { font-size: 26px; }
  #amaze-homepage .hero-art { grid-template-columns: repeat(2, 1fr); }
  #amaze-homepage .hero-card { min-height: 0; }
  #amaze-homepage .buttons { flex-direction: column; }
  #amaze-homepage .btn { text-align: center; }
  #amaze-homepage .cards { grid-template-columns: 1fr; }
  #amaze-homepage .card h3 { min-height: 0; }
  #amaze-homepage .project-grid { grid-template-columns: 1fr; }
  #amaze-homepage .project, #amaze-homepage .project:nth-child(4), #amaze-homepage .project:nth-child(5) { grid-column: auto; }
  #amaze-homepage .project-body h3 { min-height: 0; }
  #amaze-homepage .tool-boxes, #amaze-homepage .why { grid-template-columns: 1fr; }
  #amaze-homepage .steps { grid-template-columns: repeat(2, 1fr); }
  #amaze-homepage .step b { min-height: 0; }
  #amaze-homepage .footer-grid { grid-template-columns: 1fr; }
  #amaze-homepage .section-title { font-size: 27px; }
}


/* v1.2 image enhancement: photographic visuals for the four pillars.
   All original typography, copy, spacing and colour system remain in place. */
#amaze-homepage .hero-card {
  position: relative;
  overflow: hidden;
  gap: 0;
  padding: 0;
  min-height: 250px;
  transition: transform .2s ease, box-shadow .2s ease;
}
#amaze-homepage a.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px #0004;
}
#amaze-homepage .hero-photo {
  display: block;
  width: 100%;
  height: 155px;
  background-size: cover;
  background-position: center;
}
#amaze-homepage .hero-card::after {
  content: "";
  position: absolute;
  inset: 100px 0 0;
  background: linear-gradient(180deg, transparent 0%, #061a2d 78%);
  pointer-events: none;
}
#amaze-homepage .hero-card b {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding: 15px 12px 18px;
  margin-top: -3px;
}
#amaze-homepage .hero-arrow { float: right; color: #5fd6ff; font-size: 18px; }
#amaze-homepage .photo-tech .hero-photo,
#amaze-homepage .banner-tech { background-image: url("img/banner-tech.webp"); }
#amaze-homepage .photo-health .hero-photo,
#amaze-homepage .banner-health { background-image: url("img/banner-health.webp"); }
#amaze-homepage .photo-research .hero-photo,
#amaze-homepage .banner-research { background-image: url("img/banner-research.webp"); }
#amaze-homepage .photo-training .hero-photo,
#amaze-homepage .banner-training { background-image: url("img/banner-training.webp"); }
#amaze-homepage .card-art.photo-banner {
  min-height: 150px;
  height: 150px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
#amaze-homepage .card-art.photo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #061a2d12, #061a2d38);
}
@media (max-width: 900px) {
  #amaze-homepage .hero-grid { grid-template-columns: 1fr; }
  #amaze-homepage .hero-art { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  #amaze-homepage .hero-art { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #amaze-homepage .hero-card { min-height: 215px; }
  #amaze-homepage .hero-photo { height: 125px; }
}

/* v1.3 clickable project cards */
#amaze-homepage a.project {display:block;text-decoration:none;color:inherit;transition:transform .2s ease,box-shadow .2s ease}
#amaze-homepage a.project:hover {transform:translateY(-4px);box-shadow:0 10px 26px rgba(0,25,65,.18)}
#amaze-homepage a.project:focus-visible {outline:3px solid #139dff;outline-offset:3px}
