/* World Network Systems — site stylesheet */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-900: #0b1626;
  --navy-800: #10203a;
  --navy-700: #16294a;
  --navy-100: #e8edf5;
  --gold: #f5a800;
  --gold-dark: #d99400;
  --ink: #1c2733;
  --ink-soft: #46586c;
  --paper: #ffffff;
  --paper-soft: #f4f7fb;
  --line: #dbe4ef;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(11, 22, 38, 0.14), 0 16px 40px rgba(11, 22, 38, 0.12);
  --shadow-lg: 0 10px 24px rgba(11, 22, 38, 0.18), 0 24px 56px rgba(11, 22, 38, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; }
a { color: var(--navy-700); }
h1, h2, h3, h4 { font-family: var(--font-brand); line-height: 1.25; color: var(--navy-900); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--alt { background: var(--paper-soft); }
.section--dark { background: var(--navy-900); color: var(--navy-100); }
.section--dark h2, .section--dark h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46em; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 600; font-family: var(--font-brand); color: var(--gold-dark); margin-bottom: 10px; }
.section--dark .eyebrow { color: var(--gold); }

/* Buttons */
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-family: var(--font-brand); font-weight: 600; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; border: 2px solid transparent; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-dark); }
.btn--outline { border-color: currentColor; color: inherit; }
.btn--navy { background: var(--navy-800); color: #fff; }

/* Header */
.site-header { background: var(--navy-900); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 rgba(255,255,255,0.08); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--navy-100); text-decoration: none; padding: 10px 9px; border-radius: 6px; font-size: 0.88rem; font-weight: 500; font-family: var(--font-brand); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav .btn { margin-left: 8px; padding: 9px 18px; }
.dropdown { position: relative; }
.dropdown > button { background: none; border: 0; color: var(--navy-100); font: inherit; font-family: var(--font-brand); font-size: 0.88rem; font-weight: 500; padding: 10px 9px; cursor: pointer; border-radius: 6px; white-space: nowrap; }
.dropdown > button:hover { color: var(--gold); }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 300px; border-radius: 14px; padding: 12px; box-shadow: 0 18px 48px rgba(11,22,38,0.25); border: 1px solid var(--line); }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu--wide { display: none; grid-template-columns: 1fr 1fr; gap: 2px; width: 620px; }
.dropdown:hover .dropdown-menu--wide, .dropdown:focus-within .dropdown-menu--wide { display: grid; }
.dropdown-menu a { display: block; padding: 11px 13px; border-radius: 10px; color: var(--navy-900); font-weight: 600; white-space: normal; }
.dropdown-menu a:hover { background: var(--paper-soft); color: var(--navy-900); }
.dropdown-menu a:hover .nav-desc { color: var(--ink-soft); }
.dropdown-menu a[aria-current="page"] { color: var(--gold-dark); }
.nav-desc { display: block; font-size: 0.78rem; font-weight: 400; color: var(--ink-soft); margin-top: 2px; line-height: 1.4; font-family: var(--font); }

/* Hover tooltip for top-level links without submenus */
.nav > a { position: relative; }
.nav > a[data-tip]:not(.btn):hover::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 0; width: max-content; max-width: 260px; background: #fff; color: var(--ink-soft); font-size: 0.78rem; font-weight: 400; font-family: var(--font); line-height: 1.4; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(11,22,38,0.25); z-index: 60; white-space: normal; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { background: radial-gradient(1100px 500px at 75% -10%, var(--navy-700), var(--navy-900) 60%); color: var(--navy-100); padding: 88px 0; position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 1; transition: opacity 1.2s ease; }
.hero-media--waiting { opacity: 0; }
/* Stat tiles — solid colored panels in a light card */
.stat-panel { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 14px; }
.stat-panel__head { display: flex; align-items: center; gap: 8px; font-family: var(--font-brand); font-weight: 700; font-size: 0.9rem; color: var(--navy-100); padding: 2px 4px 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 14px 10px; border-radius: 10px; text-align: center; background: transparent; border: 0; }
.stat-tile__circle { position: relative; width: 148px; height: 148px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, var(--tile-bg-hi), var(--tile-bg) 65%, var(--tile-bg-lo) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; flex: 0 0 auto; box-shadow: 0 10px 26px rgba(0,0,0,0.32), inset 0 1px 1px rgba(255,255,255,0.35), inset 0 -10px 18px rgba(0,0,0,0.15); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.stat-tile__circle::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--tile-bg); opacity: 0.55; animation: stat-pulse 2.6s ease-out infinite; }
.stat-tile:hover .stat-tile__circle { transform: translateY(-4px) scale(1.03); box-shadow: 0 16px 34px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.4), inset 0 -10px 18px rgba(0,0,0,0.15); }
@keyframes stat-pulse { 0% { transform: scale(0.92); opacity: 0.55; } 75% { transform: scale(1.22); opacity: 0; } 100% { transform: scale(1.22); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stat-tile__circle::before { animation: none; } }
.stat-tile__icon { font-size: 1.65rem; line-height: 1; opacity: 0.95; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25)); }
.stat-tile__circle .stat-num { font-family: var(--font-brand); font-weight: 800; font-size: 1.2rem; line-height: 1.15; color: #fff; white-space: normal; text-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.stat-tile .stat-label { font-size: 0.88rem; font-weight: 600; color: var(--navy-100); line-height: 1.35; max-width: 15em; }
.stat-tile__circle--split { padding: 0; background: none; overflow: visible; opacity: 0.78; }
.stat-tile__circle--split .circle-mask { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: block; }
.stat-tile__circle--split .circle-half { height: 50%; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.stat-tile__circle--split .circle-half--top { background: rgba(255,255,255,0.75); }
.stat-tile__circle--split .circle-half--top img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stat-tile__circle--split .circle-half--bottom { background: linear-gradient(160deg, var(--tile-bg-hi), var(--tile-bg) 75%); }
.stat-tile__circle--split .circle-half--bottom .stat-num { font-size: 1.05rem; }
.stat-tile--blue { --tile-bg: #1f4d80; --tile-bg-hi: #3f7ab0; --tile-bg-lo: #0f2a46; }
.stat-tile--green { --tile-bg: #22733f; --tile-bg-hi: #3fa868; --tile-bg-lo: #0f3620; }
.stat-tile--gold { --tile-bg: #a97200; --tile-bg-hi: #d99f1f; --tile-bg-lo: #573b00; }
.stat-tile--red { --tile-bg: #932a20; --tile-bg-hi: #c0463a; --tile-bg-lo: #4a140e; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(7,10,15,0.88) 18%, rgba(7,10,15,0.5) 48%, rgba(7,10,15,0.08) 75%); z-index: 1; }
.hero .container { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .hero-media[data-video] { display: none; } }
.hero h1 { color: #fff; max-width: 17em; }
.hero .tagline { color: var(--gold); font-size: 1.25rem; font-weight: 700; margin: 14px 0 8px; }
.hero p { max-width: 40em; }
.hero .actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; right: -60px; top: -40px; width: 420px; opacity: 0.18; pointer-events: none; }
/* Trust strip — compact horizontal proof bar under the hero */
.trust-strip { background: var(--navy-900); padding: 14px 0; }
.trust-strip__row { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; text-align: center; margin: 0; }
.trust-strip__item { flex: 1 1 200px; min-width: 180px; padding: 8px 20px; border-left: 1px solid rgba(255,255,255,0.15); }
.trust-strip__item:first-child { border-left: 0; }
.trust-strip__num { display: block; color: var(--gold); font-family: var(--font-brand); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.trust-strip__label { display: block; color: var(--navy-100); font-size: 0.9rem; margin-top: 4px; }

/* Cards */
.grid { display: grid; gap: 24px; margin-top: 36px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; color: var(--gold-dark); }
.card .more:hover { text-decoration: underline; }
.section--dark .card { background: var(--navy-800); border-color: rgba(255,255,255,0.1); }
.section--dark .card p { color: var(--navy-100); }
.card .icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.card--photo-top { overflow: hidden; padding-top: 0; }
.card--photo-top .tier-photo { display: block; width: calc(100% + 56px); max-width: none; height: 170px; object-fit: cover; margin: 0 -28px 20px; }
.card--photo-top .icon { margin-top: 4px; }
.card .icon-img { width: 44px; height: 44px; object-fit: contain; margin-bottom: 12px; display: block; }

/* Team */
.team-card { text-align: center; }
.team-card__photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; display: block; border: 4px solid var(--gold); box-shadow: var(--shadow); }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { display: block; color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; }
.video-portrait { max-width: 320px; width: 100%; height: auto; display: block; margin: 0 auto; }

/* Quotes / reviews */
.review-row { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 24px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.review-row .quote { flex: 0 0 min(360px, 82vw); scroll-snap-align: start; }
.review-row::-webkit-scrollbar { height: 8px; }
.review-row::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; }
.review-row::-webkit-scrollbar-track { background: var(--line); border-radius: 999px; }
.quote { border-left: 4px solid var(--gold); padding: 18px 22px; background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.quote p { font-style: italic; color: var(--ink); }
.quote footer { margin-top: 10px; font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }

/* Logo strip */
.logo-strip { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; justify-content: center; margin-top: 28px; }
.logo-strip img { height: 46px; width: auto; filter: grayscale(1); opacity: 0.75; transition: 0.2s; }
.logo-strip img:hover { filter: none; opacity: 1; }

/* CTA band */
.cta-band { background: linear-gradient(100deg, var(--navy-800), var(--navy-900)); color: #fff; padding: 56px 0; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { color: #fff; }
.cta-band .sub { color: var(--navy-100); }
.cta-photo { width: 130px; height: 130px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); flex: 0 0 auto; }
@media (max-width: 640px) { .cta-photo { display: none; } }

/* Photo-side dark section (photo fills right ~3/4, fades to navy on left) */
.section--photo-side { position: relative; overflow: hidden; background: var(--navy-900); color: var(--navy-100); }
.section--photo-side::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 74%; background: var(--photo-side-img) center/cover no-repeat; z-index: 0; }
.section--photo-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-900) 26%, rgba(11,22,38,0.82) 55%, rgba(11,22,38,0.6) 100%); z-index: 0; }
.section--photo-side .container { position: relative; z-index: 1; }
.photo-side-media { position: absolute; top: 0; bottom: 0; right: 0; width: 74%; object-fit: cover; z-index: 0; opacity: 1; transition: opacity 1.2s ease; }
.photo-side-media--waiting { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .photo-side-media ~ .photo-side-media { display: none; } }
.section--photo-side h2, .section--photo-side h3 { color: #fff; }
.card--glass { background: rgba(255,255,255,0.07); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.15); }
.card--glass h3 { color: var(--gold); }
.card--glass p { color: #e8edf5; }

.section--photo-bg { position: relative; overflow: hidden; }
.section--photo-bg .bg-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.section--photo-bg .bg-overlay { position: absolute; inset: 0; background: rgba(11,22,38,0.82); z-index: 1; }
.section--photo-bg .container { position: relative; z-index: 2; }

/* Content pages */
.page-hero { background: var(--navy-900); color: var(--navy-100); padding: 56px 0; }
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 46em; margin-top: 10px; }
.prose { max-width: 760px; }
.prose h2 { margin: 40px 0 14px; }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 6px; }

/* Tables (pricing etc.) */
.table-wrap { overflow-x: auto; }
table.pricing { border-collapse: collapse; width: 100%; margin-top: 20px; }
table.pricing th, table.pricing td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
table.pricing th { background: var(--navy-900); color: #fff; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { font-weight: 700; font-size: 0.92rem; }
.form input, .form textarea, .form select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin-top: 6px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--navy-900); color: var(--navy-100); padding: 56px 0 28px; margin-top: 0; }
.footer-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.35; }
.footer-overlay { position: absolute; inset: 0; background: rgba(11,22,38,0.75); z-index: 1; }
.site-footer .container { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .footer-media { display: none; } }
.site-footer a { color: var(--navy-100); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-grid h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.88rem; color: #9fb0c4; }
.social-links { display: flex; gap: 14px; }
.social-links a { font-weight: 700; }

/* Utility */
.badge { display: inline-block; background: var(--gold); color: var(--navy-900); font-weight: 800; font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 900; }

/* Booking modal */
.booking-modal { position: fixed; inset: 0; background: rgba(11, 22, 38, 0.72); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.booking-modal__box { display: flex; flex-direction: column; width: min(1000px, 96vw); height: min(860px, 92vh); background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.45); }
.booking-modal__bar { display: flex; align-items: center; justify-content: space-between; background: var(--navy-900); color: #fff; padding: 10px 16px; font-family: var(--font-brand); font-weight: 600; font-size: 0.95rem; }
.booking-modal__newtab { color: var(--navy-100); font-size: 0.85rem; margin-right: 14px; text-decoration: none; }
.booking-modal__newtab:hover { color: var(--gold); }
.booking-modal__close { background: var(--gold); color: var(--navy-900); border: 0; border-radius: 999px; padding: 7px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.booking-modal__close:hover { background: var(--gold-dark); }
.booking-modal__box iframe { flex: 1; width: 100%; border: 0; }

/* Mobile */
@media (max-width: 920px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy-900); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 0; box-shadow: 0 12px 24px rgba(0,0,0,0.4); }
  .nav.open { display: flex; }
  .nav a, .dropdown > button { display: block; width: 100%; text-align: left; padding: 12px 8px; }
  .dropdown-menu, .dropdown-menu--wide { position: static; display: block; background: transparent; box-shadow: none; border: 0; width: auto; padding: 0 0 0 16px; }
  .dropdown-menu a { font-size: 0.9rem; opacity: 0.9; color: var(--navy-100); }
  .dropdown-menu a:hover { background: transparent; color: var(--gold); }
  .nav-desc { display: none; }
  .nav > a[data-tip]:hover::after { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 56px 0; }
}

/* IT Health Check quiz */
.quiz { max-width: 720px; margin: 0 auto; text-align: left; }
.quiz-q { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow); }
.quiz-q .q-title { font-weight: 700; margin-bottom: 12px; }
.quiz-q label { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-weight: 400; cursor: pointer; }
.quiz-q input[type="radio"] { width: auto; margin: 3px 0 0; flex-shrink: 0; }
.quiz-error { display: none; background: #fdeceb; border: 1px solid #e0a29c; color: #7a2c25; border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; font-size: 0.92rem; }
.quiz-result { text-align: center; }
.quiz-score { font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--navy-900); }
.quiz-score span { font-size: 1.4rem; font-weight: 600; color: var(--ink-soft); }
.quiz-tier { font-size: 1.5rem; font-weight: 700; margin-top: 8px; }
.quiz-tier--good { color: #22733f; }
.quiz-tier--mid { color: var(--gold-dark); }
.quiz-tier--risk { color: #932a20; }
.quiz-result .form { margin: 28px auto 0; text-align: left; }
