/* celtech.ie: CelTech brand (navy #04234F / #041D40, blue #0A84FB; #0866D1 for blue text on white). */
:root {
  --navy: #041d40;
  --navy-2: #04234f;
  --blue: #0a84fb;
  --blue-text: #0866d1;
  --ink: #0f1d33;
  --muted: #4a5a70;
  --line: #dfe6ef;
  --tint: #eef4fd;
  --bg: #ffffff;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img, video { max-width: 100%; display: block; }
a { color: var(--blue-text); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; color: var(--navy-2); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.top { background: var(--navy); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { flex: none; }
.brand img { height: 52px; width: auto; }
.top nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.top nav a {
  color: #dbe7f7; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .98rem;
}
.top nav a:hover, .top nav a[aria-current="page"] { background: rgba(10, 132, 251, .22); color: #fff; }
.menu-toggle, .menu-button { display: none; }

/* Seven nav links need about 840px beside the logo */
@media (max-width: 860px) {
  .menu-button { display: flex; flex-direction: column; gap: 5px; padding: 12px; cursor: pointer; }
  .menu-button span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }
  .top nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column;
    background: var(--navy); padding: 8px 12px 16px; box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
  }
  .menu-toggle:checked ~ ul { display: flex; }
  .top nav a { display: block; padding: 12px 14px; }
}

/* Hero */
.hero { background: var(--navy); color: #e6eef8; overflow: hidden; padding: 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 56px 20px 64px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; color: #b8c7dc; max-width: 34em; }
.hero video { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); background: #09192f; aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; padding-top: 36px; } }

.page-head { background: var(--navy); color: #b8c7dc; padding: 48px 0 40px; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { font-size: 1.15rem; max-width: 40em; margin: 0; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--blue); color: #fff; border: 2px solid var(--blue);
}
.btn:hover { background: #0670d6; border-color: #0670d6; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn.ghost:hover { border-color: #fff; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--tint); }
.section-intro { max-width: 46em; color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--tint); color: var(--blue-text); font-size: 1.4rem; font-weight: 800;
}
section.alt .card { border-color: transparent; }
.card ul, .prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.card li, .prose li { margin-bottom: .35em; }
.prose { max-width: 48em; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.home-sionna { align-items: center; }
.home-sionna img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(4, 29, 64, .18); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 24px 0 0; }
.fact { border-left: 4px solid var(--blue); padding: 6px 0 6px 16px; }
.fact strong { display: block; color: var(--navy-2); font-size: 1.15rem; }
.fact span { color: var(--muted); font-size: .95rem; }
.note { background: var(--tint); border-radius: var(--radius); padding: 20px 24px; color: var(--muted); }
.cta { background: var(--navy); color: #cfdcee; border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; margin: 0 0 .2em; }
.cta p { margin: 0; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px; }
.video-grid > :only-child { max-width: 880px; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #09192f; margin-bottom: 12px; }
.video-card p { color: var(--muted); }
.video-embed { max-width: 880px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #09192f; box-shadow: 0 12px 32px rgba(4, 29, 64, .18); }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.contact-list .label { color: var(--muted); font-weight: 600; }

/* Footer */
.foot { background: #021430; color: #9fb3cc; padding: 36px 0; font-size: .95rem; }
.foot a { color: #cfe0f6; }
.foot strong { color: #fff; }
.foot .social { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.foot .social svg { flex: none; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.small { font-size: .85rem; }

/* Sionna page (sionna.html) */
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7ccbff; margin: 0 0 14px; }
.sn-video { margin-top: 32px; max-width: 960px; border-radius: var(--radius); overflow: hidden; background: #09192f; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.sn-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.page-head .sn-video-note { font-size: .9rem; margin-top: 10px; color: #9fb3cc; }
.sn-tag { display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-text); }
.sn-subhead { margin: 40px 0 16px; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sn-figs { display: grid; gap: 24px; margin-bottom: 24px; }
.sn-figs.two { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.sn-figs.two > :only-child { max-width: 540px; } /* a lone chart keeps the width of its paired neighbours */
.sn-figs figure { margin: 0; min-width: 0; }
.sn-figs img { width: 100%; height: auto; border-radius: 10px; }
.sn-figs .chart img { border: 1px solid var(--line); padding: 8px; background: #fff; }
.sn-figs figcaption { margin-top: 10px; font-size: .95rem; color: var(--muted); }
.sn-figs figcaption b { color: var(--navy-2); }
.sn-band { display: block; margin-bottom: 2px; font-size: .85rem; font-weight: 700; color: var(--blue-text); }
.sn-table { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border-radius: var(--radius); padding: 4px 20px; }
.sn-table table { width: 100%; min-width: 480px; border-collapse: collapse; }
.sn-table th, .sn-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.sn-table tr:last-child td { border-bottom: 0; }
.sn-table th { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sn-table td { color: var(--muted); }
.sn-table td:first-child { width: 34%; font-weight: 600; color: var(--navy-2); }
/* Phones: each row becomes the output name with its description underneath */
@media (max-width: 600px) {
  .sn-table table { min-width: 0; }
  .sn-table thead { display: none; }
  .sn-table tr, .sn-table td { display: block; width: auto; }
  .sn-table td { padding: 0 0 14px; }
  .sn-table td:first-child { width: auto; padding: 14px 0 4px; border-bottom: 0; }
}
.sn-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.sn-steps li { counter-increment: step; min-width: 0; padding-top: 16px; border-top: 3px solid var(--blue); }
.sn-steps li::before { content: "Step " counter(step); display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-text); }
.sn-steps p { margin: 0; color: var(--muted); font-size: .97rem; }
.sn-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sn-chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--navy-2); font-weight: 600; }
.sn-credits { margin-top: 24px; color: var(--muted); }
