/* DigitalGuild Agency — stiluri comune (brand book v1: portocaliu #F26500, grafit #232323, Dela Gothic One + Archivo) */
:root {
  --orange: #F26500; --ink: #232323; --white: #FFFFFF; --grey: #5E5E5E; --mist: #F2F2F2; --peach: #FDE6D6; --line: #D9D9D9;
  --display: "Dela Gothic One", "Archivo Black", Impact, sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --pad-x: 4rem; --max: 85rem;
}
@media (max-width: 1023px) { :root { --pad-x: 2rem; } }
@media (max-width: 767px) { :root { --pad-x: 1.25rem; } }
@media (min-width: 1440px) { html { font-size: min(calc(100vw / 90), 21.3333px); } }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: calc(var(--max) + 2 * var(--pad-x)); margin: 0 auto; padding-inline: var(--pad-x); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 2px solid var(--ink); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: .9rem; }
.nav__logo img { height: 2.6rem; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2rem; font-weight: 700; font-size: 1rem; }
.nav__links a { text-decoration: none; }
.nav__links a:hover, .nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nav__toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; }
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 1.25rem;
    background: var(--white); border-bottom: 2px solid var(--ink); padding: 1.5rem var(--pad-x) 2rem; font-size: 1.25rem; }
  .nav.is-open .nav__links { display: flex; }
}

/* Butoane */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 1.6rem; font-weight: 800; font-size: 1.0625rem;
  text-decoration: none; border: 2px solid var(--ink); background: var(--orange); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--orange); }
.btn--dark:hover { box-shadow: 6px 6px 0 var(--orange); }
.btn--small { padding: .65rem 1.1rem; font-size: 1rem; }

/* Titluri */
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--orange); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.h-section { font-family: var(--text); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.02; font-size: clamp(2.1rem, 4.2vw, 4rem); text-wrap: balance; }
.lead { font-size: 1.3rem; line-height: 1.5; max-width: 38rem; }
.crumbs { font-weight: 700; color: var(--grey); font-size: 1rem; }
.crumbs a { text-decoration: none; }

/* Hero */
.hero { padding-block: 7rem 7.5rem; }
@media (max-width: 767px) { .hero { padding-block: 3.5rem 4rem; } }
.hero .display { font-size: clamp(2.1rem, 4.4vw, 4rem); }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; margin-top: 1.75rem; flex-wrap: wrap; }
.hero__card { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--orange); padding: 1.75rem; width: min(26rem, 100%); display: flex; flex-direction: column; gap: .75rem; }
.hero__card h2 { font-size: 1.35rem; font-weight: 800; }
.hero--service .display { font-size: clamp(2.2rem, 5.6vw, 5.25rem); margin-top: 1.5rem; }

/* Secțiuni generice */
.sec { padding-block: 6rem; }
.sec--mist { background: var(--mist); }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.75rem; flex-wrap: wrap; }
.sec__head p { max-width: 26rem; }
.more { font-weight: 800; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--orange); }

/* Carduri servicii (home) */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem; }
.svc { display: flex; flex-direction: column; gap: .6rem; padding: 1.75rem; border: 2px solid var(--ink); text-decoration: none; background: var(--white); transition: transform .15s ease, box-shadow .15s ease; }
.svc:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.svc h3 { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.svc--hot { background: var(--orange); }
.svc--hot:hover { box-shadow: 8px 8px 0 var(--ink); }

/* Lista de servicii (pagina Servicii) */
.svc-list { border-top: 2px solid var(--ink); }
.svc-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto; gap: 2.5rem; padding-block: 2.5rem; border-bottom: 2px solid var(--ink); align-items: start; text-decoration: none; }
.svc-row h2 { font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: .6rem; }
.svc-row small { display: block; color: var(--grey); font-size: .95rem; margin-bottom: .3rem; }
.svc-row strong { font-size: 1.1rem; }
.svc-row .go { font-weight: 800; color: var(--orange); white-space: nowrap; }
.svc-row:hover h2 { color: var(--orange); }
@media (max-width: 900px) { .svc-row { grid-template-columns: 1fr; gap: 1rem; } }

/* Ce primești */
.gets { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; }
.gets ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.gets li { padding-block: 1.4rem; border-bottom: 2px solid var(--ink); }
.gets li strong { display: block; font-size: 1.35rem; font-weight: 800; margin-bottom: .2rem; }
@media (max-width: 900px) { .gets { grid-template-columns: 1fr; gap: 2rem; } }

/* Carduri proiecte */
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
@media (max-width: 1023px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } }
.proj { display: flex; flex-direction: column; border: 2px solid var(--ink); background: var(--white); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
a.proj:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--orange); }
.proj img { width: 100%; height: auto; aspect-ratio: 1080 / 525; object-fit: cover; object-position: top center; border-bottom: 2px solid var(--ink); }
.proj__body { padding: 1.2rem 1.35rem 1.35rem; display: flex; flex-direction: column; gap: .75rem; }
.proj__top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.proj h3 { font-size: 1.3rem; font-weight: 800; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag { font-size: .875rem; font-weight: 700; padding: .2rem .6rem; border: 1.5px solid var(--ink); }
.badge { font-size: .8rem; font-weight: 800; padding: .3rem .6rem; background: var(--orange); color: var(--ink); white-space: nowrap; }
.year { font-size: .9rem; font-weight: 700; color: var(--grey); white-space: nowrap; }
.proj--note { background: var(--mist); justify-content: space-between; padding: 1.5rem; gap: 1rem; }
.logos-tile { background: var(--mist); padding: 2rem; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }
.logos-tile .row { display: flex; gap: 2.5rem; flex-wrap: wrap; align-items: center; }
.logos-tile img { height: 2.1rem; width: auto; filter: brightness(0); opacity: .75; }

/* Filtre */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filters button { font: inherit; font-weight: 700; font-size: 1rem; padding: .6rem 1.1rem; border: 2px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.proj[hidden] { display: none; }

/* Bandă de logo-uri */
.logo-band { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem 3.5rem; }
.logo-band img { height: 2.25rem; width: auto; max-width: 10rem; object-fit: contain; filter: brightness(0); opacity: .72; }
.logo-band .names { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; font-weight: 900; font-size: 1.6rem; text-transform: uppercase; color: var(--grey); width: 100%; }

/* Footer */
.footer { border-top: 2px solid var(--ink); padding-block: 2.5rem; font-size: .95rem; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer img { height: 2.2rem; width: auto; }
.footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; font-weight: 700; }
.footer nav a { text-decoration: none; }
.footer .legal { color: var(--grey); width: 100%; }

/* 404 */
.nf { padding-block: 8rem; }
.nf .display { font-size: clamp(3rem, 10vw, 9rem); }
.hero__split { display: flex; justify-content: space-between; align-items: center; gap: 3rem; }
.hero__main { display: flex; flex-direction: column; gap: 1.75rem; }
.hero__split .hero__card { flex-shrink: 0; width: min(22rem, 100%); }
@media (max-width: 900px) { .hero__split { flex-direction: column; align-items: flex-start; } }
@media (min-width: 1200px) { .svc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; } .svc { padding: 1.4rem; } .svc h3 { font-size: 1.3rem; } }
/* Bara de progres pe linia de jos a meniului */
.nav::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--orange);
  transform: scaleX(var(--scroll, 0)); transform-origin: left center; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .nav::after { transition: transform .08s linear; } }
@media (min-width: 1200px) { .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Footer pe coloane */
.footer { padding-block: 2.5rem 1.5rem; font-size: .875rem; }
.footer__grid { display: grid !important; grid-template-columns: 1.2fr 1fr 1.3fr 1.3fr; gap: 1.5rem 2.5rem; align-items: start !important; }
.footer .footer__col { display: flex; flex-direction: column; flex-wrap: nowrap; gap: .4rem; font-weight: 400; }
.footer .footer__col a, .footer__legal a { font-weight: 400; text-decoration: none; }
.footer .footer__col a:hover, .footer__legal a:hover { text-decoration: underline; }
.footer__h { margin: 0 0 .2rem; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); }
.footer__legal { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .5rem; font-size: .8125rem; color: var(--grey); }
.footer__legal nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-weight: 400; }
.footer__legal .legal { width: auto; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
.policy__body { max-width: 46rem; }
.policy__body h2 { font-size: 1.35rem; font-weight: 800; margin: 2rem 0 .6rem; }
.policy__body p { margin: 0 0 .8rem; }
.policy__date { color: var(--grey); margin-top: 2rem !important; }
.policy .h-section { overflow-wrap: anywhere; }
@media (max-width: 767px) { .policy .h-section { font-size: 1.75rem; } }

.hero__end { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; }
.hero__end h1 { margin: 0; }
.hero__end .lead { margin: 0; flex: 0 1 35rem; max-width: 35rem; padding-bottom: .4rem; text-wrap: pretty; }
@media (max-width: 1199px) { .hero__end { flex-direction: column; align-items: flex-start; gap: 1.5rem; } }
@media (min-width: 1200px) { .hero__end h1 { white-space: nowrap; } .hero__end .lead { flex: 1 1 auto; max-width: 34rem; } }

.hero__svc { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.hero__svc h1 { margin: 0; font-size: clamp(1.9rem, 4.6vw, 4.5rem); }
.hero__svc .btn { flex-shrink: 0; margin-top: .5rem; }
.hero__svc-lead { margin: 1.75rem 0 0; max-width: 64rem; text-wrap: pretty; }
@media (max-width: 767px) { .hero__svc { flex-direction: column; gap: 1.25rem; } .hero__svc .btn { order: 2; } }
@media (min-width: 1200px) { .hero__svc h1 { white-space: nowrap; font-size: clamp(2.2rem, 3.4vw, 3.6rem); } .hero__svc { overflow-wrap: normal; } }

.hero__top { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.hero__top .crumbs { margin: 0; }
@media (max-width: 767px) { .hero__top { flex-direction: column; align-items: flex-start; } }
.hero__svc-btn { margin-top: 2rem; display: inline-flex; }

/* bento servicii */
.svc { position: relative; }
.svc__go { margin-top: auto; padding-top: .75rem; font-weight: 800; font-size: 1.25rem; line-height: 1; }
.svc__list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .45rem; border-top: 2px solid var(--ink); padding-top: .9rem; font-weight: 700; font-size: .95rem; }
.svc__list li::before { content: "→ "; color: var(--orange); }
@media (min-width: 1200px) {
  .svc-grid { grid-auto-flow: row dense; }
  .svc--wide { grid-column: span 2; }
  .svc--wide h3 { font-size: 2rem; }
  .svc--wide p { max-width: 30rem; font-size: 1.05rem; }
  .svc--tall { grid-row: span 2; background: var(--ink); color: var(--white); }
  .svc--tall h3 { font-size: 2rem; }
  .svc--tall .svc__list { border-color: rgba(255,255,255,.35); }
  .svc--tall:hover { box-shadow: 8px 8px 0 var(--orange); }
}
.nf-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1.75rem; font-weight: 700; }
.nf-links a { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 767px) { .hero__svc h1 { font-size: clamp(1.45rem, 7.2vw, 2.4rem); } }
@media (max-width: 1199px) { .hero__end .lead { flex: none; } }
@media (max-width: 767px) { .hero .hero__svc h1.display { font-size: clamp(1.45rem, 7.2vw, 2.4rem); } }
