/* ====== automatizari-procese.ro — sistem vizual ======
   Bază: teal/petrol (platformă). Accent suprascris per unealtă
   (ex. .theme-apicol → miere). Lizibilitate și contrast prioritare. */

:root {
  /* Bază platformă (teal/petrol) */
  --brand: #0f6e6e;
  --brand-dark: #0a4f4f;
  --brand-light: #e6f2f2;
  --accent: #0f6e6e;          /* implicit = brand; suprascris per unealtă */
  --accent-contrast: #ffffff;

  /* Neutre */
  --ink: #1c2526;
  --muted: #5a6b6b;
  --line: #d9e2e2;
  --bg: #ffffff;
  --bg-alt: #f4f8f8;

  --radius: 12px;
  --maxw: 1080px;
  --space: 1.25rem;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* Accent per unealtă: apicol = miere */
.theme-apicol {
  --accent: #d99413;
  --accent-contrast: #1c2526;
  --brand-light: #fbf2dd;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;       /* text mare, lizibil */
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
a { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: .5rem 1rem;
}
.skip-link:focus { left: 0; z-index: 100; }

/* ====== Header / navigație ====== */
.site-header {
  background: var(--brand-dark);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.15rem; }
.main-nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.main-nav a { color: #d7eaea; text-decoration: none; padding: .4rem 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; border-bottom: 2px solid var(--accent); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ====== Butoane ====== */
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { filter: brightness(.94); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--brand-dark); }
.btn.is-disabled { opacity: .6; pointer-events: none; }

/* ====== Secțiuni ====== */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
.page-narrow .container { max-width: 760px; }

/* ====== Hero ====== */
.hero { background: linear-gradient(160deg, var(--brand-light), #fff); padding: 4rem 0 3.5rem; }
.hero h1 { max-width: 18ch; }
.hero-sub { font-size: 1.25rem; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-tool { background: linear-gradient(160deg, var(--brand-light), #fff); }
.note { color: var(--muted); font-size: 1rem; margin-top: 1rem; }

/* ====== Pași ====== */
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.step-num { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); font-weight: 700; }

/* ====== Carduri unelte ====== */
.tools-grid, .trust-grid, .posts-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.5rem; padding: 0; list-style: none; }
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; position: relative; }
.tool-active { border-color: var(--accent); }
.tool-soon { opacity: .7; }
.badge { position: absolute; top: 1rem; right: 1rem; background: var(--bg-alt); color: var(--muted); font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; }
.trust-grid li, .post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }

.cta-final { text-align: center; }
.link-more { font-weight: 600; }

/* ====== Blog ====== */
.post-list { list-style: none; padding: 0; }
.post-list li { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.post-meta { color: var(--muted); font-size: .95rem; margin: .2rem 0; }
.post-body { margin-top: 1.5rem; }
.post-body h2, .post-body h3 { margin-top: 1.8rem; }

/* ====== Legal ====== */
.legal-body h2 { margin-top: 2rem; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: .35rem 0; }

/* ====== Subsol ====== */
.site-footer { background: var(--brand-dark); color: #cfe3e3; margin-top: 3rem; padding: 2.5rem 0 1.5rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1.3fr; }
.footer-company-name { font-weight: 700; color: #fff; }
.footer-company p { margin: .2rem 0; font-size: .98rem; }
.footer-legal ul { list-style: none; padding: 0; margin: 0; }
.footer-legal li { padding: .25rem 0; }
.footer-anpc img { background: #fff; border-radius: 6px; padding: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 1.5rem; padding-top: 1rem; font-size: .9rem; }

/* ====== Banner cookie ====== */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80;
  max-width: 720px; margin: 0 auto;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.cookie-text { margin: 0 0 .75rem; font-size: 1rem; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-actions button { padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-alt); cursor: pointer; font-weight: 600; }
.cookie-actions button[data-cookie="accept"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.cookie-settings { margin-top: 1rem; display: grid; gap: .5rem; }
.cookie-settings label { display: flex; gap: .5rem; align-items: center; }
.cookie-locked { color: var(--muted); }

/* ====== Responsive ====== */
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav ul { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; background: var(--brand-dark); padding: 1rem; gap: .5rem; }
  .main-nav ul.is-open { display: flex; }
}

/* ====== Accesibilitate ====== */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
