/* Pfister Solutions — eq2.net site styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

:root {
  --bg:       #f5efe0;
  --bg-card:  #fdfaf4;
  --text:     #2c2014;
  --text-mid: #5a4a38;
  --border:   rgba(0, 0, 0, 0.14);
  --shadow:   3px 3px 0 rgba(0, 0, 0, 0.07);
  --accent:   #3a5a9a;
  --sans:     'Inter', system-ui, -apple-system, sans-serif;
}
body.dark {
  --bg:       #1a100c;
  --bg-card:  rgba(50, 35, 25, 0.9);
  --text:     #f0e8d8;
  --text-mid: #c8b89a;
  --border:   rgba(255, 255, 255, 0.1);
  --shadow:   3px 3px 0 rgba(0, 0, 0, 0.35);
  --accent:   #8da9c4;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, transparent 52px,
      rgba(196,48,48,0.18) 52px, rgba(196,48,48,0.18) 54px, transparent 54px),
    repeating-linear-gradient(transparent 0px, transparent 27px,
      rgba(70,120,200,0.10) 27px, rgba(70,120,200,0.10) 28.5px);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem 2rem;
  transition: background-color 0.3s, color 0.3s;
}
body.dark {
  background-image:
    linear-gradient(90deg, transparent 52px,
      rgba(196,48,48,0.07) 52px, rgba(196,48,48,0.07) 54px, transparent 54px),
    repeating-linear-gradient(transparent 0px, transparent 27px,
      rgba(120,160,230,0.05) 27px, rgba(120,160,230,0.05) 28.5px);
}

.theme-btn {
  position: fixed; top: 1rem; right: 1rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-card); border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.theme-btn:hover { box-shadow: 4px 5px 0 rgba(0,0,0,0.11); }
.theme-btn svg { width: 18px; height: 18px; stroke: var(--text); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .icon-sun { display: none; }
body.dark .theme-btn .icon-moon { display: none; }
body.dark .theme-btn .icon-sun  { display: block; }

/* ── header / nav ───────────────────────────── */
.site-head {
  width: 100%; max-width: 760px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.25rem;
  padding: 0.5rem 0 1.5rem;
}
.site-head .wordmark {
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em;
  text-decoration: none; margin-right: auto;
}
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
nav a {
  font-size: 0.92rem; color: var(--text-mid); text-decoration: none;
  padding-bottom: 2px; border-bottom: 1.5px solid transparent;
}
nav a:hover { color: var(--text); border-bottom-color: var(--accent); }
nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

main { width: 100%; max-width: 760px; flex: 1 0 auto; }

.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.brand { text-align: center; padding: 2.5rem 2rem; }
h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.page-title { font-size: 1.6rem; }
.tagline { font-size: 1.05rem; color: var(--text-mid); }

h2 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.9rem; }
h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
h2 + h3, p + h3, ul + h3 { margin-top: 1.4rem; }
p { color: var(--text-mid); line-height: 1.6; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 600; }

ul.services, ul.plain { list-style: none; margin-top: 0.5rem; }
ul.services li {
  color: var(--text-mid); line-height: 1.55;
  padding: 0.45rem 0 0.45rem 1.6rem; position: relative;
  border-top: 1px solid var(--border);
}
ul.services li:first-child { border-top: none; }
ul.services li::before {
  content: "\2192"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
ul.plain li { color: var(--text-mid); line-height: 1.6; padding: 0.2rem 0 0.2rem 1.1rem; position: relative; }
ul.plain li::before { content: "\00B7"; position: absolute; left: 0.25rem; }

dl.facts { display: grid; grid-template-columns: minmax(9rem, auto) 1fr; gap: 0.5rem 1.25rem; }
dl.facts dt { font-weight: 600; color: var(--text); font-size: 0.95rem; }
dl.facts dd { color: var(--text-mid); font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 480px) {
  dl.facts { grid-template-columns: 1fr; gap: 0.15rem; }
  dl.facts dd { margin-bottom: 0.6rem; }
}

a.inline { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--border); }
a.inline:hover { border-bottom-color: var(--accent); }

.product { border-top: 1px solid var(--border); padding-top: 1.4rem; margin-top: 1.4rem; }
.product:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.meta { font-size: 0.85rem; color: var(--text-mid); opacity: 0.85; }

footer {
  flex-shrink: 0; width: 100%; max-width: 760px;
  margin-top: 1rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem; line-height: 1.8; color: var(--text-mid);
  opacity: 0.85; text-align: center;
}
footer a { color: var(--text-mid); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .sep { margin: 0 0.5rem; opacity: 0.5; }

/* Contact form */
.cform { display: grid; gap: 0.9rem; max-width: 36rem; }
.cform label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.cform input, .cform textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 6px; padding: 0.55rem 0.7rem; width: 100%;
}
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cform .req { color: var(--accent); }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-send {
  justify-self: start; padding: 0.6rem 1.3rem; border-radius: 6px; font-weight: 600;
  background: var(--accent); color: var(--bg-card);
}
.cform-send:disabled { opacity: 0.6; cursor: default; }
.cform-status { min-height: 1.2em; margin: 0; font-weight: 600; }
.cform-status.ok { color: #3a7d52; }
.cform-status.err { color: #b23026; }
.cform-note { font-size: 0.85rem; margin: 0; }
