:root {
  --navy: #0a1c33;
  --navy-mid: #12304f;
  --ink: #1b2430;
  --muted: #5c6774;
  --cream: #f4f0e8;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: rgba(10, 28, 51, 0.12);
  --accent: #d36b35;
  --accent-dark: #b55424;
  --whatsapp: #1f7a46;
  --shadow: 0 18px 50px rgba(10, 28, 51, 0.12);
  --radius: 18px;
  --header: 76px;
  --font: "Figtree", "Segoe UI", sans-serif;
  --display: "Sora", "Figtree", sans-serif;
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(10, 28, 51, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header.is-home:not(.is-scrolled) {
  position: absolute;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(7, 18, 32, 0.72), transparent);
  border-bottom-color: transparent;
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.logo svg {
  width: 34px;
  height: 34px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #122844;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
}

.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 550;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 999px;
  margin-left: 8px;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
  border-radius: 2px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  color: #fff;
  isolation: isolate;
  background: var(--navy);
}

.hero-media,
.hero-media img,
.hero-media picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 72% 50%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 28, 0.88) 0%, rgba(7, 16, 28, 0.55) 42%, rgba(7, 16, 28, 0.18) 100%),
    linear-gradient(to top, rgba(7, 16, 28, 0.45), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 0 72px;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f0c2a4;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin-bottom: 16px;
  font-weight: 650;
}

.hero p {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: 13px 20px;
  border-radius: 999px;
  transition: 0.18s ease;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

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

.trust {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 32px;
  padding: 28px 0;
}

.trust-item strong {
  display: block;
  color: #fff;
  font-family: var(--display);
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.section {
  padding: 84px 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-kicker {
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 100%;
}

.service-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.service-card-body {
  padding: 28px;
}

.service-card h3 {
  font-size: 1.45rem;
}

.service-card.dark {
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  position: relative;
}

.service-card.dark::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  top: -50px;
  background: radial-gradient(circle, rgba(224, 196, 120, 0.35), transparent 68%);
  pointer-events: none;
}

.service-card.dark p,
.service-card.dark a {
  position: relative;
}

.service-card.dark p {
  color: rgba(255, 255, 255, 0.78);
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.service-card.dark .text-link {
  color: #f3b58d;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.project-grid a {
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  display: block;
  min-height: 240px;
}

.project-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.project-grid .span-row {
  grid-column: 1 / -1;
  min-height: 280px;
}

.project-grid .caption,
.gallery-item .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 16px;
  color: #fff;
  background: linear-gradient(to top, rgba(7, 16, 28, 0.78), transparent);
  font-weight: 600;
}

.cta-band {
  background:
    linear-gradient(120deg, rgba(10, 28, 51, 0.86), rgba(10, 28, 51, 0.55)),
    url("../img/proiect-13.webp") center/cover;
  color: #fff;
  border-radius: 24px;
  padding: 52px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-band h2 {
  margin-bottom: 8px;
}

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 88px 0 56px;
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.split img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 20px;
}

.stack {
  display: grid;
  gap: 16px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  min-height: 220px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  transition: transform 0.35s ease;
}

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

.gallery-item.is-tall {
  grid-row: span 2;
  min-height: 454px;
}

.gallery-item.is-tall img {
  min-height: 454px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-card {
  background: var(--navy);
  color: #fff;
  border-radius: 22px;
  padding: 32px;
}

.contact-card a {
  color: #f3b58d;
  text-decoration: none;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.contact-list li {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-list span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 650;
  font-size: 0.92rem;
}

input,
select,
textarea {
  font: inherit;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

.is-invalid {
  border-color: #b42318;
  background: #fff4f2;
}

.hp {
  position: absolute;
  left: -9999px;
}

.form-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 650;
}

.form-alert.is-success {
  background: #e8f6ee;
  color: #14532d;
}

.form-alert.is-error {
  background: #fdecea;
  color: #8a1c13;
}

.site-footer {
  background: #071221;
  color: rgba(255, 255, 255, 0.72);
  padding: 42px 0 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.copyright {
  margin-top: 18px;
  font-size: 0.88rem;
}

.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(31, 122, 70, 0.35);
  z-index: 30;
}

.whatsapp svg {
  width: 28px;
  height: 28px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 22, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 100%);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 600;
  z-index: 2;
}

.lightbox-btn {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

body.nav-open {
  overflow: hidden;
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header) 0 0 0;
    background: var(--navy);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    gap: 18px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
  }

  .trust-grid,
  .services-grid,
  .project-grid,
  .split,
  .contact-layout,
  .form-row,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item.is-tall,
  .gallery-item.is-tall img {
    min-height: 280px;
    grid-row: auto;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }

  .hero {
    min-height: 78vh;
    align-items: center;
  }

  .hero-content {
    padding: 110px 0 48px;
  }

  .hero-media img {
    object-position: 80% 50%;
  }

  .split img {
    height: 280px;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gallery-item img,
  .btn {
    transition: none;
  }
}
