/* Black Goat Media – landing page
   Paletă: negru (capra), zăpadă, ceață, granit, portocaliu „vârf” (#ffa737, culoarea originală a brandului)
   Font: Archivo variabil (lățime 62–125), găzduit local */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #000;
  --snow: #fff;
  --fog: #e8eaeb;
  --granite: #5c6168;
  --summit: #ffa737;
  --summit-deep: #f29410;

  --pad: clamp(1rem, 4vw, 3.5rem);
  --max: 1320px;
  --gap: clamp(.5rem, 1.2vw, 1rem);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--black);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--summit); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--summit); color: var(--black); padding: .6rem 1rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .8rem 1.5rem;
  font: 650 1rem/1.2 var(--font); font-stretch: 100%;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 2px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--summit { background: var(--summit); color: var(--black); }
.btn--summit:hover { background: var(--snow); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--snow); }
.btn--ghost:hover { border-color: var(--snow); background: var(--snow); color: var(--black); }
.btn--black { background: var(--black); color: var(--snow); }
.btn--black:hover { background: var(--snow); color: var(--black); }
.btn--line { border-color: var(--black); color: var(--black); }
.btn--line:hover { background: var(--black); color: var(--summit); }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: .75rem var(--pad);
  color: var(--snow);
  transition: background-color .3s, padding .3s;
}
.top--solid { background: var(--black); padding-block: .5rem; }
.top__logo img { width: 64px; height: auto; }
.top__nav { display: flex; gap: 1.75rem; margin-left: auto; }
.top__nav a { text-decoration: none; font-weight: 550; font-size: 1rem; }
.top__nav a:hover { color: var(--summit); }
.top__cta { min-height: 2.75rem; padding: .55rem 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(560px, min(94vh, 960px));
  display: flex; align-items: flex-end;
  background: var(--black); color: var(--snow);
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 68% 30%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,0) 72%),
    linear-gradient(to right, rgba(0,0,0,.45), rgba(0,0,0,0) 60%);
}
.hero__inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 8rem var(--pad) clamp(3rem, 8vh, 6rem);
}
.hero__place { font-weight: 500; color: var(--summit); margin-bottom: 1rem; }
.hero__title {
  font-size: clamp(2.75rem, 8.2vw, 7.25rem);
  line-height: .92;
  font-weight: 800;
  font-stretch: 72%;
  letter-spacing: -.01em;
  max-width: 13ch;
  text-wrap: balance;
}
.hero__lead {
  max-width: 46ch; margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: rgba(255,255,255,.86);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* Un singur moment de mișcare: titlul urcă la încărcare */
@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero__lead, .hero__actions, .hero__place {
    animation: ascend .9s cubic-bezier(.2,.7,.1,1) both;
  }
  .hero__place { animation-delay: .05s; }
  .hero__title { animation-delay: .12s; }
  .hero__lead { animation-delay: .32s; }
  .hero__actions { animation-delay: .44s; }
  .hero__img { animation: settle 2.4s cubic-bezier(.2,.7,.1,1) both; }
}
@keyframes ascend { from { opacity: 0; transform: translateY(1.5rem); } }
@keyframes settle { from { transform: scale(1.06); } }

/* ---------- Parteneri ---------- */
.partners {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--pad);
  display: flex; align-items: center; gap: clamp(1rem, 4vw, 3rem); flex-wrap: wrap;
  border-bottom: 1px solid var(--fog);
}
.partners__title { font-size: 1rem; font-weight: 600; color: var(--granite); }
.partners__list { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.5rem, 3vw, 2.5rem); flex: 1; justify-content: space-between; }
.partners__list img { width: clamp(84px, 11vw, 132px); filter: grayscale(1); mix-blend-mode: multiply; opacity: .8; transition: filter .25s, opacity .25s; }
.partners__list a:hover img, .partners__list a:focus-visible img { filter: none; opacity: 1; }

/* ---------- Titluri de secțiune ---------- */
.h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: .98; font-weight: 800; font-stretch: 75%;
  text-wrap: balance;
}

/* ---------- Servicii ---------- */
.services {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem);
}
.services__head { align-self: start; position: sticky; top: 6rem; }
.services__intro { margin-top: 1.25rem; max-width: 38ch; color: var(--granite); }
.service {
  display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 1rem 2rem;
  padding: 1.75rem 0;
  border-top: 2px solid var(--black);
}
.service:last-child { border-bottom: 2px solid var(--black); }
.service__name { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.05; font-weight: 750; font-stretch: 80%; }
.service p { max-width: 42ch; }

/* ---------- Capra neagră ---------- */
.goat {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--black); color: var(--snow);
}
.goat__bg {
  position: absolute; z-index: -1; right: -5%; bottom: 0;
  width: min(1100px, 90%); height: auto;
  opacity: .22; filter: invert(1) contrast(1.4);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 100%);
          mask-image: linear-gradient(to top, #000 30%, transparent 100%);
}
.goat__inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 9rem) var(--pad);
}
.goat__title {
  font-size: clamp(3.5rem, 13vw, 11rem);
  line-height: .85; font-weight: 850; font-stretch: 62%;
  letter-spacing: -.01em;
}
.goat__manifesto {
  max-width: 30ch; margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(1.4rem, 2.6vw, 2.25rem); line-height: 1.25; font-weight: 400;
}
.values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
}
.value { border-top: 2px solid var(--summit); padding-top: 1.25rem; }
.value h3 { font-size: 1.5rem; line-height: 1.1; font-weight: 750; font-stretch: 85%; margin-bottom: .75rem; }
.value p { color: rgba(255,255,255,.78); font-size: 1.0625rem; }

/* ---------- Portofoliu ---------- */
.work {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
  container-type: inline-size;
}
.work__head { display: grid; grid-template-columns: 5fr 7fr; gap: 1rem clamp(2rem, 6vw, 6rem); align-items: end; }
.work__head p { max-width: 44ch; color: var(--granite); }
.work__sub {
  margin: clamp(3rem, 6vw, 4.5rem) 0 1.25rem;
  font-size: 1.25rem; font-weight: 700; font-stretch: 90%;
}
.gallery {
  --cols: 4;
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols) * .81);
  grid-auto-flow: dense;
}
.g { overflow: hidden; background: var(--fog); }
.g img { width: 100%; height: 100%; object-fit: cover; }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }

.logos {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--fog); border-left: 1px solid var(--fog);
}
.logos li {
  border-right: 1px solid var(--fog); border-bottom: 1px solid var(--fog);
  display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 0;
  overflow: hidden;
}
.logos img { width: 100%; height: 100%; object-fit: contain; }
.logos li:last-child img { width: 62%; }
.work__social { max-width: 60ch; font-size: 1.25rem; }

/* ---------- CTA: sesiunea de strategie ---------- */
.climb {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--summit); color: var(--black);
}
.climb__lines {
  position: absolute; z-index: -1; right: -8%; bottom: -6%;
  width: min(1200px, 95%); opacity: .55;
  filter: brightness(0);
}
.climb__inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) var(--pad);
}
.climb__title {
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: .92; font-weight: 850; font-stretch: 70%;
  max-width: 12ch;
}
.climb__lead { max-width: 40ch; margin-top: 1.5rem; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; }
.climb__topics { margin-top: 2rem; max-width: 34rem; }
.climb__topics li { padding: .7rem 0; border-top: 1px solid rgba(0,0,0,.35); font-weight: 550; }
.climb__topics li:last-child { border-bottom: 1px solid rgba(0,0,0,.35); }
.climb__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }

/* ---------- Footer / contact ---------- */
.foot {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad) 2rem;
  display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 2.5rem;
}
.foot__brand img { width: 96px; }
.foot__h { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.foot address { font-style: normal; }
.foot a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot a:hover { color: var(--summit-deep); }
.foot__map { display: inline-block; margin-top: .5rem; font-size: 1rem; }
.foot__legal {
  grid-column: 1 / -1; margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--fog); font-size: .9rem; color: var(--granite);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services, .work__head { grid-template-columns: 1fr; }
  .services__head { position: static; }
  .values { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .top { gap: 1rem; }
  .top__nav { display: none; }
  .top__cta { margin-left: auto; }
  .service { grid-template-columns: 1fr; gap: .5rem; }
  .gallery { --cols: 2; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .partners { display: block; }
  .partners__title { margin-bottom: 1rem; }
  .partners__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
  .partners__list img { width: 100%; }
  .hero__actions .btn { width: 100%; }
}
@media (max-width: 480px) {
  .foot { grid-template-columns: 1fr; }
  .climb__actions .btn { width: 100%; }
}
