/* ── Sionnach Solutions — Single-file stylesheet ── */

/* ── Reset ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

/* ── Custom properties ── */
:root{
  --fg:#1a1a1a;
  --fg-muted:#555;
  --bg:#fff;
  --bg-alt:#f5f5f5;
  --accent:#f7b84e;
  --accent-fg:#1a1a1a;
  --primary:#1a1a1a;
  --primary-fg:#fff;
  --link:#b8860b;
  --link-hover:#d4a020;
  --border:#ddd;
  --shadow:0 2px 8px rgba(0,0,0,.08);
  --radius:6px;
  --max-w:52rem;
  --font-sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
  color-scheme:light dark;
}

[data-theme="dark"],
:root:has([data-theme="dark"]){
  --fg:#e4e4e4;
  --fg-muted:#aaa;
  --bg:#111;
  --bg-alt:#1a1a1a;
  --primary:#e4e4e4;
  --primary-fg:#111;
  --link:#f7b84e;
  --link-hover:#ffd080;
  --border:#333;
  --shadow:0 2px 8px rgba(0,0,0,.3);
}

@media(prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --fg:#e4e4e4;
    --fg-muted:#aaa;
    --bg:#111;
    --bg-alt:#1a1a1a;
    --primary:#e4e4e4;
    --primary-fg:#111;
    --link:#f7b84e;
    --link-hover:#ffd080;
    --border:#333;
    --shadow:0 2px 8px rgba(0,0,0,.3);
  }
}

/* ── Base ── */
html{font-size:100%;scroll-behavior:smooth}
body{
  font-family:var(--font-sans);
  color:var(--fg);
  background:var(--bg);
  line-height:1.6;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
}

a{color:var(--link);text-decoration:none;transition:color .15s}
a:hover,a:focus-visible{color:var(--link-hover);text-decoration:underline}

img,svg{display:block;max-width:100%;height:auto}

/* ── Skip-link ── */
.skip-link{
  position:absolute;left:-9999px;top:0;
  background:var(--accent);color:var(--accent-fg);
  padding:.5rem 1rem;z-index:100;font-weight:600;
}
.skip-link:focus{left:0}

/* ── Navbar ── */
.navbar{
  background:var(--primary);
  color:var(--primary-fg);
  padding:.75rem 1.5rem;
  display:flex;
  align-items:center;
  gap:1rem;
  box-shadow:var(--shadow);
}
.navbar__brand{
  display:flex;align-items:center;gap:.5rem;
  color:inherit;text-decoration:none;font-weight:700;font-size:1.125rem;
}
.navbar__brand:hover{color:inherit;text-decoration:none}
.navbar__spacer{flex:1}
.theme-toggle{
  background:none;border:none;cursor:pointer;
  color:inherit;font-size:1.25rem;line-height:1;
  padding:.25rem;border-radius:var(--radius);
}
.theme-toggle:hover{background:rgba(255,255,255,.15)}

/* ── Hero ── */
.hero{
  text-align:center;
  padding:4rem 1.5rem;
  background:var(--bg-alt);
}
.hero__tagline{
  font-size:clamp(1.5rem,4vw,2.5rem);
  font-weight:700;
  max-width:var(--max-w);
  margin:0 auto;
  line-height:1.2;
}

/* ── Main content ── */
main{flex:1}
.content{
  max-width:var(--max-w);
  margin:0 auto;
  padding:2rem 1.5rem;
}
.content h1{
  font-size:1.75rem;font-weight:700;
  margin-bottom:1.5rem;text-align:center;
}

/* ── Policy pages ── */
.policy-section{margin-bottom:2rem}
.policy-section h3{
  font-size:1.15rem;font-weight:600;
  margin-bottom:.5rem;text-align:center;
}
.policy-section p{margin-bottom:.75rem;line-height:1.7}
.policy-table{
  width:100%;border-collapse:collapse;margin:1rem 0;
}
.policy-table th,.policy-table td{
  border:1px solid var(--border);padding:.5rem .75rem;text-align:left;
}
.policy-table th{background:var(--bg-alt);font-weight:600}

/* ── Contact form ── */
.contact-card{
  max-width:32rem;margin:0 auto;
  background:var(--bg-alt);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:2rem;
}
.form-group{margin-bottom:1.25rem}
.form-group label{display:block;font-weight:600;margin-bottom:.35rem}
.form-group input,
.form-group textarea{
  width:100%;padding:.5rem .75rem;
  border:1px solid var(--border);border-radius:var(--radius);
  background:var(--bg);color:var(--fg);
  font:inherit;font-size:.95rem;
}
.form-group textarea{min-height:8rem;resize:vertical}
.form-group input:focus,
.form-group textarea:focus{
  outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent);
}
.btn{
  display:inline-block;padding:.6rem 1.5rem;
  background:var(--accent);color:var(--accent-fg);
  border:none;border-radius:var(--radius);
  font:inherit;font-weight:600;cursor:pointer;
  transition:opacity .15s;
}
.btn:hover{opacity:.85}

/* ── 404 ── */
.error-page{text-align:center;padding:4rem 1.5rem}
.error-page h1{font-size:2rem;margin-bottom:1rem}
.error-emojis{font-size:1.5rem;margin:1rem 0}
.error-page a{font-weight:600}

/* ── Footer ── */
footer{
  background:var(--primary);color:var(--primary-fg);
  padding:2rem 1.5rem;text-align:center;
  margin-top:auto;
}
footer a{color:var(--accent)}
footer a:hover{color:var(--link-hover)}
.footer-links{
  display:flex;flex-wrap:wrap;justify-content:center;gap:2rem;
  margin-bottom:1.5rem;
}
.footer-links section strong{font-weight:600;margin-bottom:.35rem;display:block}
.footer-links section ul{list-style:none;padding:0}
.footer-links section li{margin-bottom:.2rem}
.copyright{font-size:.875rem;color:var(--primary-fg)}

/* ── Print ── */
@media print{
  .navbar,.theme-toggle,footer{display:none}
  body{color:#000;background:#fff}
  a{color:#000;text-decoration:underline}
  .hero{background:none;padding:1rem 0}
}
