/* ADAMIETZ AGRO – wszystkie napisy i ikony w HTML/CSS/SVG */

:root {
  --green-dark: #082d1b;
  --green: #415f21;
  --cream: #f4e8c2;
  --text: #12301e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Lato", sans-serif;
  color: var(--text);
  background: #0d2719;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: url("img/adamietz-agro-bg-1920x1080.jpg") center center / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(250, 241, 214, 0.99) 0%,
      rgba(250, 241, 214, 0.97) 27%,
      rgba(250, 241, 214, 0.83) 40%,
      rgba(250, 241, 214, 0.35) 52%,
      rgba(250, 241, 214, 0) 66%
    );
}

.hero__container {
  position: relative;
  z-index: 2;
  width: min(1450px, calc(100% - 80px));
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  align-items: center;
}

.hero__content {
  width: min(640px, 46vw);
  padding: 45px 0 40px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  margin: 0 0 20px 100px;
  color: var(--green-dark);
}

.brand__leaf {
  width: 72px;
  color: #405e20;
  margin-bottom: -2px;
}

.brand__name {
  position: relative;
  text-align: center;
  font-family: "Roboto Slab", serif;
  line-height: 1;
}

.brand__name::before,
.brand__name::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 75px;
  height: 2px;
  background: #506d32;
}

.brand__name::before {
  right: calc(100% + 18px);
}

.brand__name::after {
  left: calc(100% + 18px);
}

.brand__name span {
  display: block;
  font-size: clamp(28px, 1.8vw, 36px);
  font-weight: 700;
  letter-spacing: 1px;
}

.brand__name small {
  display: block;
  font-family: "Montserrat", sans-serif;
  margin-top: 7px;
  font-size: clamp(16px, 1.05vw, 22px);
  font-weight: 600;
  letter-spacing: 7px;
  color: var(--green);
}

.hero__title {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  line-height: .9;
  text-transform: uppercase;
}

.hero__title > span {
  display: block;
  font-size: clamp(58px, 5vw, 96px);
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--green-dark);
}

.hero__title > strong {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 13px;
  padding: 7px 25px 14px 18px;
  font-size: clamp(50px, 4.3vw, 82px);
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--cream);
  background: #486126;
}

.hero__title > strong::before,
.hero__title > strong::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -13px;
  right: -17px;
  height: 14px;
  background: #486126;
}

.hero__title > strong::before {
  top: -7px;
  clip-path: polygon(0 58%, 7% 22%, 18% 46%, 29% 20%, 43% 54%, 56% 18%, 68% 48%, 82% 18%, 100% 52%, 100% 100%, 0 100%);
}

.hero__title > strong::after {
  bottom: -7px;
  clip-path: polygon(0 0, 100% 0, 100% 48%, 92% 83%, 81% 58%, 68% 86%, 55% 54%, 41% 88%, 27% 59%, 13% 86%, 0 52%);
}

.hero__rule {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(610px, 100%);
  margin: 23px 0 15px;
  color: #506d32;
}

.hero__rule span {
  flex: 1;
  height: 2px;
  background: currentColor;
}

.hero__rule svg {
  width: 31px;
}

.hero__intro {
  margin: 0 0 26px;
  max-width: 610px;
  font-size: clamp(16px, 1vw, 19px);
  line-height: 1.5;
  font-weight: 500;
}

.hero__intro b {
  display: block;
  color: #405c28;
}

.services {
  display: flex;
  width: min(610px, 100%);
}

.service {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.service:first-child {
  padding-left: 0;
}

.service:last-child {
  padding-right: 0;
}

.service + .service::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 1px;
  height: 105px;
  background: rgba(49, 81, 37, .42);
}

.service__icon {
  width: 76px;
  height: 76px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #425e21;
  color: #f5efd9;
  box-shadow:
    0 0 0 3px rgba(245, 239, 217, .9),
    0 0 0 4px rgba(66, 94, 33, .5);
}

.service__icon svg {
  width: 46px;
  height: 46px;
}

.service span {
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(12px, .8vw, 15px);
  line-height: 1.15;
  font-weight: 600;
  color: #183620;
}

.hero__closing {
  width: max-content;
  margin: 30px 0 0 30px;
  color: #385324;
}

.hero__closing strong {
  display: block;
  font-family: "Roboto Slab", serif;
  font-size: clamp(18px, 1.15vw, 23px);
  font-weight: 600;
}

.hero__closing span {
  position: relative;
  display: block;
  margin: 3px 0 0 33px;
  font-family: "Caveat", cursive;
  font-size: clamp(30px, 2vw, 40px);
  line-height: 1.05;
}

.hero__closing span::after {
  content: "";
  display: block;
  width: 94%;
  height: 2px;
  margin-top: 4px;
  background: #4a682b;
  transform: rotate(-2deg);
}


/* =========================
   RESPONSYWNOŚĆ
   ========================= */

/* Tablet */
@media (max-width: 1180px) {
  .hero {
    background-position: 62% center;
  }

  .hero__overlay {
    background:
      linear-gradient(
        90deg,
        rgba(250, 241, 214, .99) 0%,
        rgba(250, 241, 214, .96) 35%,
        rgba(250, 241, 214, .72) 53%,
        rgba(250, 241, 214, .12) 76%
      );
  }

  .hero__container {
    width: calc(100% - 48px);
  }

  .hero__content {
    width: min(610px, 56vw);
  }

  .brand {
    margin-left: 40px;
  }
}

/* Telefony i małe tablety:
   zamiast wciskać cały desktopowy układ w jeden ekran,
   robimy czytelną kolumnę z fotografią u góry i treścią na jasnym tle */
@media (max-width: 780px) {
  body {
    background: #f5edd4;
  }

  .hero {
    min-height: auto;
    overflow: visible;
    background: none;
    padding-top: 0;
  }

  .hero::before {
    content: "";
    display: block;
    width: 100%;
    height: clamp(240px, 62vw, 430px);
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, .04) 0%,
        rgba(0, 0, 0, 0) 62%,
        rgba(245, 237, 212, .18) 100%
      ),
      url("img/adamietz-agro-bg-1920x1080.jpg") 69% center / cover no-repeat;
  }

  .hero__overlay {
    display: none;
  }

  .hero__container {
    width: 100%;
    min-height: auto;
    display: block;
    margin: 0;
  }

  .hero__content {
    width: 100%;
    padding: 28px 20px 34px;
    background:
      linear-gradient(
        180deg,
        rgba(245, 237, 212, .97) 0%,
        #f5edd4 18%,
        #f5edd4 100%
      );
  }

  .brand {
    width: 100%;
    margin: 0 0 18px;
    align-items: center;
  }

  .brand__leaf {
    width: 48px;
    margin: 0 0 2px;
  }

  .brand__name::before,
  .brand__name::after {
    display: none;
  }

  .brand__name span {
    font-size: 28px;
    line-height: 1;
  }

  .brand__name small {
    margin-top: 6px;
    font-size: 15px;
    letter-spacing: 5px;
  }

  .hero__title {
    text-align: center;
    line-height: .95;
  }

  .hero__title > span {
    font-size: clamp(46px, 13vw, 70px);
    letter-spacing: -1px;
  }

  .hero__title > strong {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px 10px;
    font-size: clamp(38px, 11vw, 58px);
    letter-spacing: -1px;
  }

  .hero__title > strong::before,
  .hero__title > strong::after {
    left: -8px;
    right: -8px;
    height: 9px;
  }

  .hero__title > strong::before {
    top: -4px;
  }

  .hero__title > strong::after {
    bottom: -4px;
  }

  .hero__rule {
    width: min(420px, 92%);
    margin: 18px auto 14px;
    gap: 12px;
  }

  .hero__rule svg {
    width: 26px;
  }

  .hero__intro {
    max-width: 520px;
    margin: 0 auto 26px;
    text-align: center;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero__intro b {
    margin-top: 3px;
  }

  .services {
    width: min(520px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service {
    min-height: 76px;
    padding: 10px 14px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
    border: 1px solid rgba(63, 95, 33, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .28);
  }

  .service:first-child,
  .service:last-child {
    padding-left: 14px;
    padding-right: 14px;
  }

  .service + .service::before {
    display: none;
  }

  .service__icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    margin: 0;
  }

  .service__icon svg {
    width: 31px;
    height: 31px;
  }

  .service span {
    font-size: 14px;
    line-height: 1.25;
  }

  .hero__closing {
    width: 100%;
    margin: 26px 0 0;
    text-align: center;
  }

  .hero__closing strong {
    font-size: 19px;
  }

  .hero__closing span {
    display: inline-block;
    margin: 5px 0 0;
    font-size: 34px;
  }

  .hero__closing span::after {
    width: 100%;
  }
}

/* Bardzo małe telefony */
@media (max-width: 420px) {
  .hero::before {
    height: 230px;
    background-position: 71% center;
  }

  .hero__content {
    padding: 24px 16px 30px;
  }

  .brand__name span {
    font-size: 25px;
  }

  .brand__name small {
    font-size: 14px;
    letter-spacing: 4px;
  }

  .hero__title > span {
    font-size: 46px;
  }

  .hero__title > strong {
    font-size: 38px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero__intro {
    font-size: 15px;
  }

  .service {
    min-height: 70px;
  }

  .service span {
    font-size: 13px;
  }

  .hero__closing strong {
    font-size: 17px;
  }

  .hero__closing span {
    font-size: 31px;
  }
}
