/* Sin Power Solutions — design tokens */
:root {
  --lime: #7ab82e;
  --lime-dark: #5f9420;
  --lime-soft: #e8f4d4;
  --navy: #1d3557;
  --navy-deep: #12253d;
  --sky: #4eb9e5;
  --sky-soft: #d6eef8;
  --teal: #007da5;
  --ink: #1a2332;
  --muted: #5a6a7a;
  --line: rgba(29, 53, 87, 0.12);
  --surface: #f5f8fb;
  --surface-2: #eef4f8;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(29, 53, 87, 0.1);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --nav-h: 72px;
  --z-nav: 40;
  --z-overlay: 50;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 100% -10%, var(--sky-soft) 0%, transparent 45%),
    radial-gradient(90% 60% at -10% 20%, var(--lime-soft) 0%, transparent 40%),
    var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 5.5rem;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ——— Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  padding: 14px 0 0;
}

.nav-island {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  padding: 0.55rem 0.7rem 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 36px rgba(29, 53, 87, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.nav-logo strong {
  color: var(--lime);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.35s var(--ease), background 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy);
  background: var(--surface-2);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem 0.65rem 1.15rem;
  background: var(--lime);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.nav-cta:hover {
  background: var(--lime-dark);
}

.nav-cta:active {
  transform: scale(0.98);
}

.nav-cta .ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease);
}

.nav-cta:hover .ico {
  transform: translate(2px, -1px) scale(1.05);
}

.nav-cta--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(29, 53, 87, 0.18);
  padding: 0.6rem 1.1rem;
}

.nav-cta--ghost:hover {
  background: var(--surface-2);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--lime);
  color: #fff;
}

.btn-primary:hover {
  background: var(--lime-dark);
}

.btn-primary .ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  background: var(--white);
  border-color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-deep);
}

/* ——— Typography ——— */
.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin: 0;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime-dark);
  margin-bottom: 0.85rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100dvh - 100px);
  display: grid;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy .h1 {
  margin-bottom: 1rem;
}

.hero-copy .h1 .accent {
  color: var(--lime);
}

.hero-copy .lead {
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  min-height: clamp(320px, 48vw, 520px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--sky-soft), var(--lime-soft) 70%);
  box-shadow: var(--shadow);
}

.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: clamp(320px, 48vw, 520px);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s var(--ease), transform 6s var(--ease);
  z-index: 0;
}

.hero-slideshow img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slideshow img:not([src]) {
  visibility: hidden;
}

.hero-slideshow__dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(18, 37, 61, 0.35);
  backdrop-filter: blur(8px);
}

.hero-slideshow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s, transform 0.3s;
}

.hero-slideshow__dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 50%, rgba(29, 53, 87, 0.35));
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: clamp(320px, 48vw, 520px);
}

/* Market / prosumer grid */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.market-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.market-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.market-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.market-card--accent {
  background: linear-gradient(145deg, var(--lime-soft), #fff);
  border-color: rgba(122, 184, 46, 0.28);
}

/* ——— Sections ——— */
.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head .lead {
  margin-top: 0.85rem;
}

.section-alt {
  background: var(--white);
}

.section-navy {
  background:
    radial-gradient(80% 60% at 10% 0%, rgba(78, 185, 229, 0.18), transparent 50%),
    radial-gradient(70% 50% at 90% 100%, rgba(122, 184, 46, 0.15), transparent 45%),
    var(--navy-deep);
  color: #e8eef5;
}

.section-navy .h2,
.section-navy .h3 {
  color: #fff;
}

.section-navy .lead,
.section-navy p {
  color: rgba(232, 238, 245, 0.78);
}

/* ——— Benefit strip ——— */
.benefit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefit {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.benefit-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.benefit p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— Services preview ——— */
.svc-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.svc-tile {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease);
}

.svc-tile:hover {
  transform: translateY(-3px);
}

.svc-tile--feature {
  grid-row: span 2;
  min-height: 420px;
  background:
    linear-gradient(180deg, transparent 30%, rgba(18, 37, 61, 0.85)),
    url("../assets/images/proiect-01.webp") center/cover;
  color: #fff;
  border: none;
}

.svc-tile--feature .h3,
.svc-tile--mint .h3 {
  color: inherit;
}

.svc-tile--feature p {
  color: rgba(255, 255, 255, 0.82);
}

.svc-tile--mint {
  background: linear-gradient(145deg, var(--lime-soft), #fff);
}

.svc-tile--sky {
  background: linear-gradient(145deg, var(--sky-soft), #fff);
}

.svc-tile p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— Portfolio ——— */
.folio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}

.folio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
}

.folio-item:nth-child(1) { grid-column: span 7; aspect-ratio: 16 / 10; }
.folio-item:nth-child(2) { grid-column: span 5; aspect-ratio: 16 / 10; }
.folio-item:nth-child(3) { grid-column: span 4; }
.folio-item:nth-child(4) { grid-column: span 4; }
.folio-item:nth-child(5) { grid-column: span 4; }
.folio-item:nth-child(6) { grid-column: span 5; }
.folio-item:nth-child(7) { grid-column: span 7; }
.folio-item:nth-child(n+8) { grid-column: span 4; }

.folio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.folio-item:hover img {
  transform: scale(1.04);
}

.folio-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(18, 37, 61, 0.75));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.folio-item:hover .folio-cap {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Process steps ——— */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: 0.5rem;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--lime);
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.process-step p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— CTA band ——— */
.cta-band {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(122, 184, 46, 0.18), transparent 50%),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-band .h2 {
  margin-bottom: 0.6rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Mid-page CTA strip */
.cta-mid {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(115deg, rgba(122, 184, 46, 0.14), transparent 55%),
    var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(29, 53, 87, 0.06);
}

.cta-mid .h3 {
  margin: 0 0 0.35rem;
}

.cta-mid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-mid .cta-actions {
  justify-content: flex-start;
}

/* Floating contact bar */
.float-cta {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-end;
  animation: floatIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .float-cta { animation: none; }
}

.float-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 14px 36px rgba(29, 53, 87, 0.22);
  transition: filter 0.3s var(--ease);
  will-change: transform;
}

.float-cta__btn:hover {
  filter: brightness(1.05);
}

.float-cta__btn--wa {
  background: var(--lime);
  color: #fff;
}

.float-cta__btn--call {
  background: var(--navy);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .float-cta {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    flex-direction: row;
    align-items: stretch;
  }

  .float-cta__btn {
    flex: 1;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.75rem 0.6rem;
  }

  .float-cta__btn--call .js-phone-display {
    font-size: 0.78rem;
  }

  .cta-mid {
    grid-template-columns: 1fr;
  }
}

/* ——— Forms ——— */
.form-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.form-card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(122, 184, 46, 0.2);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8a9aab;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  padding: 1rem;
  border-radius: 12px;
  background: var(--lime-soft);
  color: var(--lime-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.form-success.is-visible {
  display: block;
}

/* ——— Page hero compact ——— */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

.page-hero .h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  max-width: 16ch;
}

.page-hero .lead {
  margin-top: 1rem;
}

/* ——— About ——— */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  padding: 1.1rem;
  border-top: 2px solid var(--lime);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ——— Service detail list ——— */
.svc-list {
  display: grid;
  gap: 1.25rem;
}

.svc-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.svc-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.svc-row img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.svc-row p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— Footer ——— */
.site-footer {
  padding: 3.5rem 0 2rem;
  background: var(--navy-deep);
  color: rgba(232, 238, 245, 0.75);
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
}

.footer-brand p {
  max-width: 28ch;
  font-size: 0.95rem;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.footer-col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: rgba(232, 238, 245, 0.7);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

/* ——— Message slider ——— */
.msg-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.msg-slider__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(122, 184, 46, 0.1), transparent 45%),
    var(--white);
  border: 1px solid var(--line);
  min-height: 220px;
}

.msg-slider__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.msg-slide {
  flex: 0 0 100%;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  opacity: 0.35;
  transform: scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.msg-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.msg-slide__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.75rem;
}

.msg-slide .h3 {
  margin: 0 0 0.65rem;
}

.msg-slide p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 42rem;
}

.msg-slider__btn,
.work-slider__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.msg-slider__btn:hover,
.work-slider__btn:hover {
  background: var(--lime-soft);
  border-color: rgba(122, 184, 46, 0.45);
  transform: scale(1.05);
}

.msg-slider__dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.msg-slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(29, 53, 87, 0.2);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.msg-slider__dot.is-active {
  background: var(--lime);
  transform: scale(1.2);
}

/* ——— Work / portfolio slider (3-up) ——— */
.work-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
  touch-action: pan-y;
}

.work-slider__viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.work-slider__track {
  display: flex;
  gap: 0.85rem;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.work-slide {
  flex: 0 0 calc((100% - 1.7rem) / 3);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.work-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-slide:hover img {
  transform: scale(1.04);
}

@media (max-width: 700px) {
  .section {
    padding: 2rem 0;
  }

  .section:has(> .container > .cta-mid:only-child),
  .section:has(> .container > .cta-mid:first-child:last-child) {
    padding: 1rem 0;
  }

  .page-hero {
    padding: 1.5rem 0 1.25rem;
  }

  .msg-slider {
    margin-top: 1rem;
  }

  .msg-slider__viewport {
    min-height: 0;
  }

  .msg-slide {
    padding: 1.25rem 1.15rem;
  }

  .msg-slider,
  .work-slider {
    grid-template-columns: 1fr;
  }

  .msg-slider__btn,
  .work-slider__btn {
    display: none;
  }

  .msg-slider__viewport,
  .work-slider__viewport {
    touch-action: pan-y pinch-zoom;
  }

  .msg-slider__track,
  .work-slider__track {
    touch-action: pan-x;
    cursor: grab;
  }

  .msg-slider__dots {
    order: 2;
    margin-top: 0.65rem;
  }

  .work-slider {
    margin-top: 1rem;
  }

  .work-slide {
    flex: 0 0 100%;
  }

  .cta-mid {
    margin-top: 1.25rem;
    padding: 1.15rem 1.2rem;
  }

  .section-head {
    margin-bottom: 0.35rem;
  }

  .svc-grid,
  .benefit-row,
  .market-grid,
  .process {
    gap: 0.85rem;
  }

  .stat-row {
    margin-top: 1.25rem;
    gap: 0.65rem;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .work-slide {
    flex: 0 0 calc((100% - 0.85rem) / 2);
  }
}

@media (max-width: 600px) {
  /* kept for other mobile rules elsewhere */
}

.section,
.house3d,
.page-hero {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.hero {
  content-visibility: visible;
}

[data-hero] {
  opacity: 0;
  transform: translateY(18px);
}

[data-hero].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.folio-item img {
  will-change: transform;
  transform-origin: center center;
}

.reveal-img {
  overflow: hidden;
  border-radius: var(--radius);
}

.reveal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* SEO FAQ */
.seo-block {
  max-width: 780px;
}

.seo-block .lead {
  margin-bottom: 1.5rem;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.seo-keywords {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.seo-keywords strong {
  color: var(--navy);
}

/* ——— Mobile menu ——— */
.nav-drawer {
  display: none;
}

@media (min-width: 701px) and (max-width: 960px) {
  .market-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .nav-links,
  .nav-island > .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: rgba(18, 37, 61, 0.55);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }

  .nav-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-drawer-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--radius-lg);
    transform: translateY(-12px);
    transition: transform 0.4s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .nav-drawer.is-open .nav-drawer-panel {
    transform: none;
  }

  .nav-drawer a {
    padding: 0.9rem 1rem;
    font-weight: 600;
    color: var(--navy);
    border-radius: 12px;
  }

  .nav-drawer a:hover {
    background: var(--surface-2);
  }

  .nav-drawer .nav-cta {
    margin-top: 0.5rem;
    justify-content: center;
  }

  .hero-grid,
  .about-split,
  .form-shell,
  .cta-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .benefit-row,
  .process,
  .market-grid {
    grid-template-columns: 1fr;
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }

  .svc-tile--feature {
    grid-row: auto;
    min-height: 280px;
  }

  .folio-item,
  .folio-item:nth-child(n) {
    grid-column: span 12;
    aspect-ratio: 4 / 3;
  }

  .svc-row {
    grid-template-columns: 80px 1fr;
  }

  .svc-row .btn {
    grid-column: 1 / -1;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .nav-logo span {
    display: none;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 1.5rem, 1180px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }
}

/* ——— Proiecte realizate ——— */
.breadcrumbs {
  margin-bottom: 1rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  opacity: 0.5;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--lime);
}

.page-hero--compact {
  padding-bottom: 2rem;
}

.pr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pr-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.pr-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pr-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}

.pr-card__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.pr-card__slide:not([src]) {
  visibility: hidden;
}

.pr-card__slide.is-active {
  opacity: 1;
}

.pr-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.pr-card__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pr-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.pr-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.pr-card__meta {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.pr-card__link {
  margin-top: auto;
  padding-top: 0.65rem;
  font-weight: 600;
  color: var(--lime-dark);
  font-size: 0.92rem;
}

.repower-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  padding: 2rem 2.25rem;
  background: linear-gradient(135deg, var(--navy) 0%, #243f5e 100%);
  color: #fff;
  border-radius: var(--radius-lg);
}

.repower-callout .eyebrow {
  color: var(--lime);
}

.repower-callout .h2,
.repower-callout .lead {
  color: #fff;
}

.repower-callout p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.repower-callout__icon {
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.9;
}

.repower-note {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--lime-soft);
  border-radius: var(--radius);
  border-left: 4px solid var(--lime);
}

.repower-note p {
  margin: 0;
  font-size: 0.95rem;
}

.repower-note a {
  color: var(--navy);
  font-weight: 600;
}

.pr-gallery-meta {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.pr-viewer {
  display: grid;
  gap: 1rem;
}

.pr-viewer__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
}

.pr-viewer__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.pr-viewer__btn img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  background: #0f1a28;
}

.pr-viewer__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pr-thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 66px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-2);
  transition: border-color 0.2s ease;
}

.pr-thumb.active,
.pr-thumb:hover {
  border-color: var(--lime);
}

.pr-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pr-back {
  margin-top: 2rem;
}

.pr-back a {
  font-weight: 600;
  color: var(--navy);
}

.pr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 16, 28, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pr-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.pr-lightbox__img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
}

.pr-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.pr-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
}

.pr-lightbox__prev { left: 1rem; }
.pr-lightbox__next { right: 1rem; }

@media (max-width: 960px) {
  .pr-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .repower-callout {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .pr-grid {
    grid-template-columns: 1fr;
  }

  .pr-thumb {
    width: 72px;
    height: 54px;
  }
}

/* ——— Produse (servicii) ——— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.product-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.15rem;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  align-items: start;
}

.product-card__img {
  border-radius: var(--radius);
  overflow: hidden;
  background: #f4f7fa;
  aspect-ratio: 1;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
}

.product-card__tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-card__body .h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.product-card__body p {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.product-card__body p strong {
  color: var(--ink);
}

.product-note {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-note a {
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 110px 1fr;
  }
}

@media (max-width: 520px) {
  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card__img {
    max-width: 180px;
  }
}
