/*
Theme Name: Consult Tehno Instal
Theme URI: https://example.com/
Author: SC CONSULT TEHNO INSTAL SRL
Description: Temă modernă, rapidă și responsive pentru SC CONSULT TEHNO INSTAL SRL – consultanță tehnică, proiectare și execuție instalații. Fără dependențe de page-builder; textele și datele de contact se editează din Aspect → Personalizare.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.7
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: cti
*/

:root {
  --ink: #0a0a0b;
  --ink-2: #1c1c1f;
  --muted: #5f6368;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --accent: #f7b500;
  --accent-ink: #b45309;
  --accent-dark: #e0a300;
  --steel: #b45309;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 27, 42, .08);
  --wrap: 1180px;
  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #c9d4e0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section-head p { color: #9fb0c3; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 999; width: auto; height: auto;
  clip: auto; background: #fff; padding: 10px 16px; border-radius: 8px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap; transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #0a0a0b; }
.btn--primary:hover { background: var(--accent-dark); color: #0a0a0b; }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--ink) 0%, var(--steel) 100%);
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: .95rem; letter-spacing: .02em;
}
.brand__text { font-family: var(--font-head); font-weight: 800; line-height: 1.1; font-size: 1.02rem; letter-spacing: -.01em; }
.brand__text small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.custom-logo { max-height: 52px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.main-nav a { color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .96rem; padding: 8px 0; position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .2s;
}
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-family: var(--font-head); font-weight: 700; color: var(--ink); white-space: nowrap; }
.header-cta .btn { padding: 11px 20px; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #d6e0ea;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(247,181,0,.20), transparent 60%),
    radial-gradient(700px 420px at 5% 100%, rgba(242,107,33,.20), transparent 60%),
    var(--ink);
  padding: clamp(80px, 11vw, 150px) 0 clamp(70px, 9vw, 120px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero.has-image::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--hero-img) center/cover no-repeat; opacity: .22;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 1.18rem; max-width: 560px; margin-bottom: 34px; color: #b9c7d6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; font-size: .95rem; color: #9fb0c3; }
.hero__badges li { display: flex; align-items: center; gap: 8px; }
.hero__badges svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px; padding: 30px; backdrop-filter: blur(8px);
}
.hero-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero-card li {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: rgba(255,255,255,.05); border-radius: 12px; color: #e6edf4; font-weight: 500;
}
.hero-card li svg { width: 24px; height: 24px; color: var(--accent); flex: none; }

/* Stats */
.stats { margin-top: -46px; position: relative; z-index: 2; }
.stats__grid {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 30px 26px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--ink); line-height: 1; }
.stat__label { color: var(--muted); font-size: .93rem; margin-top: 8px; }

/* Services */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(247,181,0,.16); color: var(--accent-ink); margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-visual {
  position: relative; border-radius: 22px; min-height: 440px; overflow: hidden;
  background: #000;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.about-visual svg.blueprint { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.about-visual__tag {
  position: absolute; left: 22px; bottom: 22px; background: #fff; border-radius: 14px;
  padding: 16px 20px; box-shadow: var(--shadow); font-family: var(--font-head); font-weight: 700; color: var(--ink);
  max-width: 260px; line-height: 1.3;
}
.about-visual__tag small { display: block; font-weight: 500; color: var(--muted); font-family: var(--font-body); margin-top: 4px; }
.checklist { list-style: none; margin: 26px 0 32px; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--accent); display: block; line-height: 1; margin-bottom: 18px;
}
.step p { margin: 0; color: #9fb0c3; font-size: .97rem; }

/* Projects */
.project { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; color: inherit; transition: transform .2s, box-shadow .2s; }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.project__img { aspect-ratio: 4 / 3; background: linear-gradient(140deg, var(--ink-2), var(--steel)); position: relative; overflow: hidden; }
.project__img img { width: 100%; height: 100%; object-fit: cover; }
.project__img--b { background: linear-gradient(140deg, #24384f, #f26b21); }
.project__img--c { background: linear-gradient(140deg, #0d1b2a, #3a8fa8); }
.project__body { padding: 22px 24px 26px; }
.project__cat { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-family: var(--font-head); }
.project__body h3 { margin: 8px 0 6px; }
.project__body p { margin: 0; color: var(--muted); font-size: .95rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, #f58a1f 100%); color: #0a0a0b; padding: 56px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #0a0a0b; margin: 0 0 6px; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.cta-band p { margin: 0; opacity: .92; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .card__icon { margin: 0; width: 48px; height: 48px; flex: none; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--ink); }
.contact-list a { color: var(--ink-2); }
.contact-list a:hover { color: var(--accent); }
.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg-soft);
  border: 1.5px solid transparent; border-radius: 10px; padding: 13px 14px; transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--steel); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field--hp { position: absolute; left: -9999px; }
.form__consent { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); margin: 4px 0 20px; align-items: flex-start; }
.form__consent input { margin-top: 4px; flex: none; }
.form .btn { width: 100%; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.notice--ok { background: #e7f6ec; color: #17633a; }
.notice--err { background: #fdeaea; color: #a12626; }

/* Footer */
.site-footer { background: var(--ink); color: #9fb0c3; padding: 64px 0 0; font-size: .95rem; }
.site-footer a { color: #c9d4e0; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand__text small { color: #8ea0b5; }
.site-footer .brand__mark { background: linear-gradient(135deg, var(--accent), #f58a3c); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .87rem; }
.footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }

/* Inner pages */
.page-hero { background: var(--ink); color: #b9c7d6; padding: 72px 0 60px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.entry { padding: 64px 0 90px; }
.entry .wrap { max-width: 820px; }
.entry-content > * { margin-bottom: 1.2em; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.7rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.post-list { display: grid; gap: 28px; }
.post-item { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.post-item h2 { font-size: 1.5rem; margin-bottom: 6px; }
.post-item h2 a { color: var(--ink); }
.post-meta { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.pagination { margin-top: 40px; display: flex; gap: 10px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1020px) {
  .hero .wrap, .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 10px 20px 22px; display: none;
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .header-cta .btn { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-3, .steps, .footer-grid, .form__row { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .about-visual { min-height: 320px; }
  .hero__actions .btn { width: 100%; }
}

.btn svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 620px) { .btn { white-space: normal; text-align: center; } }

/* Siglă + paletă galben/negru */
.site-header .brand, .site-header .brand:hover, .site-header .main-nav a, .site-header .header-phone { color: #fff; }
.site-header .brand__text small { color: #b9b9bd; }
.site-header .nav-toggle span { background: #fff; }
.brand__logo { width: 60px; height: 60px; flex: none; object-fit: contain; }
.site-footer .brand__logo { width: 84px; height: 84px; }
.custom-logo { max-height: 60px; }
.eyebrow { color: var(--accent-ink); }
.eyebrow::before { background: var(--accent); }
.hero .eyebrow, .section--dark .eyebrow { color: var(--accent); }
.checklist svg { color: var(--accent-ink); }
.hero-logo { width: min(100%, 440px); margin-inline: auto; -webkit-mask-image: radial-gradient(closest-side, #000 84%, transparent 100%); mask-image: radial-gradient(closest-side, #000 84%, transparent 100%); }
.about-visual .about-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.site-footer { background: #000; }
@media (max-width: 860px) {
  .main-nav { background: #000; border-bottom-color: rgba(255,255,255,.1); }
  .main-nav a { border-bottom-color: rgba(255,255,255,.1); }
}
@media (max-width: 1020px) { .hero-logo { max-width: 320px; } }
.about-visual { background: #010101 !important; }

/* Carduri cu imagine (Domenii) */
.card--media { padding: 0; overflow: hidden; }
.card__media { aspect-ratio: 5 / 3; background: #0a0a0b; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card--media:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 0 28px 30px; }
.card--media .card__icon { margin-top: -27px; position: relative; background: var(--accent); color: #0a0a0b; box-shadow: 0 0 0 5px #fff; }

/* Colțuri rotunjite garantate pe imagini */
.card--media { border-radius: var(--radius); }
.card__media { border-radius: var(--radius) var(--radius) 0 0; }
.card__media img { border-radius: var(--radius) var(--radius) 0 0; display: block; }
.hero-logo { border-radius: 50%; }
.about-visual, .about-visual img { border-radius: 22px; }

/* Pagina Legislație */
.page-hero .eyebrow { color: var(--accent); }
.page-hero__lead { max-width: 720px; margin: 18px 0 0; font-size: 1.1rem; color: #b9b9bd; }
.law .wrap { max-width: 980px; }
.law__group { margin-bottom: 56px; }
.law__group h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); padding-left: 16px; border-left: 5px solid var(--accent); margin-bottom: 8px; }
.law__intro { color: var(--muted); margin-bottom: 22px; }
.law__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.law__item { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; transition: border-color .2s, box-shadow .2s; }
.law__item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.law__no { font-family: var(--font-head); font-weight: 800; color: var(--ink); line-height: 1.3; }
.law__title { margin: 0; color: var(--ink-2); }
.law__note { margin: 6px 0 0; color: var(--muted); font-size: .93rem; }
.law__disclaimer { background: var(--bg-soft); border-radius: var(--radius); padding: 18px 22px; font-size: .92rem; color: var(--muted); margin: 0; }
.law__extra { margin-bottom: 40px; }
@media (max-width: 720px) { .law__item { grid-template-columns: 1fr; gap: 6px; } }

.about-visual > img { object-position: 35% center; }
