/* =========================================================================
   Energy.bg — Marketing page layout
   Loads on top of colors_and_type.css.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===================== LAYOUT ===================== */
.mkt-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.mkt-section    { padding: 96px 0; background: var(--bg); }
.mkt-section.alt { background: var(--bg-muted); }

.eyebrow {
  font-size: var(--fs-12); font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--brand-700);
}

/* ===================== BUTTONS ===================== */
.btn {
  font-size: var(--fs-14); font-weight: var(--fw-semibold); line-height: 1;
  font-family: var(--font-sans);
  padding: 12px 20px; border-radius: var(--r-md);
  border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap; text-decoration: none;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.btn.primary {
  background: var(--brand-500); color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn.primary:hover  { background: var(--brand-600); transform: translateY(-1px); }
.btn.primary:active { background: var(--brand-700); transform: none; }

.btn.secondary {
  background: var(--surface); color: var(--fg-strong);
  border-color: var(--border-strong);
}
.btn.secondary:hover { background: var(--bg-muted); }

.btn.ghost {
  background: transparent; color: var(--brand-700);
}
.btn.ghost:hover { background: var(--brand-50); }

/* ===================== TOPBAR ===================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; gap: 32px;
  padding: 14px 32px; max-width: 1280px; margin: 0 auto;
}
.brand-mark {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-18); font-weight: var(--fw-bold); line-height: 1;
  color: var(--fg-strong); letter-spacing: -0.01em;
  text-decoration: none; flex-shrink: 0;
}
.brand-mark img { width: 32px; height: 32px; }

.topbar-nav { display: flex; gap: 4px; flex: 1; }
.topbar-nav a {
  padding: 8px 12px; font-size: var(--fs-14); font-weight: var(--fw-medium);
  color: var(--fg-muted); border-radius: var(--r-sm);
  transition: all 160ms var(--ease-out); text-decoration: none;
}
.topbar-nav a:hover  { color: var(--fg-strong); background: var(--bg-muted); }
.topbar-nav a.active { color: var(--brand-700); background: var(--brand-50); }

.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-12); font-weight: var(--fw-semibold);
}
.lang-toggle button {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; font-family: var(--font-sans);
  color: var(--fg-muted); line-height: 1;
}
.lang-toggle button.active { color: var(--brand-700); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  margin-left: auto; flex-shrink: 0;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--fg-strong); border-radius: 2px;
  transition: all var(--dur-base) var(--ease-out);
}

/* ===================== HERO ===================== */
.hero { padding: 88px 0 72px; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.hero-eyebrow { margin-bottom: 16px; }
.hero h1 {
  font-size: 52px; font-weight: var(--fw-extra); line-height: 1.07;
  letter-spacing: var(--tracking-tight); color: var(--fg-strong);
  margin: 0 0 20px; font-family: var(--font-sans);
}
.hero .lead {
  font-size: var(--fs-18); line-height: var(--lh-loose);
  color: var(--fg-muted); margin: 0 0 32px; max-width: 480px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 16/11;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* ===================== SECTION HEADER ===================== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow { margin-bottom: 12px; }
.section-header h2 {
  font-size: 40px; font-weight: var(--fw-bold); line-height: 1.15;
  letter-spacing: var(--tracking-tight); color: var(--fg-strong);
  margin: 0; font-family: var(--font-sans);
}

/* ===================== SERVICES GRID ===================== */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card .ico {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--brand-50); display: grid; place-items: center;
  margin-bottom: 18px;
}
.service-card .ico svg {
  width: 24px; height: 24px; stroke: var(--brand-700);
  stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.service-card h3 {
  font-size: var(--fs-18); font-weight: var(--fw-semibold); line-height: 1.3;
  color: var(--fg-strong); margin: 0 0 8px; font-family: var(--font-sans);
}
.service-card p {
  font-size: var(--fs-14); line-height: 1.55;
  color: var(--fg-muted); margin: 0;
}

/* ===================== SPLIT SECTIONS ===================== */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split h2 {
  font-size: var(--fs-36); font-weight: var(--fw-bold); line-height: 1.15;
  letter-spacing: var(--tracking-tight); color: var(--fg-strong);
  margin: 14px 0 18px; font-family: var(--font-sans);
}
.split p {
  font-size: 17px; line-height: 1.6;
  color: var(--fg-muted); margin: 0 0 14px;
}
.split .img-box {
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 4/3;
}
.split .img-box img { width: 100%; height: 100%; object-fit: cover; }
.eik {
  display: inline-flex; gap: 8px; align-items: center; margin-top: 14px;
  padding: 8px 14px; background: var(--bg-subtle); border-radius: var(--r-pill);
  font-size: var(--fs-13); font-weight: var(--fw-semibold); line-height: 1;
  font-family: var(--font-mono); color: var(--fg-strong);
}
.eik span { color: var(--fg-muted); font-weight: var(--fw-medium); }

/* ===================== OFFERINGS LIST ===================== */
.offerings { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.offering {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.offering .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-500); display: grid; place-items: center;
  flex: 0 0 22px;
}
.offering .check svg {
  width: 12px; height: 12px; stroke: #fff; stroke-width: 3;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.offering span {
  font-size: var(--fs-14); font-weight: var(--fw-semibold);
  color: var(--fg-strong);
}

/* ===================== DOCUMENTS ===================== */
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.doc-card {
  display: flex; align-items: flex-start; gap: 16px; padding: 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  text-decoration: none;
}
.doc-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-1px);
  border-color: var(--brand-300);
}
.doc-card .pdf {
  width: 44px; height: 52px; border-radius: var(--r-sm);
  background: var(--danger-bg); border: 1px solid #f1c6c0;
  color: var(--danger-700); display: grid; place-items: center;
  font-size: 11px; font-weight: var(--fw-bold); letter-spacing: .04em;
  font-family: var(--font-sans); flex: 0 0 44px;
}
.doc-card .meta h4 {
  font-size: var(--fs-14); font-weight: var(--fw-semibold); line-height: 1.3;
  color: var(--fg-strong); margin: 0 0 4px; font-family: var(--font-sans);
}
.doc-card .meta p {
  font-size: var(--fs-13); line-height: 1.4;
  color: var(--fg-muted); margin: 0 0 10px;
}
.doc-card .meta .dl {
  font-size: var(--fs-13); font-weight: var(--fw-semibold);
  color: var(--brand-700); display: inline-flex; align-items: center; gap: 5px;
}
.doc-card .meta .dl svg {
  width: 14px; height: 14px; stroke: currentColor; stroke-width: 2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}

/* ===================== CONTACT ===================== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 56px; align-items: start;
}
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ico {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--brand-50); display: grid; place-items: center; flex: 0 0 40px;
}
.contact-item .ico svg {
  width: 20px; height: 20px; stroke: var(--brand-700); stroke-width: 1.8;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.contact-item h5 {
  font-size: var(--fs-12); font-weight: var(--fw-medium); line-height: 1;
  color: var(--fg-muted); margin: 0 0 4px;
  text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-sans);
}
.contact-item p {
  font-size: var(--fs-14); font-weight: var(--fw-semibold); line-height: 1.3;
  color: var(--fg-strong); margin: 0;
}
.map-placeholder {
  aspect-ratio: 4/3; border-radius: var(--r-lg);
  background: var(--bg-subtle); border: 1px solid var(--border);
  display: grid; place-items: center; text-align: center; padding: 32px;
}
.map-placeholder svg { stroke: var(--brand-600); margin-bottom: 12px; }
.map-placeholder p {
  font-size: var(--fs-14); line-height: 1.5;
  color: var(--fg-muted); max-width: 280px; margin: 0 0 16px;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--forest-900); color: var(--neutral-100);
  padding: 48px 0 28px;
}
.site-footer .mkt-container { display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; }
.footer-top .brand-mark { color: #fff; }
.footer-top .brand-mark img { filter: brightness(1.1); }
.footer-tagline { font-size: var(--fs-13); color: rgba(255,255,255,.55); }
.footer-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: var(--fs-13); color: rgba(255,255,255,.55);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(20,22,15,.10);
}
.cookie-banner-inner { max-width: 1100px; margin: 0 auto; padding: 20px 24px; }
.cookie-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.cookie-ico {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--brand-50); display: grid; place-items: center;
  flex-shrink: 0; margin-top: 2px;
}
.cookie-ico svg {
  width: 18px; height: 18px; stroke: var(--brand-700); stroke-width: 1.8;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.cookie-banner h4 {
  font-size: var(--fs-16); font-weight: var(--fw-bold); line-height: 1.3;
  color: var(--fg-strong); margin: 0 0 5px; font-family: var(--font-sans);
}
.cookie-banner > .cookie-banner-inner > .cookie-header p {
  font-size: var(--fs-13); line-height: 1.55; color: var(--fg-muted); margin: 0;
}
.cookie-customize-panel {
  display: none; background: var(--bg-muted); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 16px;
}
.cookie-category {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.cookie-category:last-of-type { border-bottom: none; }
.cookie-category strong {
  font-size: var(--fs-14); color: var(--fg-strong);
  display: block; margin-bottom: 3px; font-weight: var(--fw-semibold);
}
.cookie-category p { font-size: var(--fs-12); color: var(--fg-muted); margin: 0; }
.cookie-always {
  font-size: var(--fs-12); font-weight: var(--fw-bold);
  color: var(--brand-600); white-space: nowrap; margin-left: 16px;
}
.cookie-save-row { margin-top: 14px; text-align: right; }
.cookie-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center; justify-content: flex-end;
}
.cookie-actions .privacy-link {
  font-size: var(--fs-13); color: var(--brand-600);
  text-decoration: none; margin-right: auto;
}
.cookie-actions .privacy-link:hover { color: var(--brand-700); text-decoration: underline; }

/* Toggle switch */
.cookie-toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; margin-left: 16px; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--neutral-300); border-radius: var(--r-pill);
  transition: background var(--dur-base) var(--ease-out);
}
.cookie-toggle-slider::before {
  content: ""; position: absolute; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%;
  transition: transform var(--dur-base) var(--ease-out);
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--brand-500); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(18px); }

/* ===================== PRIVACY PAGE ===================== */
.privacy-page { background: var(--bg-muted); min-height: 100vh; }
.privacy-wrap {
  max-width: 860px; margin: 100px auto 60px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: 48px 56px;
}
.privacy-wrap h1 {
  font-size: var(--fs-36); font-weight: var(--fw-bold); line-height: 1.2;
  color: var(--brand-700); margin: 0 0 6px; font-family: var(--font-sans);
}
.privacy-meta {
  font-size: var(--fs-13); color: var(--fg-subtle);
  margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.privacy-wrap h2 {
  font-size: var(--fs-20); font-weight: var(--fw-semibold); line-height: 1.3;
  color: var(--forest-500); margin: 32px 0 10px; font-family: var(--font-sans);
}
.privacy-wrap p, .privacy-wrap li {
  font-size: var(--fs-14); line-height: var(--lh-loose);
  color: var(--fg-muted); margin-bottom: 8px;
}
.privacy-wrap ul { padding-left: 22px; margin-bottom: 10px; }
.privacy-wrap strong { color: var(--fg-strong); }
.privacy-wrap a { color: var(--brand-600); }
.privacy-wrap a:hover { color: var(--brand-700); text-decoration: underline; }
.privacy-wrap code {
  font-family: var(--font-mono); font-size: var(--fs-13);
  background: var(--bg-subtle); padding: 2px 6px; border-radius: var(--r-xs);
  color: var(--fg-strong);
}
.privacy-wrap table {
  width: 100%; border-collapse: collapse;
  font-size: var(--fs-13); margin: 12px 0 20px;
}
.privacy-wrap table th {
  background: var(--brand-500); color: #fff;
  padding: 8px 12px; text-align: left; font-weight: var(--fw-semibold);
}
.privacy-wrap table td {
  padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top;
}
.privacy-wrap table tr:last-child td { border-bottom: none; }
.privacy-wrap table tr:nth-child(even) td { background: var(--bg-muted); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand-600); text-decoration: none;
  font-size: var(--fs-14); font-weight: var(--fw-semibold);
  margin-bottom: 24px;
}
.back-link:hover { color: var(--brand-700); }
.back-link svg {
  width: 16px; height: 16px; stroke: currentColor; stroke-width: 2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.highlight-box {
  background: var(--brand-50); border: 1px solid var(--brand-200);
  border-radius: var(--r-md); padding: 14px 18px; margin: 16px 0;
  font-size: var(--fs-14); color: var(--fg-muted);
}
.privacy-footer-link {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--border); text-align: center;
}

/* ===================== LOGIN PAGE ===================== */
.login-page {
  min-height: 100vh; display: grid; place-items: center;
  background: var(--bg-muted); padding: 24px;
}
.login-card {
  width: 100%; max-width: 400px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 40px;
}
.login-brand {
  display: flex; align-items: center; gap: 10px;
  justify-content: center; margin-bottom: 28px; text-decoration: none;
}
.login-brand img { width: 36px; height: 36px; }
.login-brand span {
  font-size: var(--fs-20); font-weight: var(--fw-bold); line-height: 1;
  color: var(--fg-strong); letter-spacing: -0.01em; font-family: var(--font-sans);
}
.login-title {
  font-size: var(--fs-24); font-weight: var(--fw-semibold); line-height: 1.2;
  color: var(--fg-strong); text-align: center;
  margin: 0 0 24px; font-family: var(--font-sans);
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: var(--fs-14); font-weight: var(--fw-medium);
  color: var(--fg-strong); margin-bottom: 6px; font-family: var(--font-sans);
}
.form-control {
  display: block; width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: var(--fs-14); font-family: var(--font-sans);
  color: var(--fg); background: var(--surface); outline: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.form-control:focus { border-color: var(--brand-500); box-shadow: var(--focus-ring); }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input { accent-color: var(--brand-500); width: 16px; height: 16px; cursor: pointer; }
.form-check label { font-size: var(--fs-14); color: var(--fg-muted); cursor: pointer; }
.btn-login {
  display: block; width: 100%; padding: 12px;
  background: var(--brand-500); color: #fff; border: none;
  border-radius: var(--r-md); cursor: pointer;
  font-size: var(--fs-14); font-weight: var(--fw-semibold); font-family: var(--font-sans);
  box-shadow: var(--shadow-brand); margin-top: 8px;
  transition: all var(--dur-base) var(--ease-out);
}
.btn-login:hover  { background: var(--brand-600); transform: translateY(-1px); }
.btn-login:active { background: var(--brand-700); transform: none; }
.btn-login:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.login-links {
  margin-top: 16px; text-align: center;
  font-size: var(--fs-13); color: var(--fg-muted);
}
.login-links a { color: var(--brand-600); }
.login-links a:hover { color: var(--brand-700); text-decoration: underline; }
.login-back {
  display: block; text-align: center; margin-top: 24px;
  font-size: var(--fs-13); color: var(--fg-muted); text-decoration: none;
}
.login-back:hover { color: var(--brand-600); }
.error { margin-top: 6px; font-size: var(--fs-13); color: var(--danger-700); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .mkt-container { padding: 0 20px; }
  .mkt-section   { padding: 64px 0; }

  /* Topbar */
  .topbar-inner { gap: 16px; padding: 12px 20px; }
  .topbar-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px 20px; flex-direction: column; gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .topbar-nav.open { display: flex; }
  .topbar { position: relative; }
  .menu-toggle { display: flex; }
  .lang-toggle { display: none; }
  .topbar-inner .btn { display: none; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art   { aspect-ratio: 16/9; }
  .hero h1    { font-size: 36px; }

  /* Splits */
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: unset; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr; }
  .docs-grid     { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .map-placeholder { aspect-ratio: 16/9; }

  /* Footer */
  .footer-top { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-bot { flex-direction: column; gap: 14px; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 16px; }

  /* Privacy */
  .privacy-wrap { margin: 80px 16px 40px; padding: 28px 20px; }
  .section-header h2 { font-size: 30px; }
}
