/* Dacia Energy Solutions — public site shell. Light theme, one red accent. */
:root {
  --red: #cf2e2e;
  --red-hot: #fe2d2d;
  --red-deep: #a81f1f;
  --ink: #080808;
  --ink-2: #212121;
  --ink-3: #4a4a4a;
  --navy: #002954;
  --navy-2: #0b3d73;
  --mist: #eff2f7;
  --mist-2: #e3e8f0;
  --paper: #ffffff;
  --line: #d9dee7;
  --font-body: "Fira Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Rubik", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1160px;
  --gutter: 16px;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(0, 41, 84, .08);
  --shadow-lg: 0 16px 48px rgba(0, 41, 84, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
p, ul, ol { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico-inline { width: 1em; height: 1em; vertical-align: -.15em; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: .5rem 1rem; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; font-family: var(--font-head); font-weight: 500; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Top bar */
.topbar { background: var(--ink); color: #fff; font-size: .875rem; }
.topbar-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; opacity: .92; }
.topbar a:hover { color: #fff; opacity: 1; text-decoration: underline; }
.topbar-telverde { margin-left: auto; }
.lang-switch { font-family: var(--font-head); font-weight: 500; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; padding: .1em .55em; }
@media (max-width: 720px) {
  .topbar-inner { gap: .75rem; }
  .topbar a span { display: none; }
  .topbar .lang-switch, .topbar-telverde span { display: inline; }
  .topbar-telverde { display: none; }
}

/* Header + navigation */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; position: relative; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink-3); padding: .4rem 0; }
.brand img { width: 186px; height: auto; }
.brand-tagline { font-size: .75rem; letter-spacing: .02em; margin-top: -.15rem; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-button { display: none; align-items: center; gap: .6rem; cursor: pointer; font-family: var(--font-head); font-weight: 500; color: var(--navy); padding: .5rem .25rem; }
.nav-burger { width: 24px; height: 2px; background: currentColor; position: relative; display: block; }
.nav-burger::before, .nav-burger::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: currentColor; }
.nav-burger::before { top: -7px; } .nav-burger::after { top: 7px; }
.menu, .sub { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: center; gap: .25rem; }
.menu-item { position: relative; }
.menu-item > a { display: block; padding: .7rem .8rem; font-family: var(--font-head); font-weight: 500; color: var(--navy); text-decoration: none; border-radius: 8px; white-space: nowrap; }
.menu-item > a:hover, .menu-item.is-active > a { color: var(--red); background: var(--mist); }
.has-sub > a::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); }
.sub { position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: .5rem; display: none; z-index: 60; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: .55rem .8rem; color: var(--ink-2); text-decoration: none; border-radius: 6px; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--mist); color: var(--red); }
.menu-item:last-child > a { background: var(--red); color: #fff; margin-left: .35rem; }
.menu-item:last-child > a:hover, .menu-item:last-child.is-active > a { background: var(--red-deep); color: #fff; }
@media (max-width: 960px) {
  .nav-button { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: .5rem var(--gutter) 1rem; max-height: calc(100vh - 130px); overflow: auto; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu-item > a { padding: .8rem .5rem; border-radius: 6px; white-space: normal; }
  .has-sub > a::after { display: none; }
  .sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 .5rem .75rem; min-width: 0; }
  .sub a { padding: .45rem .5rem; }
  .menu-item:last-child > a { margin: .5rem 0 0; text-align: center; }
  .brand img { width: 150px; }
  .brand-tagline { display: none; }
}

/* Hero */
.hero { position: relative; color: #fff; min-height: min(72vh, 640px); display: flex; align-items: center; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 8, 8, .88) 0%, rgba(0, 41, 84, .78) 55%, rgba(8, 8, 8, .35) 100%); }
.hero-inner { padding-block: clamp(3rem, 8vw, 6rem); max-width: 860px; margin-inline: auto; }
.hero-kicker { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: #ffb3b3; margin-bottom: 1rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.9rem); margin-bottom: 1rem; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 60ch; color: rgba(255, 255, 255, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Bands */
.band { padding-block: 2rem; }
.band-numbers { background: var(--navy); color: #fff; }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem 2rem; }
.number { display: flex; flex-direction: column; gap: .25rem; border-left: 3px solid var(--red-hot); padding-left: 1rem; }
.number-value { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.6rem); line-height: 1.1; }
.number-label { color: rgba(255, 255, 255, .85); font-size: .95rem; }
.band-contact { background: var(--ink); color: #fff; padding-block: 3rem; }
.contact-strip { display: grid; grid-template-columns: 1.2fr 1.6fr auto; gap: 2rem; align-items: center; }
.contact-strip h2 { color: #fff; margin-bottom: .25rem; }
.contact-strip p { color: rgba(255, 255, 255, .8); margin: 0; }
.contact-strip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.contact-strip-list a, .contact-strip-static { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .6em; }
.contact-strip-list a:hover { color: #ffb3b3; }
@media (max-width: 900px) { .contact-strip { grid-template-columns: 1fr; } }

/* Sections and cards */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-mist { background: var(--mist); }
.section-title { text-align: center; margin-bottom: 2rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem; position: relative; }
.card h3 { margin: .25rem 0 .25rem; }
.card p { color: var(--ink-3); margin: 0; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--mist); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.card-icon .ico { width: 26px; height: 26px; }
.card-icon-red { background: #fde8e8; color: var(--red); }
.card-link { margin-top: auto; padding-top: .5rem; font-family: var(--font-head); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: .35em; }
.card-clickable { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card-clickable:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.card-clickable .card-link { color: var(--red); }
.ticks { list-style: none; padding: 0; margin: .25rem 0 0; display: grid; gap: .45rem; color: var(--ink-3); }
.ticks li { padding-left: 1.6em; position: relative; }
.ticks li::before { content: ""; position: absolute; left: .15em; top: .5em; width: .55em; height: .3em; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

.compliance { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.compliance-text h2 { margin-top: .75rem; }
.compliance-text p { color: var(--ink-3); margin: 0; }
.compliance-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.compliance-links a { display: block; padding: .7rem 1rem; border-radius: 8px; background: var(--mist); color: var(--navy); text-decoration: none; font-family: var(--font-head); font-weight: 500; }
.compliance-links a:hover { background: var(--mist-2); color: var(--red); }
@media (max-width: 800px) { .compliance { grid-template-columns: 1fr; padding: 1.5rem; } }

/* Inner pages */
.page-head { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-head .wrap { border-left: 5px solid var(--red); }
.page-head h1 { margin-bottom: 0; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--red); margin-bottom: .5rem; font-weight: 500; }
.page-lead { margin: .75rem 0 0; color: var(--ink-3); max-width: 60ch; }
.page-body { padding-block: clamp(2rem, 5vw, 3.5rem); }
.notice { background: #fff7e6; border: 1px solid #f3d9a4; color: #6b4b00; padding: .75rem 1rem; border-radius: 8px; max-width: 78ch; }

/* Prose = the WordPress content, restyled */
.prose { max-width: 78ch; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.75em; }
.prose h2:first-child, .prose h3:first-child, .prose p:first-child { margin-top: 0; }
.prose h4 { font-size: 1.05rem; color: var(--ink-2); }
.prose p.medium-paragraph { font-size: 1.15em; color: var(--navy); }
.prose img { border-radius: 8px; margin: 1rem 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose a[href$=".pdf"], .prose a[href$=".docx"] { font-weight: 500; }
.prose a[href$=".pdf"]::after, .prose a[href$=".docx"]::after { content: "PDF"; font-family: var(--font-head); font-size: .65em; font-weight: 700; letter-spacing: .05em; vertical-align: .25em; margin-left: .4em; padding: .1em .4em; border-radius: 4px; background: #fde8e8; color: var(--red-deep); }
.prose a[href$=".docx"]::after { content: "DOCX"; }
.prose .has-text-align-center { text-align: center; }
.prose .has-text-align-right { text-align: right; }
.prose .gdc_row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.prose .gdc_inner { background: var(--mist); border-radius: 10px; padding: 1rem 1.2rem; height: 100%; }
.prose .gdc_inner h3, .prose .gdc_inner h4 { margin-top: 0; font-size: 1.05rem; }
.prose .card-deck { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.prose .card { padding: 1.2rem; }
.prose .card .card-title { margin: 0 0 .5rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95em; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5em .7em; text-align: left; }
.prose blockquote { border-left: 4px solid var(--red); margin: 1.5rem 0; padding: .25rem 1rem; color: var(--ink-3); }

/* Document lists */
.docs { max-width: 78ch; margin-top: 2rem; }
.docs h2 { margin-top: 2rem; }
.docs-group-title { margin-top: 1.5rem; font-size: 1.05rem; color: var(--ink-2); }
.docs-year { border: 1px solid var(--line); border-radius: 10px; margin-bottom: .75rem; background: var(--paper); box-shadow: var(--shadow); }
.docs-year summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem; cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--navy); list-style: none; }
.docs-year summary::-webkit-details-marker { display: none; }
.docs-year summary::before { content: ""; width: .5em; height: .5em; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); transition: transform .15s; margin-right: .25rem; }
.docs-year[open] summary::before { transform: rotate(45deg); }
.docs-year-label { flex: 1; }
.docs-year-count { font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--ink-3); }
.doc-list { list-style: none; margin: 0; padding: 0 .5rem .5rem; }
.docs-year .doc-list { border-top: 1px solid var(--line); padding-top: .5rem; }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .7rem .7rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); }
.doc:hover { background: var(--mist); color: var(--red-deep); }
.doc-ico { width: 22px; height: 22px; color: var(--red); }
.doc-title { line-height: 1.35; }
.doc-meta { font-family: var(--font-head); font-size: .75rem; font-weight: 500; letter-spacing: .04em; color: var(--ink-3); white-space: nowrap; }
.contract-docs .doc-list { padding: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; max-width: 920px; }
.contact-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.3rem 1.3rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); text-decoration: none; color: var(--ink-2); }
a.contact-card:hover { border-color: var(--red); color: var(--ink-2); }
.contact-card .ico { width: 26px; height: 26px; color: var(--red); margin-bottom: .4rem; }
.contact-label { font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.contact-value { font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; color: var(--navy); }
.contact-hint { font-size: .9rem; color: var(--ink-3); }
.contact-card-wide { grid-column: 1 / -1; }
.contact-note { margin-top: 1.5rem; color: var(--ink-3); max-width: 70ch; }
@media (min-width: 720px) { .contact-card-wide { grid-column: span 2; } }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .85); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-block: 3rem 2rem; }
.footer-col h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .75rem; }
.footer-col h2 + ul + h2 { margin-top: 1.5rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-col a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { font-size: .92rem; margin-bottom: .6rem; }
.footer-brand img { margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem; }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-legal a { color: rgba(255, 255, 255, .85); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.notfound p { max-width: 60ch; }

@media print {
  .topbar, .site-nav, .nav-button, .site-footer, .hero-actions { display: none !important; }
  .site-header { position: static; border: 0; }
  .docs-year { break-inside: avoid; }
  .docs-year:not([open]) > *:not(summary) { display: block; }
  a { color: inherit; }
}
