/* Progen Network site styles
   Layout concept: midnight hero with the logo's "pixel trail" breaking out of it,
   then calm white/mist bands; square pixels replace bullets and dividers throughout. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Brand colour */
  --teal: #23B6C6;        /* Progen Teal, from the logo */
  --teal-deep: #0A7480;   /* teal for text and links on light backgrounds */
  --teal-light: #8FE3EC;  /* teal for small text on midnight */
  --navy: #445A84;        /* Progen Navy, from the logo */
  --midnight: #0F1E33;    /* dark bands and headings */
  --slate: #58585A;       /* logo grey, wordmark only */
  /* Neutrals, biased toward the teal/navy hue */
  --white: #FFFFFF;
  --paper: #F5F7F9;       /* soft off-white page background */
  --card: #FBFCFD;        /* cards and inputs sitting on paper */
  --mist: #EAF0F3;
  --line: #DCE4EA;
  --text: #2E3A4A;
  --muted: #5B6676;
  --on-dark: #E6EEF4;
  --on-dark-muted: #A9B8CB;
  --ok: #1E9E6A;
  --warn: #C98A12;
  /* Type */
  --font-display: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.375rem, 1.6rem + 3.4vw, 3.75rem);
  /* Shape */
  --radius: 6px;
  --wrap: 1180px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--midnight); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--midnight); line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.band { padding-block: clamp(64px, 9vw, 112px); }
.band--mist { background: var(--mist); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Eyebrow: mono label led by a pixel */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--teal); flex: none; }
.on-dark .eyebrow { color: var(--teal-light); }

.section-head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); color: var(--midnight); }
.btn--primary:hover { background: var(--teal-light); color: var(--midnight); }
.btn--ghost { border-color: rgba(230, 238, 244, 0.35); color: var(--white); }
.btn--ghost:hover { border-color: var(--teal); color: var(--white); }
.btn--dark { background: var(--midnight); color: var(--white); }
.btn--dark:hover { background: var(--navy); color: var(--white); }
.btn .px { width: 7px; height: 7px; background: currentColor; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(245, 247, 249, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { flex: none; display: block; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.975rem; }
.nav a:hover { color: var(--teal-deep); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .tel { font-family: var(--font-mono); font-weight: 500; font-size: 0.9rem; color: var(--midnight); text-decoration: none; white-space: nowrap; }
.header-cta .btn { min-height: 42px; padding: 8px 16px; font-size: 0.95rem; }
@media (max-width: 960px) { .nav { display: none; } .header-cta { margin-left: auto; } }
@media (max-width: 560px) { .header-cta .tel { display: none; } .brand img { height: 44px; } .header-cta .btn { padding: 8px 12px; font-size: 0.9rem; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--midnight); color: var(--on-dark); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-copy .lede { font-size: var(--step-1); line-height: 1.55; color: var(--on-dark); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 8px 0 0; list-style: none; font-size: 0.95rem; color: var(--on-dark-muted); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; background: var(--teal); }
/* Pixel trail, echoing the squares that leave the logo's swirl */
.pixel-trail { position: absolute; inset: 0; pointer-events: none; }
.pixel-trail i { position: absolute; display: block; background: var(--teal); opacity: var(--o, 0.9); width: var(--s); height: var(--s); left: var(--x); top: var(--y); }
.pixel-trail i.n { background: var(--navy); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }
.hero.is-live .pixel-trail { display: none; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .pixel-trail { opacity: 0.5; } }

/* Example status board in the hero */
.board { position: relative; background: #15283F; border: 1px solid #24405F; border-radius: 10px; padding: 22px; display: grid; gap: 16px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); min-width: 0; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.board-head strong { font-family: var(--font-display); color: var(--white); font-size: 1.05rem; }
.board-head span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--on-dark-muted); }
.board-rows { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.board-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid #24405F; }
.board-rows .k { color: var(--on-dark); font-weight: 600; }
.board-rows .d { grid-column: 1 / -1; font-size: 0.85rem; color: var(--on-dark-muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; padding: 3px 9px; border-radius: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.chip--ok { color: #6BE0AE; background: rgba(30, 158, 106, 0.16); }
.chip--warn { color: #F2C25B; background: rgba(201, 138, 18, 0.16); }
.chip--info { color: var(--teal-light); background: rgba(35, 182, 198, 0.14); }
.nights { display: flex; gap: 4px; margin-top: 2px; }
.nights b { width: 14px; height: 14px; background: var(--teal); }
.board-note { font-size: 0.75rem; color: var(--on-dark-muted); font-family: var(--font-mono); }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line); border-radius: 10px; background: var(--card); min-width: 0; }
.service-top { display: flex; align-items: center; gap: 14px; }
.service-icon { width: 46px; height: 46px; border-radius: 8px; background: var(--mist); display: grid; place-items: center; flex: none; color: var(--teal-deep); }
.service-icon svg { width: 24px; height: 24px; }
.service p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; align-content: start; }
.ticks li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; width: 8px; height: 8px; background: var(--teal); transform: translateY(-1px); }
.service--note { background: var(--midnight); border-color: var(--midnight); color: var(--on-dark); }
@media (max-width: 760px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.why-item { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 2px solid var(--midnight); min-width: 0; }
.why-item p { color: var(--muted); }
@media (max-width: 960px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why { grid-template-columns: minmax(0, 1fr); } }

/* Steps (a real sequence, so numbered) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 12px; align-content: start; padding: 28px; background: var(--card); border-radius: 10px; border: 1px solid var(--line); min-width: 0; }
.steps li::before { content: "Step " counter(step); font-family: var(--font-mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); }
.steps p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Area */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.area-copy { display: grid; gap: 20px; min-width: 0; }
.area-copy p { color: var(--muted); }
.places { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.places li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; font-weight: 600; font-size: 0.95rem; color: var(--midnight); background: var(--card); }
.places li.home { background: var(--midnight); color: var(--white); border-color: var(--midnight); }
.area-map { background: var(--midnight); border-radius: 14px; overflow: hidden; min-width: 0; box-shadow: 0 30px 60px -36px rgba(15, 30, 51, 0.55); }
.area-map svg { width: 100%; height: auto; max-width: 100%; display: block; }
.area-map figcaption { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px clamp(16px, 3vw, 24px); border-top: 1px solid #24405F; font-family: var(--font-mono); font-size: 0.75rem; color: var(--on-dark-muted); }
.area-map figcaption span { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; flex: none; }
.lg-hub { width: 10px; height: 10px; border-radius: 2px; background: var(--teal); }
.lg-town { width: 6px; height: 6px; border-radius: 1px; background: var(--white); box-shadow: 0 0 0 3px rgba(35, 182, 198, 0.3); }
.lg-ring { width: 12px; height: 12px; border-radius: 50%; border: 1px dashed var(--teal-light); }
#map .map-label { font-family: var(--font-body); font-size: 13px; font-weight: 600; fill: var(--on-dark); paint-order: stroke; stroke: var(--midnight); stroke-width: 4px; stroke-linejoin: round; }
#map .map-ring { font-family: var(--font-mono); font-size: 11px; fill: var(--teal-light); paint-order: stroke; stroke: var(--midnight); stroke-width: 4px; stroke-linejoin: round; }
#map .map-hub-label { font-family: var(--font-display); font-size: 14px; font-weight: 800; fill: var(--midnight); }
#map .map-link { stroke-dasharray: 600; stroke-dashoffset: 600; animation: map-draw 1.6s ease-out .2s forwards; }
#map .map-pulse { transform-box: fill-box; transform-origin: center; animation: map-pulse 2.4s ease-out infinite; }
@media (max-width: 560px) { #map .map-label { font-size: 16px; } #map .map-ring { font-size: 13px; } }
@keyframes map-draw { to { stroke-dashoffset: 0; } }
@keyframes map-pulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #map .map-link { stroke-dashoffset: 0; } }
@media (max-width: 860px) { .area { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--midnight); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; background: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 44rem; }

/* Contact */
.contact { background: var(--midnight); color: var(--on-dark); position: relative; overflow: hidden; }
.contact .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact h2 { color: var(--white); }
.contact-copy { display: grid; gap: 20px; min-width: 0; }
.contact-copy > p { font-size: var(--step-1); line-height: 1.5; }
.contact-lines { display: grid; gap: 14px; margin: 8px 0 0; }
.contact-lines div { display: grid; gap: 2px; }
.contact-lines dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.contact-lines dd { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--white); user-select: all; }
.contact-lines dd a { color: var(--white); }
.contact-lines address { font-style: normal; line-height: 1.45; }
.contact-lines .map-link { display: inline-block; margin-top: 6px; font-size: 0.9rem; font-weight: 500; color: var(--teal-light); user-select: auto; }
.form { position: relative; background: var(--paper); color: var(--text); border-radius: 12px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px; min-width: 0; }
.form h3 { font-size: var(--step-1); }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.925rem; color: var(--midnight); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--text); background: var(--card); border: 1px solid #C3CFD9; border-radius: var(--radius); padding: 11px 12px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(35, 182, 198, 0.4); border-color: var(--teal-deep); }
.field textarea { min-height: 110px; resize: vertical; }
.form small { color: var(--muted); font-size: 0.85rem; }
.form .field-hint { margin-top: -8px; }
.form-status { font-weight: 600; color: var(--teal-deep); }
.form-status.is-error { color: #B42318; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .6; cursor: progress; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .form .row { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: #0A1626; color: var(--on-dark-muted); font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 56px 32px; }
.site-footer img { height: 56px; width: auto; }
.site-footer h4 { margin: 0 0 12px; font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--teal-light); }
.footer-brand { display: grid; gap: 16px; align-content: start; max-width: 24rem; }
.footer-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid #1C2E46; font-size: 0.85rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }
