/* ── 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);
  border-bottom:3px solid var(--accent);
}
.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)}
.theme-toggle:active{transform:scale(.9)}

/* ── Hero (homepage) ── */
.page--home main{display:flex}

.hero{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:2rem 1.5rem;
  position:relative;
  overflow:hidden;
}

.hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse at 25% 15%,rgba(247,184,78,.08) 0%,transparent 50%),
    radial-gradient(ellipse at 75% 60%,rgba(247,184,78,.05) 0%,transparent 50%),
    radial-gradient(ellipse at 50% 90%,rgba(180,130,50,.04) 0%,transparent 40%);
  pointer-events:none;
}

.hero__tagline{
  font-size:clamp(2rem,7vw,4.5rem);
  font-weight:800;
  line-height:1.05;
  letter-spacing:-.03em;
  max-width:var(--max-w);
  position:relative;
}

[data-theme="dark"] .hero__tagline{text-shadow:0 0 80px rgba(247,184,78,.3)}
@media(prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .hero__tagline{text-shadow:0 0 80px rgba(247,184,78,.3)}
}

/* ── 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:.65rem 2rem;
  background:var(--accent);color:var(--accent-fg);
  border:none;border-radius:var(--radius);
  font:inherit;font-weight:600;cursor:pointer;
  transition:background .15s,transform .1s;
}
.btn:hover{background:var(--link-hover)}
.btn:active{transform:scale(.97)}

/* ── 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:1.5rem;text-align:center;
  margin-top:auto;
  border-top:3px solid var(--accent);
}
footer a{color:var(--accent)}
footer a:hover{color:var(--link-hover)}
.footer__nav{
  display:flex;justify-content:center;gap:1.5rem;flex-wrap:wrap;
  margin-bottom:.75rem;
}
.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}
}
