/* style.css : colors, fonts, shapes. Change the colors in :root only. */
:root {
  /* Egyptian blue brand colors */
  --blue: #1034a6;
  --blue-soft: #4568d4;
  --tint: #dde5f8;

  --paper: #f4f5f7;
  --white: #ffffff;
  --text: #14203d;
  --muted: #55607a;
  --line: #d3d9e6;
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1080px;

  /* Old names still used by browse.css and provider.css. They point to the blues above. */
  --plum: var(--blue);
  --plum-soft: var(--blue-soft);
  --blush: var(--tint);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); color: var(--text); line-height: 1.6; background-color: var(--paper);
  /* paper grain texture, drawn by the browser (no image file needed) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06  0 0 0 0 0.2  0 0 0 0 0.65  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), 92%); margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-head); color: var(--blue); line-height: 1.12; }
h1 { font-size: clamp(2.3rem, 7.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 700; margin-bottom: .6rem; }
h3 { font-size: 1.2rem; font-weight: 700; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-block; padding: .7rem 1.3rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--blue); cursor: pointer; font: inherit; font-weight: 700; }
.btn-main { background: var(--blue); color: var(--white); }
.btn-main:hover { background: var(--blue-soft); }
.btn-line { background: transparent; color: var(--blue); }
.btn-line:hover { background: var(--tint); }

/* Floating header */
.site-header { position: sticky; top: 10px; z-index: 10; margin: 10px auto 0; width: min(1180px, 95%); background: rgba(255,255,255,.78); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 22px; }
.bar { display: flex; align-items: center; gap: 1rem; padding: .6rem 1rem; flex-wrap: wrap; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--blue); text-decoration: none; margin-right: auto; }
.search { display: flex; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 3px 3px 1rem; flex: 1 1 280px; max-width: 420px; }
.search label { font-weight: 500; color: var(--muted); white-space: nowrap; margin-right: .4rem; }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; font: inherit; background: transparent; }
.search .btn { padding: .45rem 1.1rem; }
.nav { display: flex; gap: 1.2rem; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; }
.nav .btn { padding: .5rem 1.1rem; color: var(--white); }

/* Hero */
.hero { position: relative; text-align: center; padding: 4.5rem 0 2rem; overflow: hidden; }
.flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; stroke: var(--blue); fill: none; opacity: .13; stroke-width: 1.2; }
.badge { display: inline-block; background: var(--tint); border: 1px solid var(--blue-soft); color: var(--blue); font-size: .85rem; font-weight: 700; padding: .3rem .9rem; border-radius: 999px; margin-bottom: 1.4rem; }
.hero p.lead { max-width: 52ch; margin: 1.2rem auto 1.6rem; color: var(--muted); font-size: 1.1rem; }
.quick { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem 1.8rem; }
.quick a { font-weight: 700; color: var(--blue); text-decoration: none; }
.quick a::after { content: " \203A"; }
.quick a:hover { text-decoration: underline; }

/* Blob cards */
.blobs { display: flex; justify-content: center; align-items: flex-start; gap: 1.5rem; margin-top: 3rem; flex-wrap: wrap; }
.blob { width: min(300px, 90%); padding: 1.6rem 1.6rem 1.8rem; text-align: center; background: var(--white); border: 1.5px solid var(--blue); }
.blob:nth-child(1) { border-radius: 58% 42% 52% 48% / 46% 54% 46% 54%; transform: translateY(0); }
.blob:nth-child(2) { border-radius: 44% 56% 48% 52% / 54% 44% 56% 46%; transform: translateY(40px); }
.blob:nth-child(3) { border-radius: 52% 48% 40% 60% / 50% 56% 44% 50%; }
.photo { width: 110px; height: 110px; margin: 0 auto .8rem; border-radius: 50%; border: 1.5px dashed var(--blue-soft); background: var(--tint); display: grid; place-items: center; font-size: .75rem; color: var(--blue-soft); }
.blob p { color: var(--muted); font-size: .92rem; margin: .3rem 0 .8rem; }
.blob .btn { padding: .4rem 1rem; font-size: .9rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.intro { color: var(--muted); max-width: 54ch; margin-bottom: 2rem; }
.tracks { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.track { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; }
.track ol { margin: 1rem 0 0 1.2rem; }
.track li { margin-bottom: .6rem; color: var(--muted); }
.track li strong { color: var(--text); }
.trust { background: var(--blue); color: #d6e0f7; border-radius: 28px; padding: 2.5rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trust h2, .trust h3 { color: var(--white); }
.trust p { margin-top: .4rem; }
details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: .7rem; }
summary { font-weight: 700; cursor: pointer; color: var(--blue); }
details p { color: var(--muted); margin-top: .6rem; }
.loc-list { display: flex; flex-wrap: wrap; gap: .7rem; }
.loc { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; display: flex; gap: .6rem; align-items: center; }
.loc.off { opacity: .6; }
.tag { font-size: .75rem; font-weight: 700; background: var(--tint); color: var(--blue); padding: .1rem .5rem; border-radius: 999px; }

.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.site-footer a { margin-right: 1rem; text-decoration: none; }

@media (max-width: 760px) {
  .nav .hide-mobile { display: none; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .hero { padding-top: 3rem; }
  .blob:nth-child(2) { transform: none; }
  .trust { padding: 1.6rem; }
}

/* ---- v3 additions: search panel, 3 steps, students strip ---- */
.nav { margin-left: auto; }
.search-panel { max-width: 860px; margin: 2.2rem auto 0; background: rgba(255,255,255,.85); border: 1.5px solid var(--blue); border-radius: 26px; padding: 1.2rem; text-align: left; }
.search-grid { display: grid; gap: .8rem; grid-template-columns: 2fr 1fr 1fr 1fr; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--blue); margin-bottom: .25rem; }
.field input, .field select { width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--white); color: var(--text); }
.search-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.search-note { color: var(--muted); font-size: .9rem; }
.steps-blobs { margin-top: 2.5rem; align-items: stretch; }
.steps-blobs .blob { width: min(310px, 92%); }
.steps-blobs .blob:nth-child(2) { transform: translateY(36px); }
.art { width: 120px; height: 100px; margin: 0 auto .6rem; stroke: var(--blue); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art .soft { fill: var(--tint); stroke: none; }
.step-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; font-size: .85rem; margin-bottom: .4rem; }
.students { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--white); border: 1.5px solid var(--blue); border-radius: 28px 60px 28px 60px; padding: 2rem; }
.students p { color: var(--muted); max-width: 50ch; margin-top: .4rem; }
@media (max-width: 860px) { .search-grid { grid-template-columns: 1fr 1fr; } .field.wide { grid-column: 1 / -1; } }
@media (max-width: 760px) { .steps-blobs .blob:nth-child(2) { transform: none; } .search-grid { grid-template-columns: 1fr; } }

/* ---- services index ---- */
.svc-list { list-style: none; margin-top: 2rem; border-top: 1.5px solid var(--blue); }
.svc { display: flex; align-items: center; gap: 1rem; padding: 1.1rem .6rem; border-bottom: 1px solid var(--line); transition: background .2s; }
.svc-no { font-family: var(--font-head); font-weight: 700; color: var(--blue-soft); width: 2.2rem; flex-shrink: 0; }
.svc-name { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 3.6vw, 2rem); color: var(--blue); line-height: 1.1; }
.svc-note { display: block; font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--muted); margin-top: .2rem; }
.svc-stitch { flex: 1; border-bottom: 2px dashed var(--blue-soft); opacity: .45; min-width: 20px; }
.svc .btn { white-space: nowrap; padding: .5rem 1.1rem; font-size: .9rem; }
.svc.live:hover { background: var(--tint); }
.svc.soon .svc-name { color: var(--muted); }
.svc.soon .svc-stitch { opacity: .2; }
.btn-soon { background: transparent; border: 1.5px dashed var(--muted); color: var(--muted); cursor: not-allowed; }
@media (max-width: 600px) { .svc-stitch { display: none; } .svc { justify-content: space-between; } .svc-text { flex: 1; } }

/* ---- footer ---- */
.site-footer { position: relative; overflow: hidden; background: var(--blue); color: #d6e0f7; border-top: 0; border-radius: 36px 36px 0 0; margin-top: 2rem; padding: 3.5rem 0 1.5rem; }
.foot-flow { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 1.2; opacity: .09; }
.foot-inner { position: relative; width: min(var(--max), 92%); margin: 0 auto; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
.foot-logo { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: #fff; text-decoration: none; }
.foot-brand p { margin-top: .8rem; max-width: 32ch; }
.foot-col h4 { font-family: var(--font-head); color: #fff; font-size: 1.05rem; margin-bottom: .8rem; }
.site-footer .foot-col a { display: block; margin: 0 0 .5rem; color: #d6e0f7; text-decoration: none; }
.site-footer .foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-col p { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.ico { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: .9rem; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; border-top: 1px solid rgba(255,255,255,.2); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .9rem; }
.site-footer .foot-bottom a { margin: 0 0 0 1.2rem; color: #d6e0f7; text-decoration: none; }
.site-footer .foot-bottom a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } .site-footer .foot-bottom a { margin: 0 1.2rem 0 0; } }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; }