/* itcromania.ro — custom design, no framework. */
:root {
  --red: #e2492f;
  --red-dark: #c43a23;
  --ink: #1a1c1e;
  --body: #3c4044;
  --muted: #70757c;
  --line: #e7e8ea;
  --soft: #f6f7f8;
  --dark: #16181b;
  --dark-2: #1f2226;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 22, 26, .08);
  --shadow-lg: 0 18px 50px rgba(20, 22, 26, .14);
  --wrap: 1180px;
  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ───── header ───── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 78px; height: auto; }
.brand-txt { font-weight: 800; letter-spacing: .26em; font-size: 12px; color: var(--ink); padding-top: 14px; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav > a, .drop-toggle {
  color: var(--ink); font-weight: 600; font-size: 15px; padding: 6px 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.main-nav > a:hover, .drop-toggle:hover { color: var(--red); }
.nav-cta {
  background: var(--red); color: #fff !important;
  padding: 9px 20px !important; border-radius: 999px;
  transition: background .18s;
}
.nav-cta:hover { background: var(--red-dark); }
.nav-drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: -14px; min-width: 290px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease;
}
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu {
  opacity: 1; visibility: visible; transform: none;
}
.drop-menu a {
  display: block; padding: 9px 14px; border-radius: 9px;
  color: var(--body); font-size: 14.5px; font-weight: 550;
}
.drop-menu a:hover { background: var(--soft); color: var(--red); }
.header-tools { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang-switch a {
  padding: 5px 12px; font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.lang-switch a.on { background: var(--ink); color: #fff; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ───── hero ───── */
.hero {
  position: relative; color: #fff;
  min-height: 620px; display: flex; align-items: center;
  isolation: isolate; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("/assets/img/hero.webp") center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(13, 15, 18, .88) 0%, rgba(13, 15, 18, .62) 48%, rgba(13, 15, 18, .25) 100%);
}
.hero-inner { max-width: 720px; padding: 110px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.hero .eyebrow { color: #ff8d72; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-bottom: 20px;
}
.hero p { font-size: 18.5px; color: rgba(255, 255, 255, .85); max-width: 580px; margin: 0 0 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 15.5px;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ───── stats band ───── */
.stats { background: var(--dark); color: #fff; padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat b { display: block; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat b i { color: var(--red); font-style: normal; }
.stat span { font-size: 14px; color: rgba(255, 255, 255, .62); }

/* ───── sections ───── */
.section { padding: 92px 0; }
.section.alt { background: var(--soft); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* category cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--soft); }
.card-img.contain { object-fit: contain; padding: 18px; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 17.5px; margin-bottom: 8px; }
.card-body p { font-size: 14.5px; color: var(--muted); margin: 0 0 16px; flex: 1; }
.card-link { font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: "→"; transition: transform .15s; }
.card:hover .card-link::after { transform: translateX(4px); }
a.card-wrap-link { color: inherit; display: contents; }

/* value props */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prop {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
}
.prop .ico {
  width: 52px; height: 52px; border-radius: 14px; background: #fdeae5;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--red);
}
.prop h3 { font-size: 18px; }
.prop p { font-size: 15px; color: var(--muted); margin: 0; }

/* projects gallery */
.gallery { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-auto-rows: 240px; gap: 16px; }
.gallery a { position: relative; border-radius: var(--radius); overflow: hidden; display: block; }
.gallery a:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.045); }
.gallery figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  color: #fff; font-size: 14px; font-weight: 650;
}
.projects-note { margin-top: 22px; color: var(--muted); font-size: 15px; max-width: 760px; }

/* split (about teaser) */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; font-size: 15.5px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; border-radius: 50%; background: #fdeae5; color: var(--red);
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* CTA band */
.cta-band {
  background: linear-gradient(115deg, var(--red), #b53521);
  border-radius: 22px; color: #fff; padding: 56px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: 0; opacity: .85; }
.cta-band .btn { background: #fff; color: var(--red-dark); }
.cta-band .btn:hover { transform: translateY(-2px); }

/* ───── page hero (interior pages) ───── */
.page-hero { background: var(--dark); color: #fff; padding: 76px 0 64px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin: 0 0 10px; }
.page-hero p { color: rgba(255, 255, 255, .72); max-width: 640px; margin: 0; font-size: 17.5px; }
.page-hero .crumbs { font-size: 13.5px; color: rgba(255, 255, 255, .5); margin-bottom: 18px; display: block; }
.page-hero .crumbs a { color: rgba(255, 255, 255, .72); }
.page-hero::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(226, 73, 47, .28), transparent 65%);
}

/* category detail */
.cat-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.cat-feature + .cat-feature { margin-top: 72px; }
.cat-feature:nth-child(even) .cat-feature-img { order: 2; }
.cat-feature-img { border-radius: var(--radius); overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.cat-feature-img img { width: 100%; object-fit: cover; }
.cat-feature p { font-size: 16.5px; }

/* products */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 38px; }
.filter-bar a {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 650; color: var(--body); background: #fff;
}
.filter-bar a.on, .filter-bar a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* product detail */
.prod-top { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.prod-photo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; align-items: center; justify-content: center;
}
.prod-photo img { max-height: 420px; object-fit: contain; }
.prod-cat-tag {
  display: inline-block; background: #fdeae5; color: var(--red-dark);
  font-size: 12.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 14px; margin-bottom: 14px;
}
.prod-desc { font-size: 17px; }
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feat-list li { padding-left: 26px; position: relative; font-size: 15.5px; }
.feat-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { white-space: nowrap; color: var(--ink); font-weight: 700; width: 220px; }
.spec-table thead th { background: var(--ink); color: #fff; }
.spec-table tbody tr:nth-child(odd) { background: var(--soft); }

/* about */
.timeline { display: grid; gap: 0; margin-top: 10px; }
.tl-item { display: grid; grid-template-columns: 30px 1fr; gap: 18px; padding-bottom: 28px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 14px; top: 26px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 30px; height: 30px; border-radius: 50%; background: #fdeae5; color: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.tl-item h3 { font-size: 16.5px; margin-bottom: 4px; }
.tl-item p { margin: 0; font-size: 15px; color: var(--muted); }
.cert-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.cert {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 22px;
  font-weight: 800; color: var(--ink); letter-spacing: .04em;
}

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 15.5px; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(226, 73, 47, .14);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-msg { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; font-size: 15px; }
.form-msg.ok  { background: #e8f6ec; color: #1c7c3c; }
.form-msg.err { background: #fdeae5; color: var(--red-dark); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.addr-card { background: var(--soft); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 18px; }
.addr-card h3 { font-size: 16px; display: flex; align-items: center; gap: 9px; }
.addr-card p { margin: 0; font-size: 15px; color: var(--muted); }

/* 404 */
.nf { text-align: center; padding: 120px 24px; }
.nf b { font-size: 90px; color: var(--red); display: block; line-height: 1; letter-spacing: -.04em; }

/* ───── footer ───── */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .65); margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr; gap: 44px; padding: 64px 24px 44px;
}
.footer-grid h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid a { display: block; color: rgba(255, 255, 255, .65); padding: 4px 0; font-size: 14.5px; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: 14.5px; margin: 0 0 10px; }
.footer-logo { margin-bottom: 16px; }
.footer-hq { font-size: 13px !important; opacity: .7; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 24px; font-size: 13.5px;
}
.footer-bottom a { color: rgba(255, 255, 255, .65); }

/* reveal animation */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ───── responsive ───── */
@media (max-width: 1020px) {
  .cards, .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .props { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .cat-feature, .prod-top, .contact-grid { grid-template-columns: 1fr; }
  .cat-feature:nth-child(even) .cat-feature-img { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .cards, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .burger { display: block; }
  .main-nav {
    position: fixed; inset: 72px 0 auto; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none; max-height: calc(100vh - 72px); overflow: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .drop-toggle { padding: 13px 0; border-bottom: 1px solid var(--soft); }
  .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .nav-cta { margin-top: 14px; text-align: center; justify-content: center; }
  .hero { min-height: 520px; }
  .hero-inner { padding: 80px 0; }
  .section { padding: 64px 0; }
  .cta-band { padding: 40px 28px; }
  .gallery a:first-child { grid-row: auto; }
}
@media (max-width: 460px) {
  .cards, .prod-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
