/* iQontrol – static site stylesheet */

@font-face { font-family: "Lato"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/lato-300.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/lato-900.woff2") format("woff2"); }

:root {
  --green: #2ecc71;
  --orange: #f39c12;
  --blue: #3498db;
  --heading: #2c3e50;
  --text: #6f7f8e;
  --muted: #a1b1bc;
  --light: #eaeff1;
  --line: #e5e9ec;
  --dark: #393532;
  --on-dark: #f2f2f2;
  --wrap: 1140px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Lato", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
strong { color: var(--heading); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { height: 34px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  display: block; padding: 8px 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--heading); border-radius: 4px;
}
.nav a:hover { color: var(--blue); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--blue); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--heading);
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(44,62,80,.08);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav li:last-child a { border-bottom: 0; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 26px; border: 1px solid currentColor; border-radius: 10px;
  font-size: 15px; font-weight: 900; line-height: 1; letter-spacing: .02em;
  background: #fff; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-upper { text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }

.btn-green { color: var(--green); }
.btn-orange { color: var(--orange); }
.btn-blue { color: var(--blue); }
.btn-green:hover { background: var(--green); color: #fff; border-color: var(--green); }
.btn-orange:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-blue:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.btn-solid { color: #fff; border-color: transparent; }
.btn-solid.green { background: var(--green); }
.btn-solid.orange { background: var(--orange); }
.btn-solid.blue { background: var(--blue); }
.btn-solid:hover { filter: brightness(1.06); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost:hover { background: #fff; color: var(--blue); }

/* ---------- Home ---------- */

.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; margin-bottom: 36px; }
.hero-img { width: 100%; max-width: 560px; margin: 0 auto 48px; }
.hero-buttons { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero-buttons .btn { flex: 0 1 260px; justify-content: center; }
@media (max-width: 640px) { .hero-buttons .btn { flex-basis: 100%; } }

.color-bar {
  height: 75px; display: flex; align-items: center; justify-content: center; gap: 24px;
  background: var(--light); color: #fff;
}
.color-bar::before, .color-bar::after { content: ""; flex: 1; max-width: 520px; height: 1px; background: rgba(255,255,255,.75); }
.color-bar svg { width: 34px; height: 34px; }
.color-bar.green { background: var(--green); }
.color-bar.orange { background: var(--orange); }
.color-bar.blue { background: var(--blue); }
.color-bar.light::before, .color-bar.light::after { background: transparent; }

.feature { padding: 80px 0 72px; text-align: center; }
.feature h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 700; margin-bottom: 40px; }
.feature .feature-img { width: 100%; margin: 0 auto 48px; }

.equation { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 auto 40px; max-width: 760px; }
.equation img { width: 18%; max-width: 150px; }
.equation img.op { width: 9%; max-width: 70px; }

.logos { padding: 72px 0 80px; text-align: center; }
.logos h2 { font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 40px; }
.logo-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; align-items: center; }
.logo-row a, .logo-row span { display: block; transition: opacity .2s, filter .2s; }
.logo-row img { width: 100%; max-width: 170px; margin: 0 auto; }
.logo-row a:hover { opacity: .8; }
@media (max-width: 760px) { .logo-row { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Generic page layout ---------- */

.page { padding: 64px 0 80px; }
.page-title { font-size: 36px; font-weight: 300; color: #333; margin-bottom: 18px; }
.title-line { width: 60px; height: 2px; background: var(--blue); border: 0; margin: 0 0 28px; }
.center .title-line, .title-line.center { margin-left: auto; margin-right: auto; }
.intro { max-width: 720px; margin: 0 auto 48px; text-align: center; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Services ---------- */

.services-list { list-style: none; margin: 0; padding: 0; position: relative; }
.services-list li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 40px; position: relative; }
.services-list li:not(:last-child)::before {
  content: ""; position: absolute; left: 27px; top: 60px; bottom: 8px; width: 1px; background: var(--line);
}
.services-list .ico { width: 56px; height: 56px; color: var(--dark); }
.services-list .ico svg { width: 44px; height: 44px; margin: 6px; }
.services-list h3 { font-size: 19px; margin: 8px 0 8px; }
.services-img { width: 100%; max-width: 440px; margin: 0 auto; }

/* ---------- Portfolio ---------- */

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin: 0 0 32px; padding: 0; list-style: none; }
.filters button {
  font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 6px 12px; border-radius: 4px;
}
.filters button:hover { color: var(--heading); }
.filters button[aria-pressed="true"] { color: var(--blue); }

.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.tile { position: relative; display: block; overflow: hidden; background: #fff; }
.tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.tile .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 10px; text-align: center; color: #fff; opacity: 0; transition: opacity .25s ease;
  background: linear-gradient(135deg, rgba(52,152,219,.92), rgba(46,204,113,.92));
}
.tile .overlay strong { color: #fff; font-size: 15px; line-height: 1.3; }
.tile .overlay span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.tile:hover, .tile:focus-visible { text-decoration: none; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile:hover .overlay, .tile:focus-visible .overlay { opacity: 1; }
.tile[hidden] { display: none; }

/* ---------- Project ---------- */

.project h1 { text-align: center; }
.project .title-line { margin-left: auto; margin-right: auto; }
.project .body ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.project .body li { margin-bottom: .25em; }
.project-images { display: grid; gap: 16px; }
.project-images.multi { grid-template-columns: repeat(3, 1fr); }
.project-images img { margin: 0 auto; }
.project-images.multi img { width: 100%; }
.back-link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; }

/* ---------- Partner ---------- */

.crumbs-bar { background: #f7f9fa; border-bottom: 1px solid var(--line); padding: 28px 0; }
.crumbs-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.crumbs-bar h1 { font-size: 20px; margin: 0; font-weight: 400; }
.crumbs { font-size: 12px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 8px; }
.partner-card { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; }
.partner-card h2 { font-size: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .partner-card { grid-template-columns: 1fr; } }

/* ---------- About ---------- */

.about-img { border-radius: 2px; }

/* ---------- Jobs ---------- */

.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; margin-bottom: 32px; }
.icon-list svg { width: 44px; height: 44px; color: var(--dark); }
.icon-list h3 { font-size: 19px; margin: 6px 0 8px; color: #333; }

.skills { list-style: none; margin: 8px 0 0; padding: 0; }
.skills li { margin-bottom: 22px; }
.skills .label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--heading); margin-bottom: 6px; }
.skills .bar { height: 6px; background: var(--light); border-radius: 3px; overflow: hidden; }
.skills .bar span { display: block; height: 100%; background: var(--green); border-radius: 3px; }

/* ---------- Contact ---------- */

.contact-mail { background: #f7f9fa; border: 1px solid var(--line); border-radius: 10px; padding: 40px 32px; }
.contact-mail .ico svg { width: 44px; height: 44px; color: var(--blue); margin-bottom: 16px; }
.contact-mail h2 { font-size: 24px; }
.contact-mail p { margin-bottom: 28px; }
.contact-mail .btn { max-width: 100%; overflow-wrap: anywhere; line-height: 1.3; }

.address { font-style: normal; line-height: 1.9; margin-bottom: 24px; }
.address strong { display: block; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--light); }

/* ---------- CTA band ---------- */

.cta { background: var(--blue); color: #fff; padding: 44px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); font-weight: 300; margin: 0; max-width: 640px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: var(--on-dark); padding: 56px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-logo { height: 46px; width: auto; margin-bottom: 20px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer h3 { color: #eee; font-size: 20px; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 12px; color: rgba(242,242,242,.6); }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */

.notfound { padding: 120px 0; text-align: center; }
.notfound h1 { font-size: 64px; font-weight: 300; margin-bottom: 8px; }
