/*
Theme Name: Olastep Networks
Theme URI: https://www.olastep.com/
Author: Olastep Networks
Author URI: https://www.olastep.com/
Description: Lightweight theme for Olastep Networks — professional websites and digital services. Fast, accessible, and Elementor-compatible. The site is complete without a page builder; Elementor can replace any page when you choose.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: olastep-networks
Tags: custom-logo, custom-menu, featured-images, blog, portfolio, translation-ready, threaded-comments
*/

/* Olastep Networks — design system
   Tokens are the rebrand surface. Change these, not scattered hex values. */

:root {
  --o-orange: #fe6400;
  --o-orange-text: #9a3a00;
  --o-orange-deep: #c44700;
  --o-ink: #16181d;
  --o-charcoal: #1c1f24;
  --o-slate: #3a4048;
  --o-muted: #5c6570;
  --o-line: #e4e0d8;
  --o-line-strong: #d3cec4;
  --o-paper: #f6f4ef;
  --o-paper-2: #efece5;
  --o-white: #ffffff;
  --o-focus: #fe6400;
  --o-danger: #8f2d2d;
  --o-ok: #1f6b45;
  --o-font: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --o-max: 1120px;
  --o-header: 72px;
  --o-radius: 4px;
  --o-shadow: 0 18px 40px rgba(22, 24, 29, 0.08);
  --o-space: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--o-font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--o-ink);
  background: var(--o-white);
  text-rendering: optimizeLegibility;
}

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

a { color: var(--o-orange-text); text-underline-offset: 3px; }
a:hover { color: var(--o-orange-deep); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: var(--o-ink);
}

h1 { font-size: clamp(2.05rem, 4.5vw, 3.55rem); line-height: 1.06; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.35rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; letter-spacing: -0.015em; }

.o-skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--o-ink);
  color: var(--o-white);
  padding: 8px 12px;
  z-index: 100;
  border-radius: var(--o-radius);
}
.o-skip:focus { top: 12px; color: var(--o-white); }

.o-wrap {
  width: min(var(--o-max), calc(100% - 40px));
  margin-inline: auto;
}
@media (max-width: 390px) {
  .o-wrap { width: min(var(--o-max), calc(100% - 32px)); }
}

.o-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--o-orange-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.o-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--o-orange);
}

.o-lead {
  font-size: 1.125rem;
  color: var(--o-slate);
  max-width: 42rem;
}

.o-muted { color: var(--o-muted); }
.o-small { font-size: 0.92rem; color: var(--o-muted); }

.o-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--o-radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.o-btn--primary { background: var(--o-ink); color: var(--o-white); }
.o-btn--primary:hover { background: var(--o-orange-deep); color: var(--o-white); }
.o-btn--ghost {
  background: transparent;
  color: var(--o-ink);
  border-color: var(--o-line-strong);
}
.o-btn--ghost:hover { border-color: var(--o-ink); color: var(--o-ink); }
.o-btn--on-dark {
  background: transparent;
  color: var(--o-white);
  border-color: rgba(255,255,255,0.35);
}
.o-btn--on-dark:hover { background: var(--o-white); color: var(--o-ink); }
.o-btn--light { background: var(--o-white); color: var(--o-ink); }
.o-btn--light:hover { background: var(--o-paper); color: var(--o-ink); }
.o-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }

/* Header */
.o-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--o-header);
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid var(--o-line);
}
.o-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.o-logo { display: flex; align-items: center; text-decoration: none; }
.o-logo img { height: 42px; width: auto; }
.o-nav { display: flex; align-items: center; gap: 22px; }
.o-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.o-nav__list a {
  color: var(--o-ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--o-radius);
}
.o-nav__list a:hover,
.o-nav__list a[aria-current="page"],
.o-nav__list .current-menu-item > a,
.o-nav__list .current_page_item > a { color: var(--o-orange-text); }
.o-nav__cta { display: inline-flex; }
.o-burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--o-line);
  background: var(--o-white);
  border-radius: var(--o-radius);
  align-items: center;
  justify-content: center;
  padding: 0;
}
.o-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.o-burger .o-burger__bar,
.o-burger .o-burger__bar::before,
.o-burger .o-burger__bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--o-ink);
  position: relative;
}
.o-burger .o-burger__bar::before,
.o-burger .o-burger__bar::after {
  content: "";
  position: absolute;
  left: 0;
}
.o-burger .o-burger__bar::before { top: -6px; }
.o-burger .o-burger__bar::after { top: 6px; }

@media (max-width: 980px) {
  .o-burger { display: inline-flex; }
  .o-nav {
    position: fixed;
    inset: var(--o-header) 0 0 0;
    background: var(--o-white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 28px;
    gap: 8px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    overflow: auto;
  }
  .o-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .o-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .o-nav__list a { padding: 14px 8px; font-size: 1.15rem; border-bottom: 1px solid var(--o-line); }
  .o-nav__cta { display: flex; }
  .o-nav__cta .o-btn { width: 100%; }
}

/* Hero */
.o-hero {
  background:
    linear-gradient(180deg, rgba(22,24,29,0.15), rgba(22,24,29,0.55)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(254,100,0,0.09) 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(254,100,0,0.09) 32px),
    var(--o-ink);
  color: var(--o-white);
  padding: 72px 0 64px;
}
.o-hero h1,
.o-hero h2,
.o-hero .o-kicker { color: var(--o-white); }
.o-hero .o-kicker::before { background: var(--o-orange); }
.o-hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 48px;
  align-items: end;
}
.o-hero p { color: rgba(255,255,255,0.82); font-size: 1.12rem; max-width: 40rem; }
.o-hero__panel {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  padding: 8px 8px 8px 0;
}
.o-hero__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: var(--o-white);
}
.o-hero__row:first-child { border-top: 0; }
.o-hero__row:hover { background: rgba(254,100,0,0.12); color: var(--o-white); }
.o-hero__num { color: var(--o-orange); font-weight: 600; font-size: 0.85rem; padding-top: 3px; }
.o-hero__row strong { display: block; font-weight: 600; color: var(--o-white); }
.o-hero__row > span span {
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  font-weight: 400;
}

@media (max-width: 860px) {
  .o-hero { padding: 48px 0 40px; }
  .o-hero__grid { grid-template-columns: 1fr; gap: 28px; }
}

.o-section { padding: 80px 0; }
.o-section--paper { background: var(--o-paper); }
.o-section--tight { padding: 56px 0; }
.o-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) {
  .o-section { padding: 56px 0; }
  .o-split { grid-template-columns: 1fr; gap: 20px; }
}

.o-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.o-card {
  background: var(--o-white);
  border: 1px solid var(--o-line);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: var(--o-radius);
}
a.o-card:hover { border-color: var(--o-ink); color: inherit; }
.o-card h3 { margin-top: 8px; }
.o-card h3 a { color: inherit; text-decoration: none; }
.o-card h3 a:hover { color: var(--o-orange-text); }
.o-card__index { color: var(--o-orange-text); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; }
.o-card p { color: var(--o-slate); font-size: 0.98rem; }
.o-card__more {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--o-ink);
  text-decoration: none;
}
.o-card:hover .o-card__more { color: var(--o-orange-text); }

@media (max-width: 860px) {
  .o-cards { grid-template-columns: 1fr; }
}

.o-why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--o-line);
  border: 1px solid var(--o-line);
  margin-top: 28px;
}
.o-why article { background: var(--o-white); padding: 22px; }
.o-why h3 { font-size: 1.08rem; }
@media (max-width: 700px) { .o-why { grid-template-columns: 1fr; } }

.o-projects {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 16px;
  margin-top: 28px;
}
.o-project {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--o-white);
  border: 1px solid var(--o-line);
  min-height: 100%;
}
.o-project:hover { border-color: var(--o-ink); color: inherit; }
.o-project img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--o-paper); }
.o-project--feature img { aspect-ratio: 4 / 5; }
.o-project__body { padding: 16px 16px 18px; }
.o-project small { color: var(--o-orange-text); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.75rem; }
.o-project h3 { margin: 6px 0; font-size: 1.2rem; }
.o-project p { color: var(--o-slate); font-size: 0.95rem; margin: 0; }
@media (max-width: 860px) {
  .o-projects { grid-template-columns: 1fr; }
  .o-project--feature img, .o-project img { aspect-ratio: 16 / 11; }
}

.o-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.o-steps li {
  border-top: 2px solid var(--o-ink);
  padding-top: 12px;
}
.o-steps strong { display: block; margin-bottom: 4px; }
.o-steps span { color: var(--o-muted); font-size: 0.92rem; }
.o-steps em {
  font-style: normal;
  color: var(--o-orange-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
@media (max-width: 800px) { .o-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .o-steps { grid-template-columns: 1fr; } }

.o-cta {
  background: var(--o-ink);
  color: var(--o-white);
  padding: 64px 0;
}
.o-cta h2 { color: var(--o-white); max-width: 18ch; }
.o-cta p { color: rgba(255,255,255,0.78); max-width: 38rem; }
.o-cta__inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
}
@media (max-width: 740px) {
  .o-cta__inner { flex-direction: column; align-items: flex-start; }
}

/* Page hero */
.o-pagehero { padding: 48px 0 20px; border-bottom: 1px solid var(--o-line); background: var(--o-paper); }
.o-crumbs { font-size: 0.88rem; color: var(--o-muted); margin-bottom: 12px; }
.o-crumbs a { color: var(--o-muted); text-decoration: none; }
.o-crumbs a:hover { color: var(--o-orange-text); }
.o-pagehero h1 { max-width: 18ch; }
.o-pagehero .o-lead { margin-bottom: 8px; }

.o-prose { max-width: 44rem; }
.o-prose h2 { margin-top: 2rem; }
.o-prose ul, .o-prose ol { margin: 0 0 1rem; padding-left: 1.15rem; }
.o-prose li { margin: 0.3rem 0; }
.o-prose li::marker { color: var(--o-orange-deep); }

.o-about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}
.o-portrait {
  background: var(--o-ink);
  padding: 12px;
}
.o-portrait img { width: 100%; height: auto; }
.o-portrait figcaption { color: rgba(255,255,255,0.75); font-size: 0.85rem; padding: 10px 4px 4px; }
@media (max-width: 800px) { .o-about { grid-template-columns: 1fr; } }

.o-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.o-values article { border-top: 2px solid var(--o-orange); padding-top: 12px; }
@media (max-width: 700px) { .o-values { grid-template-columns: 1fr; } }

.o-listcheck { list-style: none; padding: 0; margin: 0; }
.o-listcheck li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid var(--o-line);
}
.o-listcheck li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--o-orange);
  position: absolute;
  left: 0;
  top: 16px;
}

.o-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0;
}
.o-meta div { border-top: 1px solid var(--o-line); padding-top: 8px; }
.o-meta dt { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--o-muted); }
.o-meta dd { margin: 2px 0 0; font-weight: 600; }

.o-faq { display: grid; gap: 8px; margin-top: 16px; }
.o-faq details {
  border: 1px solid var(--o-line);
  background: var(--o-white);
  padding: 0 16px;
}
.o-faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
}
.o-faq summary::-webkit-details-marker { display: none; }
.o-faq summary::after { content: "+"; float: right; color: var(--o-orange-text); font-weight: 500; }
.o-faq details[open] summary::after { content: "–"; }
.o-faq details p { padding-bottom: 14px; color: var(--o-slate); }

.o-contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
}
.o-contact__card {
  background: var(--o-paper);
  padding: 20px;
  border: 1px solid var(--o-line);
}
.o-contact__card a { font-weight: 600; }
.o-contact__row { margin: 0 0 14px; }
.o-contact__row span { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--o-muted); }
.o-form { display: grid; gap: 12px; }
.o-field { display: grid; gap: 6px; }
.o-field label { font-weight: 600; font-size: 0.92rem; }
.o-field input,
.o-field select,
.o-field textarea {
  font: inherit;
  color: var(--o-ink);
  background: var(--o-white);
  border: 1px solid var(--o-line-strong);
  border-radius: var(--o-radius);
  padding: 12px 12px;
  width: 100%;
  min-height: 48px;
}
.o-field textarea { min-height: 140px; resize: vertical; }
.o-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.o-note {
  background: var(--o-paper);
  border: 1px solid var(--o-line);
  padding: 12px 14px;
  color: var(--o-ok);
  font-weight: 600;
}
.o-note--err { color: var(--o-danger); }
@media (max-width: 800px) { .o-contact { grid-template-columns: 1fr; } }

.o-bloggrid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
}
.o-postlist { display: grid; gap: 14px; }
.o-post {
  display: block;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--o-line);
  padding-top: 14px;
}
.o-post:hover h3 { color: var(--o-orange-text); }
.o-side {
  background: var(--o-paper);
  padding: 18px;
  align-self: start;
  border: 1px solid var(--o-line);
}
.o-side h2 { font-size: 1.05rem; }
.o-search {
  display: flex;
  gap: 8px;
}
.o-search input {
  flex: 1;
  min-height: 48px;
  border: 1px solid var(--o-line-strong);
  border-radius: var(--o-radius);
  padding: 0 12px;
  font: inherit;
}
.o-article { max-width: 44rem; }
.o-article header { margin-bottom: 1.25rem; }
.o-related { display: grid; gap: 8px; margin-top: 8px; }
.o-related a { color: var(--o-ink); font-weight: 600; text-decoration: none; }
.o-related a:hover { color: var(--o-orange-text); }
@media (max-width: 800px) { .o-bloggrid { grid-template-columns: 1fr; } }

.o-footer {
  background: var(--o-charcoal);
  color: rgba(255,255,255,0.78);
  padding: 48px 0 20px;
  font-size: 0.95rem;
}
.o-footer a { color: rgba(255,255,255,0.86); text-decoration: none; }
.o-footer a:hover { color: var(--o-orange); }
.o-footer h2 {
  color: var(--o-white);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.o-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 28px;
}
.o-footer ul { list-style: none; margin: 0; padding: 0; }
.o-footer li { margin: 6px 0; }
.o-footer__logo { height: 40px; width: auto; margin-bottom: 12px; }
.o-social { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 8px; }
.o-footer__base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 0.88rem;
}
.o-footer__legal { display: flex; gap: 14px; }
@media (max-width: 860px) {
  .o-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .o-footer__grid { grid-template-columns: 1fr; }
}

.o-empty {
  border: 1px dashed var(--o-line-strong);
  padding: 28px;
  background: var(--o-paper);
}

:focus-visible {
  outline: 2px solid var(--o-focus);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
