/* QDI: compoziție arhitecturală. Cardurile serviciilor păstrează stilul ales. */
:root {
  --night: #202829;
}

body {
  background: #f7f7f2;
}

h2 {
  font-weight: 750;
  text-transform: uppercase;
  line-height: 1.12;
}

.eyebrow,.section-label {
  font-family: Consolas,monospace;
  letter-spacing: 1.5px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label:before {
  content: '';
  width: 20px;
  height: 2px;
  background: #c66b3d;
}

.header {
  background: var(--night);
  color: white;
  border-color: #495052;
}

.header-inner {
  height: 88px;
}

.brand {
  width: 172px;
}

.header-cta {
  padding: 12px 18px;
  background: #c66b3d;
  color: #151b1c;
  font-weight: 800;
  border: 0;
}

.desktop-nav a:hover {
  color: #e3a282;
}

/* Feedback vizual pentru butonul de contact, la mouse și tastatură. */
.header-cta {
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.diagonal-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background-color: #e6a07c;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

a:hover .diagonal-arrow,
a:focus-visible .diagonal-arrow,
button:hover .diagonal-arrow,
button:focus-visible .diagonal-arrow {
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  a:hover .diagonal-arrow,
  a:focus-visible .diagonal-arrow,
  button:hover .diagonal-arrow,
  button:focus-visible .diagonal-arrow {
    transform: none;
  }
}

.hero {
  display: block;
  position: relative;
  isolation: isolate;
  min-height: 650px;
  color: white;
  background: var(--night);
  overflow: hidden;
  padding: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1376px;
  width: calc(100% - 112px);
  margin: auto;
  padding: 80px 0 75px;
}

.hero .eyebrow {
  color: #e6e6df;
}

.hero h1 {
  font-size: clamp(52px,6.7vw,102px);
  font-weight: 800;
  line-height: 1.01;
  letter-spacing: -4px;
  margin: 35px 0 28px;
}

.hero h1 span {
  color: #e3a282;
}

.hero-description {
  font-size: 16px;
  color: #e0e4df;
  line-height: 1.8;
  max-width: 450px;
}

.hero .dark {
  background: #c66b3d;
  color: #141b1c;
  border-color: #c66b3d;
  font-weight: 800;
}

.hero .dark:hover {
  background: #e6a07c;
}

.hero .text-link:hover {
  color: #e3a282;
}

.hero-foot {
  font-family: Consolas,monospace;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: #b8c2bf;
  margin-top: 48px;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  min-height: 0;
}

.hero-visual>img {
  position: static;
  object-position: center 53%;
}

.hero-visual:after {
  z-index: 0;
  background: linear-gradient(90deg,rgba(15,25,26,.94),rgba(15,25,26,.78) 35%,rgba(15,25,26,.16) 80%),linear-gradient(0deg,rgba(15,25,26,.35),transparent 40%);
}

.hero-visual figcaption {
  bottom: 20px;
  right: 28px;
  left: auto;
  font-size: 14px;
  z-index: 1;
}

.hero-coordinate {
  position: absolute;
  right: 5%;
  top: 45%;
  height: 200px;
  width: 215px;
  border: 1px solid #ffffff60;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  font-family: Consolas,monospace;
  color: white;
  font-size: 14px;
  letter-spacing: 1px;
}

.hero-coordinate:before,.hero-coordinate:after {
  content: '+';
  position: absolute;
  font-size: 24px;
  color: #e3a282;
  line-height: 1;
}

.hero-coordinate:before {
  top: -13px;
  left: -7px;
}

.hero-coordinate:after {
  bottom: -10px;
  right: -7px;
}

.hero-coordinate span:first-child {
  font-size: 36px;
}

.discipline-strip {
  display: grid;
  grid-template-columns: 1fr 1fr .9fr;
  background: var(--night);
  color: white;
  padding: 0 max(56px,calc((100vw - 1376px)/2));
  border-top: 1px solid #59605f;
  border-bottom: 0;
}

.discipline-strip a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 28px 26px 0;
  margin-right: 28px;
  border-right: 1px solid #495052;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .5px;
}

.discipline-strip a>span:last-child {
  color: #e3a282;
  font-size: 28px;
}

.discipline-strip a:hover {
  color: #e3a282;
}

.discipline-strip p {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 400;
  align-self: center;
  color: #bac2bf;
  padding-left: 12px;
}

.about {
  grid-template-columns: .85fr 1.5fr;
  gap: 100px;
  align-items: center;
}

.about-mark {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(#dfe2dc 1px,transparent 1px),linear-gradient(90deg,#dfe2dc 1px,transparent 1px);
  background-size: 28px 28px;
  border: 1px solid #d4d9d2;
}

.about-mark:before,.about-mark:after {
  content: '+';
  position: absolute;
  top: -17px;
  color: #a94e26;
  font: 28px monospace;
}

.about-mark:before {
  left: -9px;
}

.about-mark:after {
  right: -9px;
}

.about-mark img {
  width: 75%;
}

.about-mark span {
  font: 14px/1.5 Consolas,monospace;
  letter-spacing: 2px;
  margin-top: 10px;
}

.about-columns {
  gap: 30px;
}

.section-heading>p {
  max-width: 280px;
}

.expertise h2 {
  font-size: clamp(30px,3.2vw,46px);
}

.approach {
  display: block;
}

.approach-intro {
  margin-bottom: 50px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
}

.steps article {
  position: relative;
  display: block;
  border-top: 1px solid #b7beb8;
  padding: 32px 32px 0 0;
}

.steps article:before {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  background: #c66b3d;
  top: -5px;
  left: 0;
}

.steps article:not(:first-child) {
  padding-left: 28px;
  border-left: 1px solid #d6dbd5;
}

.steps article:last-child {
  border-bottom: 0;
}

.steps article>span {
  font: 42px/1 Consolas,monospace;
  color: #a94e26;
  display: block;
  margin-bottom: 28px;
}

.steps h3 {
  font-weight: 600;
  line-height: 1.35;
}

.statement {
  background: #c66b3d;
  color: #172021;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.statement:after {
  content: '';
  position: absolute;
  right: 20%;
  top: -120px;
  width: 90px;
  height: 450px;
  border-left: 1px solid #252a2b35;
  border-right: 1px solid #252a2b35;
  transform: rotate(-40deg);
  pointer-events: none;
}

.statement .eyebrow {
  color: #172021;
}

.statement-title {
  font-size: clamp(25px,3vw,43px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin-top: 18px;
  max-width: 85%;
}

.round-link {
  top: 30px;
  font-size: 50px;
  width: 70px;
  height: 70px;
  border-radius: 0;
  border-color: #17202180;
}

.round-link:hover {
  background: #dc8e65;
}

.contact {
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
}

form {
  background: #eaece6;
  padding: 32px;
  border-top: 3px solid #252a2b;
}

footer {
  background: var(--night);
}

@media(max-width:1100px) {
  .hero-copy {
    width: calc(100% - 64px);
    padding: 70px 0 50px;
  }
  .hero {
    min-height: 600px;
  }
  .hero-coordinate {
    right: 32px;
    width: 130px;
    height: 180px;
  }
  .discipline-strip {
    padding: 0 32px;
  }
  .about {
    gap: 50px;
  }
  .contact {
    gap: 40px;
  }
  .hero .actions {
    flex-direction: row;
    align-items: center;
  }
}

@media(max-width:760px) {
  .hero-copy {
    width: calc(100% - 40px);
    padding: 68px 0 64px;
  }
  .header-inner {
    height: 78px;
  }
  .brand {
    width: 158px;
  }
  .menu-toggle span {
    background: #c66b3d;
  }
  .mobile-nav {
    border-color: #495052;
  }
  .hero {
    min-height: 580px;
  }
  .hero h1 {
    font-size: clamp(48px,9.8vw,74px);
    letter-spacing: -2.5px;
    margin: 32px 0 25px;
  }
  .hero-description {
    font-size: 14px;
    max-width: 350px;
  }
  .hero-visual>img {
    object-position: 62% center;
  }
  .hero-visual:after {
    background: linear-gradient(90deg,#142021ed,#14202195),linear-gradient(0deg,#14202170,transparent);
  }
  .hero-coordinate {
    display: none;
  }
  .hero-foot {
    font-size: 14px;
    margin-top: 48px;
  }
  .hero-visual figcaption {
    right: 20px;
    bottom: 13px;
    font-size: 14px;
  }
  .hero .actions {
    gap: 24px;
    flex-wrap: wrap;
  }
  .discipline-strip {
    grid-template-columns: 1fr 1fr;
    padding: 0 20px;
  }
  .discipline-strip p {
    display: none;
  }
  .discipline-strip a {
    font-size: 14px;
    padding: 18px 12px 18px 0;
    margin-right: 12px;
  }
  .discipline-strip a:last-of-type {
    border: 0;
    margin: 0;
  }
  .discipline-strip a>span:last-child {
    font-size: 22px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-mark {
    width: 130px;
    height: 130px;
    aspect-ratio: auto;
  }
  .about-mark img {
    width: 85%;
  }
  .about-mark span {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps article,.steps article:not(:first-child) {
    display: flex;
    gap: 24px;
    padding: 26px 0;
    border-left: 0;
  }
  .steps article>span {
    font-size: 28px;
    margin: 0;
    min-width: 40px;
  }
  .steps article:before {
    width: 6px;
    height: 6px;
    top: -3px;
  }
  .steps h3 {
    font-size: 19px;
  }
  .approach-intro {
    margin-bottom: 35px;
  }
  .statement-title {
    font-size: 29px;
    letter-spacing: -1px;
    max-width: 82%;
  }
  .round-link {
    width: 42px;
    height: 55px;
    font-size: 30px;
    top: 42px;
    right: 0;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  form {
    padding: 25px;
  }
}

@media(min-width:360px) and (max-width:460px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service {
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
  }
  .service h3 {
    font-size: 23px;
  }
  .service p {
    font-size: 14px;
    margin-bottom: 28px;
  }
  .service-link {
    margin-top: auto;
    align-items: center;
    font-size: 14px;
  }
  .service-top {
    position: relative;
    padding-top: 12px;
    min-height: 110px;
    margin-bottom: 25px;
  }
  .service-top>span {
    position: absolute;
    top: 0;
    left: 0;
  }
  .service svg {
    width: 100px;
    margin-left: auto;
  }
}

@media(max-width:460px) {
  .statement-title {
    font-size: 23px;
    line-height: 1.3;
  }
  .hero {
    min-height: 555px;
  }
  .hero .eyebrow {
    font-size: 14px;
  }
  .hero .text-link {
    font-size: 14px;
  }
}

@media(max-width:359px) {
  .hero h1 {
    font-size: 42px;
  }
  .header-inner {
    height: 72px;
  }
  .hero-copy {
    padding-top: 52px;
  }
  .statement-title {
    font-size: 20px;
  }
  .hero-description br {
    display: none;
  }
}

/* Denumirea companiei este vizibilă alături de sigla prescurtată. */
.brand-name>span {
  white-space: normal;
  max-width: 225px;
}

.header-inner {
  gap: 24px;
}

.hero-coordinate {
  width: 245px;
}

.discipline-strip {
  letter-spacing: 0;
}

.footer-bottom {
  flex-wrap: wrap;
}

.desktop-nav {
  font-size: 16px;
  gap: 26px;
}

.header-cta {
  font-size: 15px;
}

.mobile-nav {
  font-size: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  width: auto;
  flex-shrink: 0;
  margin-left: 0;
}

.brand>img {
  width: 96px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #697170;
  padding-left: 16px;
  white-space: nowrap;
}

.brand-name strong {
  font-size: 23px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 2px;
}

.brand-name>span {
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: .2px;
}

.hero-foot {
  font-size: 14px;
  letter-spacing: 1.4px;
  color: #e0e4df;
}

.footer-main p strong {
  font-weight: 600;
}

@media(min-width:761px) and (max-width:1050px) {
  .header-cta {
    display: none;
  }
}

@media(max-width:760px) {
  .brand {
    gap: 9px;
  }
  .brand>img {
    width: 74px;
  }
  .brand-name {
    padding-left: 10px;
  }
  .brand-name strong {
    font-size: 19px;
    letter-spacing: 1.5px;
  }
  .brand-name>span {
    font-size: 14px;
  }
  .hero-foot {
    font-size: 14px;
    max-width: 310px;
    line-height: 1.8;
  }
  .footer-main p {
    display: block;
    width: 100%;
  }
}

@media(max-width:359px) {
  .brand>img {
    width: 60px;
  }
  .brand-name strong {
    font-size: 17px;
  }
  .brand-name>span {
    font-size: 14px;
  }
  .header-inner {
    gap: 8px;
  }
  .menu-toggle {
    padding: 10px;
  }
}

/* Spațiere adaptată textelor de minimum 14 px. */
@media(min-width:761px) and (max-width:1150px) {
  .header-cta {
    display: none;
  }
}

@media(max-width:760px) {
  .brand-name {
    max-width: 170px;
  }
  .header-inner {
    gap: 8px;
  }
  .hero-coordinate {
    display: none;
  }
  .discipline-strip a {
    gap: 10px;
  }
  .about-mark {
    width: 160px;
    height: 160px;
  }
}

@media(max-width:400px) {
  .brand>img {
    width: 60px;
  }
  .brand-name {
    max-width: 155px;
  }
  .menu-toggle {
    padding: 10px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-top {
    min-height: 100px;
  }
}

@media(max-width:359px) {
  .brand>img {
    width: 48px;
  }
  .brand-name {
    max-width: 140px;
  }
  .header-inner {
    height: 88px;
  }
}

/* Titluri aerisite pe desktop și mobil. */
h1,h2,h3,.hero h1,.expertise h2,.contact h2,.service h3,.steps h3,.statement-title {
  letter-spacing: 0;
  word-spacing: .1em;
  line-height: 1.2;
}

/* Panou tehnic lizibil peste fotografie. */
.hero-coordinate {
  background: rgba(24,34,35,.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-color: rgba(245,242,236,.65);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,.16);
}

.hero-coordinate:before,.hero-coordinate:after {
  color: #efa57d;
}

/* Titlul descriptiv rămâne lizibil și lasă loc panoului tehnic. */
.hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 4.7vw, 68px);
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(30px, 7.7vw, 52px);
  }
}


/* Capcană anti-boți, exclusă din navigarea cu tastatura. */
.contact-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.button .submit-label {
  font-size: inherit;
  line-height: inherit;
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

#form-status[data-state="success"] {
  color: #305c3d;
}

/* Denumirea completă pe un singur rând în antetul mobil. */
@media (max-width: 760px) {
  .header-inner {
    width: calc(100% - 24px);
    gap: 8px;
  }

  .brand-name,
  .brand-name > span {
    max-width: none;
  }

  .brand-name > span {
    white-space: nowrap;
    font-size: 14px;
    letter-spacing: 0;
  }

  .menu-toggle {
    flex-shrink: 0;
    padding: 10px;
  }
}

@media (max-width: 359px) {
  .header-inner {
    gap: 6px;
  }

  .brand {
    gap: 6px;
  }

  .brand > img {
    width: 36px;
  }

  .brand-name {
    padding-left: 7px;
  }

  .menu-toggle {
    padding: 8px;
  }
}

/* Adresa de contact: link vizibil, cu accent de brand. */
.contact-email {
  margin-top: 32px;
  padding: 18px 20px;
  border-left: 3px solid #c66b3d;
  background: #eae7df;
}

.contact-email-label {
  display: block;
  margin-bottom: 8px;
  color: #464e4b;
  font-size: 14px;
  font-weight: 600;
}

.contact-email a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #252a2b;
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 700;
  transition: color 180ms ease;
}

.contact-email a > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-email .diagonal-arrow {
  flex-shrink: 0;
  color: #a94e26;
}

.contact-email a:hover,
.contact-email a:focus-visible {
  color: #a94e26;
}

/* Informarea rămâne vizibilă lângă trimiterea formularului. */
.form-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-note a:hover,
.footer-bottom a:hover {
  color: var(--copper);
}

/* SVG în loc de caractere Unicode: evită afișarea ca emoji pe iOS. */
.diagonal-arrow > svg {
  display: block;
  width: 1em;
  height: 1em;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
