:root { --navy: #010483; --deep: #010351; --green: #1acc8d; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: #444; background: #fff; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--green); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; padding: .85rem 1.5rem; background: var(--navy); }
.logo { margin-right: auto; color: #fff; font-size: 1.6rem; font-weight: 700; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-nav a { color: #fff; font-size: .95rem; text-decoration: none; }
.site-nav a:hover { color: var(--green); }
.menu-toggle { display: none; padding: .5rem .6rem; background: none; border: 1px solid #fff; border-radius: 6px; cursor: pointer; }
.menu-toggle span { display: block; width: 1.3rem; height: 2px; background: #fff; }
.menu-toggle span + span { margin-top: 4px; }

/* Hero */
.hero { position: relative; color: #fff; text-align: center; background: var(--navy); padding: 4rem 1.25rem 0; }
.hero-text { max-width: 760px; margin: 0 auto; padding-bottom: 2.5rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); color: #fff; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--green); }
.hero h2 { font-size: 1.5rem; font-weight: 400; color: rgba(255,255,255,.85); }
.hero h3 { font-size: 1.2rem; font-weight: 400; color: #fff; margin: 1.5rem 0; }
.hero-waves { display: block; width: 100%; height: 60px; margin: 0 -1.25rem; width: calc(100% + 2.5rem); }
.status-dot { display: inline-block; width: 1rem; height: 1rem; margin-left: .5rem; vertical-align: -1px; border-radius: 50%; background: rgba(255,255,255,.4); }
.status-dot.online { background: var(--green); animation: radiate 1.6s ease-out infinite; }
.status-dot.down { background: #f25f5c; }
#status.online { color: var(--green); }
#cping { transition: color .8s; }
#cping.slower { color: #ff9b98; transition: none; }
#cping.faster { color: #7ef0c6; transition: none; }
.checked { font-size: .95rem; }
.btn-small { margin-left: .25rem; padding: .15rem .5rem; color: #fff; font-size: .85rem; background: none; border: 1px solid #fff; border-radius: 4px; cursor: pointer; }
/* A ring radiates from the green dot. It stays on with Reduce Motion because it is small and the owner wants it visible on phones. */
@keyframes radiate {
  0% { box-shadow: 0 0 0 0 rgba(26,204,141,.75); }
  70% { box-shadow: 0 0 0 .65rem rgba(26,204,141,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,204,141,0); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Sections */
.band { max-width: 1140px; margin: 0 auto; padding: 3rem 1.25rem; }
.section-title { text-align: center; padding-bottom: 1.5rem; }
.section-title h2, .section-title > h1, .section-title > .page-heading { color: #333; }
.section-title h2 { font-size: .9rem; letter-spacing: 1px; text-transform: uppercase; color: #aaa; }
.section-title > h1, .section-title > .page-heading { font-size: 2rem; text-transform: none; letter-spacing: 0; }
.section-title p { margin: 0; color: var(--navy); font-size: 2rem; font-weight: 700; }
.section-title > h1 + h2, .section-title > .page-sub { font-size: 1.1rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: #666; margin: 0 0 .5em; }
.list-group { display: grid; max-width: 760px; margin: 0 auto; border: 1px solid #ddd; border-radius: 6px; }
.list-group a { padding: .7rem 1.1rem; color: #444; text-decoration: none; border-top: 1px solid #ddd; }
.list-group a:first-child { border-top: 0; }
.list-group a:hover { background: #f5f7ff; }
.all-sites { max-width: 1100px; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); border: 0; gap: 0 1rem; }
.all-sites a { border-top: 0; border-bottom: 1px solid #eee; }
.breadcrumbs { padding: 1rem 1.5rem; background: #f5f7ff; font-size: .95rem; }
.counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.25rem; text-align: center; }
.counts div { padding: 1.5rem; border-radius: 6px; box-shadow: 0 0 20px rgba(0,0,0,.08); }
.counts strong { display: block; color: var(--navy); font-size: 2.5rem; }
.counts p { margin: 0; }
.details { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; align-items: center; }
.details h3 { color: var(--navy); font-size: 1.6rem; }
.checks { padding: 0; list-style: none; }
.checks li { position: relative; padding: 0 0 .6rem 1.75rem; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.contact-grid h4 { color: var(--navy); margin-bottom: .2rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.input { display: block; width: 100%; margin-top: .75rem; padding: .6rem .8rem; color: #333; border: 1px solid #ccc; border-radius: 5px; }
.validate { min-height: 1.2em; color: #d33; font-size: .85rem; }
.hp { position: absolute; left: -9999px; }
.center { text-align: center; }
.btn { display: inline-block; padding: .65rem 2rem; color: #fff; font-weight: 500; text-decoration: none; background: var(--green); border: 0; border-radius: 50px; cursor: pointer; }
.btn:hover { background: #17b57d; }
#contact-status { min-height: 1.6em; margin: .5rem 0; text-align: center; }
#contact-status.sent { color: #118a60; }

/* Footer */
.site-footer { color: #fff; font-size: .9rem; background: var(--deep); }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; max-width: 1140px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.footer-top a { display: block; margin-bottom: .35rem; color: #fff; text-decoration: none; }
.footer-top a:hover { color: var(--green); }
.social-links { display: flex; gap: .4rem; margin-top: 1rem; }
.footer-top .social-links a { display: grid; place-items: center; width: 36px; height: 36px; margin: 0; background: rgba(255,255,255,.12); border-radius: 50%; }
.social-links svg { width: 16px; height: 16px; fill: currentColor; }
.back-to-top { position: fixed; right: 15px; bottom: 15px; z-index: 9; display: none; place-items: center; width: 40px; height: 40px; color: #fff; text-decoration: none; background: var(--green); border-radius: 50%; }
.back-to-top.visible { display: grid; }
.back-to-top::before { content: "\2191"; font-size: 1.3rem; line-height: 1; }
.copyright { padding: 1rem 1.25rem; text-align: center; border-top: 1px solid rgba(255,255,255,.15); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding-top: .5rem; }
  .site-nav.open { display: flex; }
  .details, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
