:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #14213d;
  --muted: #53657d;
  --line: #d9e2ef;
  --primary: #c4423a;
  --primary-dark: #9c2f28;
  --accent: #19a974;
  --soft: #fbeae8;
  --shadow: 0 14px 40px rgba(20, 33, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
video {
  height: auto;
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.narrow {
  width: min(820px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--text);
  line-height: 1.1;
}

.brand-logo {
  display: block;
  height: 48px;
  width: auto;
}

.site-footer .brand-logo {
  height: 40px;
  margin-bottom: 10px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav a,
.main-nav summary {
  color: var(--text);
  cursor: pointer;
}

.main-nav details {
  position: relative;
}

.main-nav summary {
  list-style: none;
}

.main-nav summary::-webkit-details-marker {
  display: none;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
}

.nav-cta,
.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button.light {
  background: #fff;
  color: var(--primary-dark);
}

.button.full {
  width: 100%;
}

.hero {
  padding: 84px 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(196, 66, 58, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff, #edf4ff);
}

.hero-compact {
  padding: 56px 0;
}

.hero-grid,
.content-grid,
.form-grid,
.cta-inner,
.footer-grid {
  display: grid;
  gap: 32px;
}

.hero-grid,
.content-grid,
.form-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1.02;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.12;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.18rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.section {
  padding: 72px 0;
  background: var(--surface);
}

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

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.one {
  grid-template-columns: 1fr;
}

.card,
.side-cta,
.form-card,
.video-placeholder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.06);
}

.card {
  padding: 24px;
}

.card p,
.prose p,
.side-cta p,
.video-placeholder p,
.site-footer p {
  color: var(--muted);
}

.quote blockquote {
  margin: 0 0 16px;
  color: var(--text);
}

.quote figcaption {
  color: var(--text);
  font-weight: 750;
}

.quote span {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.media-panel {
  min-height: 320px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #dceaff);
  box-shadow: var(--shadow);
}

.mock-window {
  display: grid;
  align-content: end;
  min-height: 284px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(196, 66, 58, 0.12) 32%, transparent 32%),
    repeating-linear-gradient(0deg, #fff, #fff 23px, #edf2f7 24px);
}

.mock-window span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.mock-window strong {
  display: block;
  margin-top: 110px;
  font-size: 1.3rem;
}

.side-cta {
  padding: 26px;
}

.contact-direct {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.contact-direct h3 {
  margin-bottom: 2px;
}

.contact-direct > a:not(.button) {
  color: var(--text);
  font-weight: 750;
}

.button.whatsapp {
  background: #25d366;
  color: #083d1f;
  border-color: #25d366;
}

.button.whatsapp:hover {
  background: #1fb958;
  color: #062f18;
  text-decoration: none;
}

.steps {
  padding-left: 20px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  display: grid;
  align-content: center;
  padding: 28px;
  background:
    linear-gradient(rgba(20, 33, 61, 0.04), rgba(20, 33, 61, 0.04)),
    var(--surface);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 750;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-list a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}
/* =========================================================
   Breadcrumb
   ========================================================= */

.breadcrumbs {
  position: relative;
  z-index: 5;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 58px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "";
  width: 7px;
  height: 7px;
  margin: 0 14px;
  border-top: 1.5px solid #93a2b7;
  border-right: 1.5px solid #93a2b7;
  transform: rotate(45deg);
}

.breadcrumb-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.breadcrumb-home-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 750;
}

@media (max-width: 560px) {
  .breadcrumb-list {
    min-height: 50px;
    font-size: 0.86rem;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    margin: 0 10px;
  }
}

.cta-band {
  padding: 60px 0;
  background: var(--primary-dark);
  color: #fff;
}

.cta-band .eyebrow,
.cta-band p {
  color: #dceaff;
}

.cta-inner {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.form-card {
  display: grid;
  gap: 8px;
  padding: 26px;
}

.form-card label {
  font-weight: 750;
}

.form-card input,
.form-card textarea {
  width: 100%;
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
}

.form-card textarea {
  resize: vertical;
}

.form-card span,
.validation {
  color: #b42318;
  font-size: 0.92rem;
}

.success {
  padding: 12px 14px;
  border-radius: 8px;
  background: #e9f8f0;
  color: #106b48;
  font-weight: 700;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: #0f1b2d;
  color: #fff;
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
}

.site-footer nav {
  display: grid;
  gap: 8px;
}

.site-footer a,
.site-footer p {
  color: #d8e2f1;
}

@media (max-width: 900px) {
  .nav-shell {
    flex-direction: row;
    align-items: center;
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-open .main-nav {
    display: flex;
  }

  .main-nav > a,
  .dropdown-toggle,
  .nav-cta {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .actions {
    flex-direction: column;
  }

  .nav-menu {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }

  .hero-grid,
  .content-grid,
  .form-grid,
  .cta-inner,
  .footer-grid,
  .cards.three,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0;
  }

  .section {
    padding: 52px 0;
  }
}

/* --- Homepage: hero cu fotografie de fundal, fara efecte tehnice --- */
.hero-photo {
  position: relative;
  padding: 120px 0;
  color: #fff;
  background: #14213d url("/img/hero-bg.jpg") center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 16, 30, 0.88) 0%, rgba(10, 16, 30, 0.62) 55%, rgba(10, 16, 30, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow.light {
  color: #ffb3ab;
}

.lead.light {
  color: #e7ecf7;
}

.hero-sub {
  margin-top: 18px;
  color: #cddcff;
  font-weight: 700;
}

.hero-photo h1 {
  color: #fff;
}

.section-head.center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.commpack-label {
  margin: 0 0 18px;
  text-align: center;
  font-weight: 800;
}

.module-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-card {
  text-align: center;
}

/* Thumb redus la aproximativ un sfert fata de varianta initiala (imaginile sursa sunt pixelate la dimensiuni mari) */
.module-thumb {
  overflow: hidden;
  width: 88px;
  height: 66px;
  margin: 0 auto 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.module-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commpack-feature .feature-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding-left: 20px;
  color: var(--text);
}

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

/* --- Efecte vizuale: aparitie la scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0ms;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Hero: fade-in la incarcarea paginii --- */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: heroFadeIn 0.7s ease both;
}

.hero-content .eyebrow.light {
  animation-delay: 0ms;
}

.hero-content h1 {
  animation-delay: 90ms;
}

.hero-content .lead.light {
  animation-delay: 180ms;
}

.hero-content .hero-sub {
  animation-delay: 260ms;
}

.hero-content .actions {
  animation-delay: 340ms;
}

/* --- Hover: carduri (ridicare + umbra mai puternica) --- */
.card,
.module-card,
.faq-list details,
.link-list a {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.module-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(20, 33, 61, 0.14);
}

.module-thumb img {
  transition: transform 0.5s ease;
}

.module-card:hover .module-thumb img {
  transform: scale(1.06);
}

.link-list a:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(20, 33, 61, 0.1);
}

.faq-list details:hover {
  border-color: var(--primary);
}

/* --- Hover: butoane --- */
.button,
.nav-cta {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button.primary:hover,
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(196, 66, 58, 0.28);
  background: var(--primary-dark);
  text-decoration: none;
}

.button.secondary:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary-dark);
  text-decoration: none;
}

.button.light:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

/* --- Link-uri din navigare: subliniere animata --- */
.main-nav > a {
  position: relative;
}

.main-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.main-nav > a:hover::after {
  width: 100%;
}

.main-nav > a:hover {
  text-decoration: none;
}

/* --- Video embed responsive (YouTube) --- */
.video-embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Panou video (elimina padding-ul specific mock-window) --- */
.video-panel {
  padding: 0;
  overflow: hidden;
  background: #000;
}

/* =========================================================
   Efecte vizuale "tehnice" (grid animat + angrenaje) - aceleasi
   ca pe pagina in-lucru.html, aplicate pe zonele intunecate ale
   site-ului: hero-ul homepage-ului si banda CTA de pe orice pagina.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&display=swap');

h1, h2, h3,
.eyebrow,
.button,
.nav-cta,
.brand small,
.commpack-label {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* --- grid tehnic animat, reutilizabil pe fundaluri inchise --- */
.tech-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 0.9), transparent 85%);
  mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 0.9), transparent 85%);
  animation: gridDrift 26s linear infinite;
  pointer-events: none;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 112px, 56px 112px; }
}

/* --- angrenaj rotativ decorativ (SVG inline in background) --- */
.tech-gear {
  position: absolute;
  z-index: 0;
  width: 420px;
  height: 420px;
  opacity: 0.12;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' d='M50 6l4.8 9.6 10.6-2.4 2.4 10.6 9.6 4.8-4.8 9.6 4.8 9.6-9.6 4.8-2.4 10.6-10.6-2.4L50 74l-4.8-9.6-10.6 2.4-2.4-10.6-9.6-4.8 4.8-9.6-4.8-9.6 9.6-4.8 2.4-10.6 10.6 2.4L50 6z'/%3E%3Ccircle cx='50' cy='40' r='15' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
  animation: gearSpin 60s linear infinite;
}

.tech-gear.gear-sm {
  width: 220px;
  height: 220px;
  opacity: 0.1;
  animation-duration: 42s;
  animation-direction: reverse;
}

@keyframes gearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .tech-grid, .tech-gear { animation: none; }
}

/* --- banda CTA (prezenta pe toate paginile) --- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta-band .tech-gear {
  top: 50%;
  right: -60px;
  width: 300px;
  height: 300px;
  transform: translateY(-50%);
}

.cta-inner {
  position: relative;
  z-index: 1;
}

/* --- glow discret pe butonul principal, ca semnatura de brand --- */
.button.primary {
  position: relative;
  box-shadow: 0 0 0 rgba(196, 66, 58, 0);
}

.button.primary:hover {
  box-shadow: 0 0 0 4px rgba(196, 66, 58, 0.16), 0 10px 22px rgba(196, 66, 58, 0.28);
}

/* --- insigna tip "status pill" pentru eyebrow (accent tehnic) --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pillPulse 1.8s ease-in-out infinite;
}

@keyframes pillPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.72); }
}

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

@media (max-width: 900px) {
  .tech-gear { display: none; }
}

/* --- Carusel automat pentru servicii (5 casute, 3 vizibile, bucla continua) --- */
.carousel-viewport {
  overflow: hidden;
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: carouselScroll 28s linear infinite;
}

.carousel-viewport:hover .carousel-track {
  animation-play-state: paused;
}

.carousel-card {
  flex: 0 0 calc((min(1120px, calc(100vw - 32px)) - 36px) / 3);
}

@keyframes carouselScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .carousel-card {
    flex-basis: calc(100vw - 64px);
  }
}

/* --- Bara utilitara cu retele sociale (deasupra navigatiei principale) --- */
.header-utility {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.utility-inner {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 7px 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--muted);
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.social-link svg {
  width: 15px;
  height: 15px;
}

.social-link:hover {
  color: var(--primary);
  background: var(--soft);
  transform: translateY(-1px);
  text-decoration: none;
}

/* --- Meniul "Servicii": deschidere pe hover, fara <details> --- */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.has-dropdown .nav-menu {
  position: absolute;
  right: 0;
  top: 32px;
  display: grid;
  gap: 4px;
  min-width: 260px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

.has-dropdown:hover .nav-menu,
.has-dropdown:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* punte pentru a nu pierde hover-ul intre link si meniu */
.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.nav-menu a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--text);
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}

.nav-menu a:hover {
  background: var(--soft);
  color: var(--primary-dark);
  padding-left: 16px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .utility-inner {
    justify-content: center;
  }

  .has-dropdown {
    width: 100%;
  }

  .has-dropdown .nav-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    margin-top: 8px;
    box-shadow: none;
  }

  .has-dropdown::after {
    display: none;
  }
}

/* --- Carduri de functionalitati cu iconita accent (evidentiere) --- */
.feature-card {
  position: relative;
  padding-top: 30px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--primary);
}

.feature-icon svg {
  width: 17px;
  height: 17px;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: #fff;
}
/* =========================================================
   Homepage Hero - stil imagine service auto + laptop
   ========================================================= */

.hero-photo {
  position: relative;
  isolation: isolate;
  min-height: clamp(620px, 78vh, 860px);
  padding: clamp(92px, 11vw, 150px) 0 clamp(72px, 9vw, 120px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 11, 22, 0.94) 0%, rgba(8, 15, 29, 0.84) 34%, rgba(8, 15, 29, 0.42) 62%, rgba(8, 15, 29, 0.16) 100%),
    url("/img/hero-bg.jpg") center center / cover no-repeat;
  overflow: hidden;
}

/* overlay suplimentar pentru lizibilitate + efect premium */
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 22% 50%, rgba(0, 102, 204, 0.22), transparent 34%),
    radial-gradient(circle at 82% 64%, rgba(0, 0, 0, 0.42), transparent 36%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

/* vignette discretă jos, ca textul să stea pe fundal întunecat */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(3, 8, 18, 0.74));
  pointer-events: none;
}

/* păstrăm div-ul existent, dar îl facem parte din stratificare */
.hero-photo .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: transparent;
}

.hero-photo .hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-left: 0;
}

/* badge-ul de sus */
.hero-photo .eyebrow.light {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(91, 111, 126, 0.72);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-photo .eyebrow.light::before {
  width: 7px;
  height: 7px;
  background: #2da8ff;
  box-shadow: 0 0 0 6px rgba(45, 168, 255, 0.18);
}

/* titlu mare, alb, puternic */
.hero-photo h1 {
  max-width: 700px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.45rem, 5.2vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.42);
}

/* descriere */
.hero-photo .lead.light {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.02rem, 1.35vw, 1.24rem);
  line-height: 1.72;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.hero-photo .lead.light strong {
  color: #fff;
  font-weight: 850;
}

/* rând beneficii cu iconițe */
.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 750;
}

.hero-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  white-space: nowrap;
}

.hero-benefits span + span {
  position: relative;
}

.hero-benefits span + span::before {
  content: "";
  width: 1px;
  height: 24px;
  margin-right: 4px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-benefits svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  fill: none;
  stroke: #2da8ff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 5px 12px rgba(45, 168, 255, 0.24));
}

/* butoane */
.hero-photo .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

.hero-photo .button {
  min-height: 58px;
  padding: 15px 30px;
  border-radius: 7px;
  font-size: 0.96rem;
  font-weight: 850;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.hero-photo .button.primary {
  border-color: rgba(45, 168, 255, 0.38);
  background: linear-gradient(180deg, #0878d8, #005eb2);
  color: #fff;
}

.hero-photo .button.primary:hover {
  background: linear-gradient(180deg, #0a86ee, #0066bf);
  box-shadow: 0 0 0 4px rgba(45, 168, 255, 0.16), 0 20px 42px rgba(0, 92, 184, 0.36);
}

.hero-photo .button.light {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(9, 15, 28, 0.22);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-photo .button.light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* pe desktop împingem conținutul mai spre stânga, ca în mockup */
@media (min-width: 1100px) {
  .hero-photo .container {
    width: min(1280px, calc(100% - 72px));
  }

  .hero-photo .hero-content {
    padding-left: 8px;
  }
}

/* tabletă */
@media (max-width: 900px) {
  .hero-photo {
    min-height: auto;
    padding: 86px 0 72px;
    background:
      linear-gradient(90deg, rgba(5, 11, 22, 0.95), rgba(5, 11, 22, 0.78)),
      url("/img/hero-bg.jpg") center center / cover no-repeat;
  }

  .hero-photo .hero-content {
    max-width: 100%;
  }

  .hero-photo h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 9vw, 3.4rem);
  }

  .hero-photo .lead.light {
    max-width: 100%;
  }

  .hero-photo .button {
    width: 100%;
  }
}

/* mobil mic */
@media (max-width: 560px) {
  .hero-photo {
    padding: 72px 0 58px;
  }

  .hero-photo .eyebrow.light {
    padding: 9px 12px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }

  .hero-benefits {
    display: grid;
    gap: 12px;
  }

  .hero-benefits span {
    white-space: normal;
  }

  .hero-benefits span + span::before {
    display: none;
  }

  .hero-photo .actions {
    margin-top: 30px;
  }
}
/* =========================================================
   Ajustări hero: conținut mai la dreapta + culori brand existente
   ========================================================= */

/* Mută tot blocul de text mai la dreapta */
.hero-photo .hero-content {
  margin-left: clamp(32px, 7vw, 120px);
}

/* Pe ecrane foarte mari îl ducem puțin mai mult spre centru */
@media (min-width: 1400px) {
  .hero-photo .hero-content {
    margin-left: clamp(80px, 9vw, 170px);
  }
}

/* Pe tabletă/mobil revenim la aliniere normală */
@media (max-width: 900px) {
  .hero-photo .hero-content {
    margin-left: 0;
  }
}

/* Badge sus - culoare neutră + accent pe roșul brandului */
.hero-photo .eyebrow.light {
  background: rgba(60, 68, 76, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hero-photo .eyebrow.light::before {
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(196, 66, 58, 0.22);
}

/* Iconițele folosesc culoarea principală din site */
.hero-benefits svg {
  stroke: var(--primary);
  filter: drop-shadow(0 5px 12px rgba(196, 66, 58, 0.26));
}

/* Buton principal în culoarea ta */
.hero-photo .button.primary {
  border-color: rgba(196, 66, 58, 0.55);
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.hero-photo .button.primary:hover {
  background: linear-gradient(180deg, #d94b42, var(--primary-dark));
  box-shadow:
    0 0 0 4px rgba(196, 66, 58, 0.18),
    0 20px 42px rgba(156, 47, 40, 0.34);
}

/* Buton secundar transparent, dar tot cu accent brand */
.hero-photo .button.light {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(20, 33, 61, 0.22);
  color: #fff;
}

.hero-photo .button.light:hover {
  border-color: var(--primary);
  background: rgba(196, 66, 58, 0.18);
  color: #fff;
}

/* Textul rămâne aliniat cu iconițele și butoanele */
.hero-photo .actions,
.hero-benefits {
  margin-left: 0;
}

/* =========================================================
   HERO UNIC PENTRU TOATE PAGINILE
   Folosește variabila inline --hero-image din partial-ul hero.php.
   Exemplu:
   style="--hero-image: url('/img/despre_noi.jpg');"
   ========================================================= */

.hero.hero-photo {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 68vh, 760px);
  padding: clamp(84px, 10vw, 130px) 0;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(
      90deg,
      rgba(5, 11, 22, 0.94) 0%,
      rgba(8, 15, 29, 0.84) 34%,
      rgba(8, 15, 29, 0.48) 65%,
      rgba(8, 15, 29, 0.22) 100%
    ),
    var(--hero-image, url("/img/hero-bg.jpg"))
    center center / cover no-repeat;
}

.hero.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 22% 50%,
      rgba(196, 66, 58, 0.18),
      transparent 36%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.04),
      rgba(0, 0, 0, 0.38)
    );
}

.hero.hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(3, 8, 18, 0.72)
  );
}

.hero.hero-photo .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent;
  pointer-events: none;
}

.hero.hero-photo .hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  max-width: 760px;
  margin-left: clamp(32px, 7vw, 120px);
}

.hero.hero-photo h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.45rem, 5.2vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.42);
}

.hero.hero-photo .eyebrow.light {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(60, 68, 76, 0.72);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero.hero-photo .eyebrow.light::before {
  width: 7px;
  height: 7px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(196, 66, 58, 0.22);
}

.hero.hero-photo .lead.light {
  max-width: 700px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.02rem, 1.35vw, 1.24rem);
  line-height: 1.72;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.hero.hero-photo .lead.light strong {
  color: #fff;
  font-weight: 850;
}

.hero.hero-photo .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

.hero.hero-photo .button {
  min-height: 58px;
  padding: 15px 30px;
  border-radius: 7px;
  font-size: 0.96rem;
  font-weight: 850;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.hero.hero-photo .button.primary {
  border-color: rgba(196, 66, 58, 0.55);
  background: linear-gradient(
    180deg,
    var(--primary),
    var(--primary-dark)
  );
  color: #fff;
}

.hero.hero-photo .button.primary:hover {
  background: linear-gradient(
    180deg,
    #d94b42,
    var(--primary-dark)
  );
  box-shadow:
    0 0 0 4px rgba(196, 66, 58, 0.18),
    0 20px 42px rgba(156, 47, 40, 0.34);
  color: #fff;
  text-decoration: none;
}

.hero.hero-photo .button.light {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(20, 33, 61, 0.22);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero.hero-photo .button.light:hover {
  border-color: var(--primary);
  background: rgba(196, 66, 58, 0.18);
  color: #fff;
  text-decoration: none;
}

.about-side-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 24px;
  border-radius: 8px;
}

.about-conclusion {
  margin-top: 32px;
  padding: 20px;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
  text-align: center;
}

@media (min-width: 1400px) {
  .hero.hero-photo .hero-content {
    margin-left: clamp(80px, 9vw, 170px);
  }
}

@media (max-width: 900px) {
  .hero.hero-photo {
    min-height: auto;
    padding: 86px 0 72px;
    background:
      linear-gradient(
        90deg,
        rgba(5, 11, 22, 0.95),
        rgba(5, 11, 22, 0.78)
      ),
      var(--hero-image, url("/img/hero-bg.jpg"))
      center center / cover no-repeat;
  }

  .hero.hero-photo .hero-content {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .hero.hero-photo h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 9vw, 3.4rem);
  }

  .hero.hero-photo .lead.light {
    max-width: 100%;
  }

  .hero.hero-photo .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero.hero-photo {
    padding: 72px 0 58px;
  }

  .hero.hero-photo .eyebrow.light {
    padding: 9px 12px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }

  .hero.hero-photo .actions {
    margin-top: 30px;
  }
}
/* =========================================================
   Showcase aplicație / studiu de caz
   ========================================================= */

.product-showcase {
  background: var(--surface);
}

.product-showcase .section-head p:not(.eyebrow) {
  color: var(--muted);
}

.showcase-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.showcase-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
  padding: 28px;
  background:
    radial-gradient(
      circle at 25% 25%,
      rgba(196, 66, 58, 0.1),
      transparent 38%
    ),
    #eef3f8;
}

.showcase-slide {
  display: none;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(20, 33, 61, 0.18);
  animation: showcaseFade 0.35s ease;
}

.showcase-slide.is-active {
  display: block;
}

.showcase-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
}

.showcase-tabs {
  display: grid;
  gap: 12px;
}

.showcase-tab {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.showcase-tab strong {
  color: var(--text);
  font-size: 1rem;
}

.showcase-tab span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.showcase-tab:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.showcase-tab.is-active {
  border-color: var(--primary);
  background: var(--soft);
  box-shadow: 0 0 0 3px rgba(196, 66, 58, 0.1);
}

.showcase-tab.is-active strong {
  color: var(--primary-dark);
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@keyframes showcaseFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .showcase-media {
    min-height: auto;
    padding: 20px;
  }

  .showcase-slide {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .showcase-info {
    padding: 22px;
  }

  .showcase-actions {
    display: grid;
  }

  .showcase-actions .button {
    width: 100%;
  }
}

/* =========================================================
   Pagina produs Commprew
   ========================================================= */

.commprew-summary {
  position: relative;
  overflow: hidden;
}

.commprew-product-mark {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d74ff, #18a77c);
  box-shadow: 0 14px 30px rgba(20, 95, 215, 0.24);
}

.commprew-summary h2 {
  text-align: center;
}

.commprew-short-list {
  display: grid;
  gap: 9px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.commprew-short-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
  font-weight: 650;
}

.commprew-short-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d74ff, #18a77c);
}

.cards.four,
.commprew-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.commprew-product-section {
  overflow: hidden;
}

.commprew-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 28px;
  align-items: center;
}

.commprew-product-grid.reverse {
  grid-template-columns: minmax(300px, 0.65fr) minmax(0, 1.35fr);
}

.commprew-product-grid.reverse .commprew-product-media {
  order: 2;
}

.commprew-product-grid.reverse .commprew-product-copy {
  order: 1;
}

.commprew-product-media {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(29, 116, 255, 0.09),
      transparent 34%
    ),
    linear-gradient(135deg, #f8fbff, #eef6ff);
  box-shadow: var(--shadow);
}

.commprew-product-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.commprew-product-copy {
  padding: 28px;
}

.commprew-product-copy ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.commprew-product-copy li::marker {
  color: #1473d2;
}

@media (max-width: 1000px) {
  .cards.four,
  .commprew-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commprew-product-grid,
  .commprew-product-grid.reverse {
    grid-template-columns: 1fr;
  }

  .commprew-product-grid.reverse .commprew-product-media,
  .commprew-product-grid.reverse .commprew-product-copy {
    order: initial;
  }
}

@media (max-width: 560px) {
  .cards.four,
  .commprew-feature-grid {
    grid-template-columns: 1fr;
  }

  .commprew-product-media {
    padding: 10px;
  }

  .commprew-product-copy {
    padding: 22px;
  }
}

/* =========================================================
   Portofoliu website-uri
   ========================================================= */

.portfolio-section {
  overflow: hidden;
}

.portfolio-section .section-head p:not(.eyebrow) {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.portfolio-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(20, 33, 61, 0.15);
}

.portfolio-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef2f6;
}

.portfolio-card-media::after {
  content: "Vezi proiectul";
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.portfolio-card-media:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.portfolio-card-media:hover img {
  transform: scale(1.025);
}

.portfolio-card-body {
  padding: 26px;
}

.portfolio-category {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-card-body h3 {
  margin: 0 0 12px;
}

.portfolio-card-body > p:not(.portfolio-category) {
  color: var(--muted);
}

.portfolio-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.portfolio-features li {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
}

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

@media (max-width: 560px) {
  .portfolio-card-body {
    padding: 21px;
  }
}

/* =========================================================
   Header mobil: hamburger curat + hero aerisit
   ========================================================= */

@media (min-width: 901px) {
  .nav-toggle {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    overflow: visible;
  }

  .nav-shell {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-open .main-nav {
    display: flex;
  }

  .main-nav > a,
  .dropdown-toggle,
  .nav-cta {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .main-nav > a::after {
    display: none;
  }

  .has-dropdown {
    width: 100%;
  }

  .has-dropdown .nav-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
  }

  .hero.hero-photo {
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero.hero-photo .container {
    width: min(100% - 40px, 1120px);
  }

  .hero.hero-photo .actions {
    align-items: flex-start;
    gap: 10px;
  }

  .hero.hero-photo .button {
    width: auto;
    min-height: 40px;
    padding: 9px 13px;
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .hero.hero-photo .container {
    width: min(100% - 36px, 1120px);
  }

  .hero.hero-photo h1 {
    font-size: clamp(1.9rem, 8vw, 2.7rem);
  }

  .hero.hero-photo .lead.light {
    font-size: 1rem;
  }

  .hero.hero-photo .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero.hero-photo .button {
    flex: 0 1 auto;
    white-space: normal;
  }
}
