/*
Theme Name: Service IT Popești-Leordeni
Description: Temă clasică pentru un service de laptopuri și calculatoare din Popești-Leordeni. Fără imagini obligatorii, rapidă, cu formular de cerere și date de contact editabile din Personalizare.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: swit
*/

:root {
  --paper: #f0f2f4;
  --ink: #101826;
  --pcb: #0e6b63;
  --gold: #e0a63a;
  --steel: #c5cdd3;
  --line: rgba(16, 24, 38, 0.2);
  --line-light: rgba(240, 242, 244, 0.3);
  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --display: "Archivo", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --text: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-stretch: 118%; line-height: 1.05; letter-spacing: -0.015em; margin: 0; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 62ch; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 60; }
.skip:focus { left: 0; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.block { padding-block: clamp(3.25rem, 7.5vw, 6rem); }

/* Butoane */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.4rem;
  font: 600 1rem/1 var(--text); text-decoration: none; cursor: pointer;
  background: var(--gold); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 2px;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Antet */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(240, 242, 244, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.header-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font: 800 1.15rem/1.1 var(--display); font-stretch: 118%; }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.brand .custom-logo { max-height: 2.75rem; width: auto; }
.nav-list { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list .current-menu-item > a { border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.menu-toggle { display: none; min-height: 3rem; padding: .5rem 1rem; font: 600 1rem var(--text); background: transparent; border: 2px solid var(--ink); border-radius: 2px; cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.trace { position: absolute; right: -2rem; top: 0; width: min(62vw, 760px); height: 100%; pointer-events: none; opacity: .9; }
.trace path { fill: none; stroke: var(--steel); stroke-width: 2; vector-effect: non-scaling-stroke; }
.trace .live { stroke: var(--gold); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s .3s cubic-bezier(.6, 0, .2, 1) forwards; }
.trace circle { fill: var(--paper); stroke: var(--steel); stroke-width: 2; vector-effect: non-scaling-stroke; }
.trace .pad { stroke: var(--gold); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
.lead { font-size: 1.22rem; line-height: 1.55; max-width: 36ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; }

.ticket { background: #fff; border: 2px solid var(--ink); border-radius: 2px; box-shadow: 8px 8px 0 var(--ink); padding: 0 0 1.5rem; }
.ticket-top { padding: .9rem 1.4rem; border-bottom: 2px dashed var(--ink); font: 700 1rem var(--display); font-stretch: 118%; background: var(--gold); }
.ticket-body { padding: 1.4rem 1.4rem 0; }
.ticket h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.problems { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0 0 1.25rem; padding: 0; }
.problems a {
  display: inline-block; text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: .45rem .95rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper);
  transition: background .15s, color .15s;
}
.problems a:hover { background: var(--ink); color: var(--paper); }
.ticket-phone { margin: 0; font-size: .98rem; }
.ticket-phone a { font: 800 1.5rem/1.2 var(--display); font-stretch: 118%; text-decoration: none; display: block; }

/* Servicii */
.services { background: var(--pcb); color: var(--paper); }
.section-head { max-width: 42rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head p { margin: .9rem 0 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.service { border-top: 6px solid var(--gold); padding-top: 1.1rem; }
.service h3 { margin-bottom: .6rem; font-size: 1.35rem; }
.service p { margin: 0; }
.services-extra { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line-light); display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: baseline; }
.services-extra h3 { font-size: 1.1rem; }
.services-extra p { margin: 0; max-width: 60ch; }

/* Probleme */
.symptoms-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.problem-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.problem-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line); text-decoration: none;
  font: 700 clamp(1.15rem, 2.4vw, 1.5rem)/1.2 var(--display); font-stretch: 112%;
  transition: padding-left .2s, background .2s;
}
.problem-list a span { font: 500 .92rem var(--text); color: var(--pcb); white-space: nowrap; }
.problem-list a:hover { padding-left: .75rem; background: var(--steel); }

/* Zonă */
.area { background: var(--steel); }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.area p { font-size: 1.12rem; }
.area-note { font: 700 1.3rem/1.35 var(--display); font-stretch: 112%; border-left: 6px solid var(--pcb); padding-left: 1.1rem; }

/* Contact */
.contact { background: var(--ink); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .98rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .7rem .85rem;
  font: 400 1rem var(--text); color: var(--ink); background: #fff;
  border: 2px solid var(--paper); border-radius: 2px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224, 166, 58, .55); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.hp { position: absolute; left: -9999px; }
.notice { padding: .9rem 1rem; border-radius: 2px; font-weight: 600; margin-bottom: 1.25rem; color: var(--ink); }
.notice-ok { background: var(--gold); }
.notice-err { background: #f3d6c8; }
.contact-card h3 { margin-bottom: .6rem; font-size: 1.35rem; }
.contact-card p { margin-bottom: 1.2rem; }
.contact-card a.big { display: block; width: fit-content; text-decoration: none; font: 800 1.9rem/1.25 var(--display); font-stretch: 118%; border-bottom: 3px solid var(--gold); margin-bottom: .6rem; }
.contact-card a.big:hover { background: var(--gold); color: var(--ink); }
.contact-card dl { margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.contact-card dt { font-weight: 600; }
.contact-card dd { margin: 0; opacity: .9; white-space: pre-line; }

/* Subsol */
.site-footer { background: var(--paper); border-top: 2px solid var(--ink); padding-block: 1.75rem; font-size: .95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-row p { margin: 0; max-width: none; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Pagini obișnuite */
.page-content { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-content h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: 1.5rem; }
.page-content .entry > * { max-width: 70ch; }
.page-content .entry .alignwide, .page-content .entry .alignfull { max-width: none; }
.page-content .entry h2, .page-content .entry h3 { margin: 2rem 0 .75rem; }
.page-content .entry img { border-radius: 2px; }
.page-content article + article { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* Înapoi sus */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  width: 3.25rem; height: 3.25rem; display: grid; place-items: center;
  background: var(--gold); color: var(--ink); border: 2px solid var(--ink); border-radius: 2px; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(.5rem);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s, color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); color: var(--paper); }
.to-top svg { width: 1.4rem; height: 1.4rem; }

/* Ecrane mici */
@media (max-width: 900px) {
  .hero-grid, .symptoms-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .trace { opacity: .45; width: 110vw; right: -30vw; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-header .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 2px solid var(--ink); display: none; }
  .site-header .nav[data-open="true"] { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: .5rem var(--pad) 1rem; }
  .nav-list a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .header-actions .btn { display: none; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .problem-list a span { display: none; }
  .ticket { box-shadow: 5px 5px 0 var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace .live { animation: none; stroke-dashoffset: 0; }
  .to-top, .problem-list a, .problems a { transition: none; }
}
