/* IQmagic Software - static site styles */
:root {
  --blue: #0072e4;
  --blue-dark: #005bb8;
  --ink: #1b1b1b;
  --text: #5e5e5e;
  --line: #e2e2e2;
  --panel: #f5f5f5;
  --max: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

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

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

h1, h2, h3, h4 { font-family: Raleway, Arial, sans-serif; margin: 0; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.logo img { height: 45px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.nav a { color: var(--blue); font-size: 16px; padding: 6px 0; }
.nav a:hover { text-decoration: none; color: var(--blue-dark); }
.nav a.active { color: var(--ink); border-bottom: 1px solid var(--ink); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero banners */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.hero h1 { font-size: 33px; font-weight: 700; padding: 0 24px; }
.hero-home {
  min-height: 160px;
  background-image: linear-gradient(rgba(0,0,0,.24), rgba(0,0,0,.24)), url("../images/home-banner.jpg");
}
.hero-efr {
  min-height: 160px;
  background-image: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)), url("../images/efr-hero.jpg");
}

/* Sections */
section { padding: 56px 0; }
section + section { padding-top: 0; }

.section-title {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  text-align: center;
}
.section-title::before,
.section-title::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.section-title.small { font-size: 16px; font-family: Helvetica, Arial, sans-serif; }

.lead { text-align: center; max-width: 820px; margin: 0 auto; }

.heading-blue { color: var(--blue); font-weight: 700; font-size: 25px; line-height: 1.3; margin-bottom: 24px; }
.center { text-align: center; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; }
.btn-row { text-align: center; margin-top: 40px; }

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 48px;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
}
.benefits li {
  color: var(--blue);
  font-family: Raleway, Arial, sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  text-align: center;
}

.wide-image { margin: 0 auto; max-width: 1240px; }

/* Two-column layouts */
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 56px; }
.split .text { text-align: center; }
.split.reverse .media { order: 2; }

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Features */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.feature { text-align: center; }
.feature h3 { color: var(--blue); font-weight: 700; font-size: 25px; line-height: 1.3; margin-bottom: 24px; }
.feature img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; margin-bottom: 24px; }
.feature p { font-size: 14px; margin: 0; }

/* Gallery */
.gallery { max-width: 900px; margin: 0 auto; }
.gallery-stage { position: relative; display: flex; justify-content: center; }
.gallery-stage img { max-height: 620px; width: auto; border: 1px solid var(--line); }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.gallery-arrow:hover { background: rgba(0,0,0,.7); }
.gallery-arrow.prev { left: 0; }
.gallery-arrow.next { right: 0; }
.gallery-caption { text-align: center; color: var(--ink); font-weight: 700; margin: 16px 0; }
.thumbs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .6; }
.thumbs button[aria-current="true"] { border-color: var(--blue); opacity: 1; }
.thumbs img { width: 56px; height: 70px; object-fit: cover; object-position: top; }

/* Downloads */
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto; }
.download {
  background: var(--panel);
  padding: 32px;
  text-align: center;
  color: var(--ink);
}
.download p { margin: 0 0 16px; }
.download .btn { padding: 10px 24px; font-size: 14px; }

/* Contact */
.contact-form { max-width: 820px; margin: 0 auto; }
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid transparent;
  border-bottom-color: #ccc;
  background: #f0f0f0;
  font: inherit;
  color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--blue); }
.contact-form textarea { min-height: 200px; resize: vertical; }
.contact-info { text-align: center; margin-top: 40px; }
.contact-info strong { color: var(--ink); }
.hidden { display: none; }

/* About */
.about .split .text { text-align: center; }
.about .media img { margin: 0 auto; }
.about .badge { max-width: 240px; }

/* Footer */
.site-footer { background: var(--panel); padding: 40px 0; font-size: 14px; text-align: center; }

/* Small screens */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .nav a { display: block; padding: 12px 0; }
  .nav a.active { border-bottom: 0; font-weight: 700; }

  .hero h1 { font-size: 26px; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .cols, .split, .features, .downloads { grid-template-columns: 1fr; }
  .split.reverse .media { order: 0; }
  .section-title { font-size: 22px; }
}

@media (max-width: 520px) {
  .benefits { grid-template-columns: 1fr; }
  .lead br { display: none; }
}
