/*
Theme Name: Vidanjare Bacău
Theme URI: https://example.com/
Author: Vidanjare Bacău
Description: Temă de prezentare pentru servicii de vidanjare și desfundare canalizare: număr de telefon mare, servicii, pași, calculator pentru golirea fosei, zone acoperite, formular de cerere ofertă (email sau WhatsApp) și întrebări frecvente. Datele se editează din Aspect → Personalizează → Vidanjare: date și conținut.
Version: 1.0.0
Requires at least: 6.0
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: vidanjare-bacau
Tags: one-column, custom-logo, business
*/

/* ==========================================================================
   Vidanjare Bacău — foaie de stil
   Culori: verde-brad (încredere, mediu) + portocaliu de utilaj (apel)
   Fonturi: Barlow Condensed (titluri, numărul de telefon) + Barlow (text)
   ========================================================================== */

:root {
  --pine: #0E3B34;
  --pine-deep: #0A2C27;
  --signal: #FF7A1A;
  --signal-hover: #FF9142;
  --paper: #F2F5F3;
  --surface: #FFFFFF;
  --foam: #DCEAE4;
  --text: #102A25;
  --heading: #0E3B34;
  --muted: #4E625C;
  --line: #C9D6D1;
  --rule: #0E3B34;
  --on-dark: #EAF2EF;
  --on-dark-muted: #A9C2BA;
  --focus: #FF7A1A;

  --font-display: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --radius: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pine: #0B302A;
    --pine-deep: #071F1B;
    --paper: #0C1715;
    --surface: #12211E;
    --foam: #15302A;
    --text: #E2ECE8;
    --heading: #EEF5F2;
    --muted: #9DB3AC;
    --line: #29403A;
    --rule: #3E7D6F;
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.002em;
  margin: 0;
}
h2 { font-size: clamp(2.1rem, 3.8vw, 3rem); text-wrap: balance; }
h3 { font-size: 1.6rem; line-height: 1.1; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--signal); color: var(--pine-deep); padding: 10px 16px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0 1.4em;
  border-radius: var(--radius); border: 2px solid transparent;
  font: 600 1.0625rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-call { background: var(--signal); color: var(--pine-deep); }
.btn-call:hover { background: var(--signal-hover); }
.btn-ghost { border-color: rgba(234, 242, 239, .45); color: var(--on-dark); background: transparent; }
.btn-ghost:hover { border-color: var(--on-dark); background: rgba(234, 242, 239, .08); }
.btn-dark { background: var(--pine); color: var(--on-dark); }
.btn-dark:hover { background: var(--pine-deep); }

/* ---------- Antet ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font: 700 1.6rem/1 var(--font-display); letter-spacing: 0.005em; }
.brand-name small { display: block; font: 500 .8rem/1.2 var(--font-body); color: var(--muted); letter-spacing: 0; margin-top: 3px; }

.site-nav { display: flex; gap: 28px; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 1rem; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--signal); }

.header-call { min-height: 46px; padding: 0 1.1em; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

@media (max-width: 960px) { .site-nav { display: none; } }
@media (max-width: 520px) {
  .brand-name small { display: none; }
  .header-call .num { display: none; }
  .header-call { padding: 0 1em; }
  .header-call::after { content: "Sună"; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--pine);
  color: var(--on-dark);
  padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { color: var(--on-dark); font-size: clamp(2.5rem, 5vw, 3.9rem); text-wrap: balance; }
.hero-lead { color: var(--on-dark-muted); font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 34rem; margin-top: 22px; }

.hero-call {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px;
  border-top: 1px solid rgba(234, 242, 239, .18); padding-top: clamp(20px, 3vw, 32px);
}
.hero-phone {
  display: inline-block;
  font: 800 clamp(3.2rem, 14.5vw, 7.4rem)/0.86 var(--font-display);
  letter-spacing: 0.005em;
  color: var(--signal); text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hero-phone:hover { color: var(--signal-hover); }
.hero-side { max-width: 23.5rem; padding-bottom: 4px; }
.hero-hours { color: var(--on-dark); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.hero-actions .btn { flex: 1 1 0; white-space: nowrap; }

.truck { width: 100%; height: auto; }
.truck .ln { stroke: var(--on-dark); stroke-width: 3; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.truck .ln-soft { stroke: var(--on-dark-muted); stroke-width: 2; fill: none; stroke-dasharray: 2 9; stroke-linecap: round; }
.truck .tank { fill: rgba(234, 242, 239, .06); }
.truck .fill-dark { fill: var(--pine-deep); }
.truck .fill-signal { fill: var(--signal); }
.truck .hose { stroke: var(--signal); stroke-width: 9; fill: none; stroke-linecap: round; }
.truck .lettering { font: 800 34px var(--font-display); fill: var(--on-dark); letter-spacing: .5px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; order: 3; }
  .hero-side { max-width: none; width: 100%; }
}

/* ---------- Secțiuni ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 42rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.15rem; }

/* Servicii */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 52px) clamp(32px, 5vw, 72px); list-style: none; margin: 0; padding: 0; }
.service { border-top: 3px solid var(--rule); padding-top: 20px; }
.service p { margin-top: 10px; max-width: 34rem; }
.service .fit { color: var(--muted); font-size: 1rem; margin-top: 12px; }
.service .fit strong { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Pași */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 74px; counter-increment: step; }
.step::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pine); color: var(--on-dark);
  font: 700 1.6rem/1 var(--font-display);
  z-index: 1;
}
.step::after { content: ""; position: absolute; top: 25px; left: 52px; right: -28px; height: 3px; background: var(--line); }
.step:last-child::after { display: none; }
.step p { color: var(--muted); margin-top: 8px; font-size: 1.05rem; }
@media (prefers-color-scheme: dark) { .step::before { background: var(--rule); color: #fff; } }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 4px 0 32px 76px; }
  .step::after { top: 52px; bottom: 0; left: 25px; right: auto; width: 3px; height: auto; display: block; }
  .step:nth-child(2)::after { display: block; }
  .step:last-child::after { display: none; }
  .step:last-child { padding-bottom: 0; }
}

/* Galerie */
.gallery-block { margin-top: clamp(56px, 7vw, 88px); }
.gallery-block h3 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin-bottom: 20px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
.gallery figure { margin: 0; }
.gallery button { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--foam); }
.gallery figcaption { margin-top: 10px; font-size: 1rem; color: var(--muted); }
.gallery figcaption strong { display: block; color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgba(5, 18, 16, .88); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox p { color: #EAF2EF; text-align: center; margin-top: 12px; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #EAF2EF; color: #0A2C27; font-size: 28px; line-height: 1; cursor: pointer; }

/* Planificare: calculator + preț */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.calc { background: var(--foam); border-radius: 10px; padding: clamp(24px, 3.5vw, 40px); }
.calc h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.calc > p { margin-top: 12px; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.calc-fields .full { grid-column: 1 / -1; }
.calc-result { margin-top: 26px; padding-top: 22px; border-top: 2px solid var(--rule); }
.calc-days { font: 800 clamp(3rem, 6vw, 4.2rem)/0.95 var(--font-display); color: var(--heading); }
.calc-days span { font-size: .45em; font-weight: 700; margin-left: .2em; }
.calc-note { font-size: .95rem; color: var(--muted); margin-top: 14px; }

.price-intro { margin-top: 14px; color: var(--muted); }
.price-factors { margin: 22px 0 0; }
.price-factors div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-factors div:first-child { border-top: 1px solid var(--line); }
.price-factors dt { font-weight: 600; }
.price-factors dd { margin: 4px 0 0; color: var(--muted); font-size: 1.05rem; }
@media (max-width: 860px) { .plan-grid { grid-template-columns: 1fr; } }

/* Câmpuri formular */
.field label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px;
  padding: 12px 14px;
  font: 400 1.0625rem/1.4 var(--font-body);
  color: var(--text); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 30%, transparent); }
.field .optional { font-weight: 400; color: var(--muted); }
.field .hint { font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* Zone */
.zones { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 72px); }
.zones h3 { font-size: 1.3rem; margin-bottom: 14px; }
.zone-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.zone-list li { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 1rem; background: var(--surface); }
.zone-list.towns li { border-color: var(--rule); font-weight: 600; }
.zones-note { margin-top: 18px; color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) { .zones { grid-template-columns: 1fr; } }

/* Cerere ofertă */
.request-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.request-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.request-form .full { grid-column: 1 / -1; }
.request-form .btn { width: 100%; }
.form-privacy { font-size: .95rem; color: var(--muted); }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--radius); font-weight: 500; }
.form-status.ok { background: var(--foam); color: var(--heading); border-left: 4px solid var(--rule); }
.form-status.err { background: #FDE8DD; color: #6B2A07; border-left: 4px solid var(--signal); }
.hp { position: absolute !important; left: -9999px !important; }

.contact-card { border-top: 3px solid var(--rule); padding-top: 20px; }
.contact-card .big { display: inline-block; font: 800 clamp(2.4rem, 4vw, 3rem)/1 var(--font-display); color: var(--heading); text-decoration: none; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.contact-card .big:hover { color: var(--signal); }
.contact-card p { color: var(--muted); }
.contact-card .btn { margin-top: 18px; }
@media (max-width: 860px) { .request-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .request-form, .calc-fields { grid-template-columns: 1fr; } }

/* Întrebări */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-weight: 600; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 44rem; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Subsol */
.site-footer { background: var(--pine-deep); color: var(--on-dark-muted); padding: 64px 0 40px; font-size: 1rem; }
.site-footer a { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(234, 242, 239, .14); }
.site-footer .brand { color: var(--on-dark); margin-bottom: 14px; }
.site-footer .brand-name small { color: var(--on-dark-muted); }
.site-footer h3 { color: var(--on-dark); font-size: 1.2rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-phone { font: 700 1.5rem/1 var(--font-display); text-decoration: none; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; font-size: .9rem; }
.footer-legal p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* Bară apel mobil */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(10, 44, 39, .12);
  }
  .mobile-bar .btn { min-height: 54px; padding: 0 .8em; }
}

/* Pagini simple (WordPress: politica de confidențialitate etc.) */
.page-content { max-width: 46rem; }
.page-content h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 28px; }
.page-content h2 { font-size: 1.9rem; margin: 1.6em 0 .5em; }
.page-content a { color: var(--heading); }

/* WordPress: elemente de bază pentru conținutul paginilor */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.page-content img { height: auto; }
.page-content .alignleft { float: left; margin: 0 1.5em 1em 0; }
.page-content .alignright { float: right; margin: 0 0 1em 1.5em; }
.page-content .aligncenter { margin-inline: auto; }
.page-content article + article { margin-top: 48px; }
.wp-caption-text, .wp-element-caption { font-size: .95rem; color: var(--muted); }
