/* ===========================================================
   Rosylvan Tech: stylesheet
   Palette taken from the brand posters (navy + teal/blue/purple,
   with pink and orange accents).
   Change a colour once here and it updates across the site.
   =========================================================== */
:root {
  --navy-900: #050f2b;
  --navy-800: #081a44;
  --navy-700: #0c2459;
  --teal: #00c9b7;
  --blue: #2f6bff;
  --purple: #7a4dff;
  --pink: #ec3a9c;
  --orange: #ff9a2e;

  --ink: #0b1430;
  --muted: #55607a;
  --bg: #ffffff;
  --bg-soft: #f3f6fd;
  --line: #e1e7f5;

  --grad-brand: linear-gradient(135deg, var(--teal), var(--blue));
  --grad-wide: linear-gradient(90deg, var(--teal), var(--blue) 50%, var(--purple));
  --grad-cta: linear-gradient(100deg, var(--purple), var(--pink));

  --radius: 18px;
  --shadow: 0 10px 30px rgba(8, 26, 68, .10);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

.grad-text {
  background: var(--grad-wide);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 9px 18px; font-size: .92rem; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 22px rgba(47, 107, 255, .35); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.order-form .btn-ghost { color: var(--blue); border-color: var(--blue); }
.btn-light { background: #fff; color: var(--purple); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.7); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 15, 43, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); letter-spacing: .04em; font-size: 1.05rem; }
.brand-text small { color: var(--teal); letter-spacing: .28em; text-transform: uppercase; font-size: .62rem; margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: #cfd9f5; text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--teal); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(47,107,255,.35), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(0,201,183,.18), transparent 60%),
    var(--navy-900);
  color: #fff;
  padding: 80px 0 130px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.02em; }
.lead { font-size: 1.15rem; color: #cdd7f2; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: #aebbe0; font-size: .92rem; }
.hero-points li::before { content: "✓ "; color: var(--teal); font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.section:not(.cta) .eyebrow { color: #0a9d90; }

/* hero illustration (pure CSS, no image needed) */
.hero-visual { display: flex; justify-content: center; }
.orbit {
  position: relative; width: min(420px, 90vw); aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(0,201,183,.35);
  box-shadow: inset 0 0 80px rgba(47,107,255,.25);
  display: grid; place-items: center;
}
.laptop { width: 62%; transform: rotate(-4deg); }
.laptop .screen {
  aspect-ratio: 16/10; border-radius: 10px; border: 3px solid #4d7dff;
  background: linear-gradient(160deg, #0d2a74, #0a1b4d);
  display: grid; place-items: center;
  box-shadow: 0 0 40px rgba(47,107,255,.55);
}
.laptop .screen span { font: 700 2.6rem var(--font-head); color: var(--teal); }
.laptop .base { height: 12px; margin: 0 -8%; border-radius: 0 0 14px 14px; background: linear-gradient(#4d7dff, #1c3d9c); }
.chip {
  position: absolute; width: 54px; height: 54px; border-radius: 14px;
  background: rgba(8,26,68,.85); border: 1.5px solid var(--teal);
  display: grid; place-items: center; box-shadow: 0 0 20px rgba(0,201,183,.35);
}
.chip svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip-1 { top: 2%; left: 22%; }
.chip-2 { top: 8%; right: 10%; }
.chip-3 { top: 42%; left: -4%; }
.chip-4 { bottom: 14%; right: -4%; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2, .about-copy h2, .order-intro h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(8,26,68,.16); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.c-teal .icon { background: linear-gradient(135deg, #00d6c2, #00a99a); }
.c-blue .icon { background: linear-gradient(135deg, #4b83ff, #2456e6); }
.c-purple .icon { background: linear-gradient(135deg, #9a6bff, #6a3ae8); }
.c-pink .icon { background: linear-gradient(135deg, #ff5db1, #e02a8d); }
.c-orange .icon { background: linear-gradient(135deg, #ffb04d, #f28a14); }
.card-link {
  align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer;
  font: 600 .93rem var(--font-body); color: var(--blue);
}
.card-link:hover { color: var(--purple); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.why { display: flex; gap: 16px; background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.why h3 { font-size: 1.05rem; margin-bottom: .2em; }
.why p { margin: 0; color: var(--muted); font-size: .93rem; }
.tick { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; }
.t-teal { background: var(--teal); } .t-pink { background: var(--pink); } .t-orange { background: var(--orange); }
.t-blue { background: var(--blue); } .t-purple { background: var(--purple); }

/* ---------- About / CEO ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.ceo-photo { margin: 0; position: relative; }
.ceo-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border-radius: 26px; background: var(--grad-brand); opacity: .9; z-index: 0;
}
.ceo-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 6/7; object-fit: cover; border-radius: 26px; background: var(--navy-800); }
.ceo-photo figcaption {
  position: relative; z-index: 2; display: flex; flex-direction: column;
  margin: -34px 20px 0; padding: 14px 20px; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
}
.ceo-photo figcaption span { color: var(--muted); font-size: .88rem; }
.about-copy p { color: #3b4663; }
blockquote {
  margin: 26px 0 0; padding: 18px 22px; border-left: 4px solid var(--teal);
  background: var(--bg-soft); border-radius: 0 14px 14px 0;
  font: 600 1.05rem var(--font-head); color: var(--navy-800);
}
blockquote cite { display: block; margin-top: 8px; font: 500 .85rem var(--font-body); color: var(--muted); font-style: normal; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }
.num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad-brand); color: #fff; font: 700 1.1rem var(--font-head); margin-bottom: 14px; }

/* ---------- Order form ---------- */

.order-form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font: 700 1.05rem var(--font-head); margin-bottom: 14px; padding: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.checks label {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 12px; font-size: .93rem; transition: .15s;
}
.checks label:has(input:checked) { border-color: var(--blue); background: rgba(47,107,255,.07); }
.checks input, .inline-check input { accent-color: var(--blue); width: 17px; height: 17px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(47,107,255,.25); border-color: var(--blue); }
.inline-check { display: flex; align-items: center; gap: 10px; font-size: .93rem; }
.error { color: #d6264f; font-size: .88rem; margin: 10px 0 0; }
.field.invalid input { border-color: #d6264f; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- CTA + footer ---------- */
.cta { background: var(--grad-cta); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.cta h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: .2em; }
.cta p { margin: 0; opacity: .9; }
.cta-links { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { background: var(--navy-900); color: #aebbe0; padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.site-footer a { color: var(--teal); text-decoration: none; }
.site-footer p { margin: 0; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid,   .hero-visual { order: -1; }
  .orbit { width: min(300px, 80vw); }
  .ceo-photo { max-width: 380px; margin-inline: auto; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--navy-900); padding: 8px 20px 20px; display: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 14px; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .order-form { padding: 22px 18px; }
  .brand-text small { letter-spacing: .18em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ===== Revision 2 ===== */

/* header: staff sign in button */
.btn-nav-outline { color: #fff; border-color: rgba(255,255,255,.35); gap: 8px; }
.btn-nav-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-nav-outline svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav { gap: 22px; }

/* stats band */
.stats { position: relative; z-index: 2; margin-top: -64px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 18px 45px rgba(8,26,68,.18); padding: 8px 0;
}
.stat { position: relative; text-align: center; padding: 24px 12px; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stat strong {
  display: block; font: 800 clamp(2rem, 4vw, 2.9rem)/1 var(--font-head);
  background: var(--grad-wide); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { display: block; margin-top: 8px; color: var(--muted); font-weight: 500; font-size: .92rem; }
.stats + .section { padding-top: 72px; }

/* order section */
.section-head.center { margin-inline: auto; text-align: center; margin-bottom: 36px; }
.section-order { background: linear-gradient(180deg, var(--bg-soft), #fff 85%); }
.assure { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; font-size: .9rem; font-weight: 500; color: var(--navy-800); }
.assure li::before { content: "✓ "; color: #0a9d90; font-weight: 700; }

.order-form { max-width: 1060px; margin: 0 auto; padding: 0; overflow: hidden; }
.of-grid { display: grid; grid-template-columns: .9fr 1.1fr; }
.of-col { padding: 30px 32px 26px; }
.of-services { background: var(--bg-soft); border-right: 1px solid var(--line); }
.order-form fieldset { margin: 0; }
.order-form legend { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.step-badge { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad-brand); color: #fff; font: 700 .82rem var(--font-head); }
.hint { color: var(--muted); font-size: .86rem; margin: 0 0 14px 36px; }
.of-services .checks { grid-template-columns: 1fr; gap: 8px; }
.of-services .checks label { background: #fff; padding: 10px 14px; }
.of-details .field { margin-bottom: 14px; }
.of-details .row { gap: 14px; }
.of-details legend { margin-bottom: 16px; }
.of-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 32px; border-top: 1px solid var(--line); background: #fff;
}
.of-foot p { margin: 0; }

/* staff page */
.staff-page {
  min-height: 100vh; display: grid; place-items: center; padding: 24px; color: #fff;
  background: radial-gradient(800px 500px at 85% 10%, rgba(47,107,255,.35), transparent 60%),
              radial-gradient(600px 400px at 5% 95%, rgba(0,201,183,.18), transparent 60%), var(--navy-900);
}
.staff-card { width: min(440px, 100%); padding: 38px 32px; border-radius: 24px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.staff-card .brand { justify-content: center; margin-bottom: 24px; }
.staff-card h1 { font-size: 1.7rem; text-align: center; margin-bottom: .3em; }
.staff-note { text-align: center; color: #aebbe0; font-size: .92rem; margin-bottom: 26px; }
.staff-card .field label { color: #cfd9f5; }
.staff-card input[type="email"], .staff-card input[type="password"], .staff-card input[type="text"] {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px; color: #fff;
  background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.18);
}
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--teal); font: 600 .85rem var(--font-body); cursor: pointer; padding: 6px; }
.staff-submit { width: 100%; margin-top: 6px; }
.staff-status { min-height: 1.4em; margin: 14px 0 0; font-size: .9rem; text-align: center; }
.staff-status.is-error { color: #ff7a9a; }
.staff-status.is-info { color: #9fd8ff; }
.staff-foot { text-align: center; margin: 22px 0 0; font-size: .85rem; color: #aebbe0; }
.staff-foot a { color: var(--teal); text-decoration: none; }

@media (max-width: 1080px) { .nav { gap: 16px; } .nav a:not(.btn) { font-size: .88rem; } }
@media (max-width: 900px) {
  .of-grid { grid-template-columns: 1fr; }
  .of-services { border-right: 0; border-bottom: 1px solid var(--line); }
  .of-col { padding: 26px 22px; }
  .of-foot { padding: 18px 22px; }
  .nav .btn-nav-outline { margin-top: 14px; justify-content: center; }
  .nav .btn-nav-outline + .btn { margin-top: 10px; }
}
@media (max-width: 560px) {
  .stats { margin-top: -48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat:nth-child(3)::before { display: none; }
  .of-foot .form-actions, .of-foot .btn { width: 100%; }
}

.hero-grid > *, .about-grid > * { min-width: 0; }
.hero-actions .btn { text-align: center; }
.cta-inner > div:first-child { max-width: 640px; }
