/* Spectralyse — static site styles */

:root {
  --accent: #737db0;
  --accent-dark: #5c6596;
  --text: #444444;
  --heading: #666666;
  --border: #e4e4e4;
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--heading);
  font-weight: bold;
  line-height: 1.3;
}

h1 { font-size: 28px; margin: 0 0 20px; }
h2 { font-size: 20px; margin: 34px 0 12px; }
h3 { font-size: 16px; margin: 24px 0 10px; }

p { margin: 0 0 16px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-header .logo img { max-height: 50px; }

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav li.active > a {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* Slider */
.slider {
  position: relative;
  max-width: var(--max-width);
  margin: 24px auto 0;
  overflow: hidden;
  background: #000;
}

.slider .slide {
  position: relative;
  display: none;
}

.slider .slide.is-active { display: block; }

.slider img { width: 100%; display: block; }

.slider .caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 24px 32px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  max-width: 70%;
}

.slider .caption h2 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 22px;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

.slider .caption p {
  margin: 0;
  font-size: 15px;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

.slider .dots {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.slider .dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.slider .dots button.is-active { background: #fff; }

@media (max-width: 700px) {
  .slider .caption { max-width: 100%; padding: 16px; }
  .slider .caption h2 { font-size: 17px; }
}

/* Page header (breadcrumb strip) */
.page-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 30px;
}

.page-header h1 { margin: 0; }

.breadcrumb {
  color: #999;
  font-size: 12px;
}

/* Content */
main .container { padding-top: 4px; padding-bottom: 50px; }

.content { max-width: 760px; }

ul.plain { padding-left: 20px; }

/* Steps / accordion-like list */
.steps {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 0 12px 44px;
  border-bottom: 1px solid var(--border);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact info box */
.contact-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-top: 30px;
  max-width: 420px;
}

.contact-box p { margin: 0 0 6px; }

/* Form */
form.contact-form {
  max-width: 560px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: var(--heading);
  margin-bottom: 4px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
}

.field textarea { resize: vertical; }

.required { color: #b0555a; }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

button.submit,
input[type="submit"].submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 26px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  cursor: pointer;
}

button.submit:hover { background: var(--accent-dark); }

.form-notice {
  padding: 14px 18px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  max-width: 560px;
}

.form-notice.success { border-color: #6fa87a; background: #f0f8f1; color: #35633e; }
.form-notice.error { border-color: #c98b8b; background: #fbf0f0; color: #7a3232; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 24px 0;
  margin-top: 40px;
  font-size: 12px;
  color: #888;
}

.site-footer a { color: #888; }

@media (max-width: 600px) {
  .main-nav ul { gap: 16px; }
  h1 { font-size: 22px; }
}
