:root {
  --brand-navy: #4f5d73;
  --brand-navy-dark: #303b4d;
  --brand-gold: #d4c2a0;
  --surface: #ffffff;
  --page: #f4f6f8;
  --text: #29313d;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--page);
  line-height: 1.65;
  padding-bottom: 64px;
}

a {
  color: inherit;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f2c96d;
  outline-offset: 3px;
}

#faith_container {
  width: 100%;
  overflow: hidden;
  background: var(--surface);
}

#Header {
  min-height: 72px;
  overflow: visible;
  background: linear-gradient(135deg, var(--brand-navy-dark), #6c7890);
}

#Logo {
  display: flex;
  align-items: center;
  height: 72px;
  margin: 0;
  padding: 12px 76px 12px 16px;
}

#Logo a {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
}

#Logo img {
  display: block;
  width: auto;
  max-width: min(100%, 240px);
  max-height: 48px;
  margin: 0;
}

#MenuIcon {
  display: block;
  width: 48px;
  height: 48px;
  top: 12px;
  right: 12px;
  background: none;
}

#MenuIcon > a {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

#MenuIcon > a::before,
#MenuIcon > a::after {
  position: absolute;
  left: 12px;
  top: 23px;
  width: 24px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#MenuIcon > a::before {
  box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
}

#MenuIcon > a[aria-expanded="true"]::before {
  transform: rotate(45deg);
  box-shadow: none;
}

#MenuIcon > a[aria-expanded="true"]::after {
  transform: rotate(-45deg);
}

#PrimaryNavigation {
  clear: both;
  background: var(--brand-navy);
  box-shadow: 0 8px 18px rgba(20, 28, 40, 0.18);
}

#PrimaryNavigation > ul > li {
  display: block;
  width: 100%;
  height: auto;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  line-height: 1.35;
}

#PrimaryNavigation > ul > li:last-child {
  border-bottom: 0;
}

#PrimaryNavigation > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
}

#PrimaryNavigation > ul > li > a:hover,
#PrimaryNavigation > ul > li > a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

#Banner {
  overflow: hidden;
  background: #1f2937;
}

#Banner img {
  display: block;
  width: 100%;
  aspect-ratio: 1170 / 575;
  object-fit: cover;
}

.slick-dotted.slick-slider {
  margin-bottom: 0;
}

.slick-dots {
  bottom: 10px;
}

.slick-dots li button::before {
  color: #fff;
  opacity: 0.7;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.slick-dots li.slick-active button::before {
  color: #fff;
  opacity: 1;
}

.container {
  width: min(calc(100% - 32px), 1053px);
  height: auto;
}

#company_img,
#product_img,
#contact_img,
#Milling_iron,
#Scrap_iron {
  width: 100%;
  height: auto;
  min-height: 190px;
  aspect-ratio: 432 / 270;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.13);
}

.company_bg,
.product_bg,
.contact_bg,
.milling_bg,
.scrap_bg {
  height: 100%;
  background-position: center;
  background-size: cover;
}

.banner_tittle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  font-size: clamp(2rem, 9vw, 3.5rem);
  line-height: 1.1;
}

#company_about,
#about_bg,
#contact_form,
#Map {
  overflow: hidden;
  border-radius: 12px;
}

#company_about {
  margin-top: 24px;
}

#company_about > img,
#about_bg > img,
#contact_form > img {
  display: block;
  width: 100%;
}

#about_info {
  display: grid;
  gap: 18px;
  margin: 20px 0;
  align-items: start;
}

#about_info .about_img {
  display: block !important;
  width: 100%;
  border-radius: 12px;
}

.company_info_text {
  float: none;
}

.company_info_text p {
  margin: 0 0 14px;
  line-height: 1.8;
}

#Protfolio {
  padding: 8px 0 24px;
}

#Protfolio > h1 {
  margin: 18px 0 12px;
  font-size: clamp(1.4rem, 5vw, 2rem);
}

#Protfolio_1 > .ProtfolioImg,
#Protfolio_2 > .ProtfolioImg,
#Protfolio_3 > .ProtfolioImg,
#Protfolio_4 > .ProtfolioImg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.ProtfolioContent {
  display: block;
  min-width: 0;
  margin: 0;
  padding-bottom: 10px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 41, 55, 0.12);
}

.ProtfolioContent > a {
  overflow: hidden;
  background: #e9edf2;
}

.ProtfolioContent img.ProtfolioImg {
  display: block;
  width: 100%;
  aspect-ratio: 450 / 250;
  object-fit: cover;
  transition: transform 220ms ease;
}

.ProtfolioContent > a:hover img,
.ProtfolioContent > a:focus-visible img {
  transform: scale(1.035);
}

.ProtfolioContent p {
  min-height: 2.8em;
  margin: 10px 8px 0;
  line-height: 1.4;
}

#contact {
  margin-top: 24px;
}

.FormContent {
  float: none;
  width: 100%;
  padding: 18px;
  background: linear-gradient(145deg, #717984, #9198a1);
}

.FormContent > form {
  width: 100%;
  margin: 0;
}

input[type="text"],
input[type="email"],
input[type="submit"],
input[type="reset"],
textarea {
  width: 100%;
}

input[type="text"],
input[type="email"],
textarea {
  border: 1px solid #69727d;
  background: #fff;
}

input[type="text"],
input[type="email"] {
  height: 46px;
  margin: 6px 0;
}

textarea {
  min-height: 140px;
  margin: 6px 0;
  padding: 8px 10px;
  text-indent: 0;
  resize: vertical;
}

input[type="submit"],
input[type="reset"] {
  width: calc(50% - 6px);
  min-height: 44px;
  margin: 8px 2px 0;
}

#Map {
  margin: 24px 0;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.13);
}

#Map iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 58vw, 450px);
}

footer {
  width: 100%;
  height: auto;
  min-height: 54px;
  padding: 12px 16px;
  background-color: var(--brand-navy-dark);
  background-position: center;
  background-size: cover;
}

#footer_text {
  position: static;
  text-align: center;
  line-height: 1.5;
}

footer p {
  font-size: 0.8rem;
}

#icon {
  position: fixed;
  z-index: 950;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -6px 20px rgba(31, 41, 55, 0.18);
  backdrop-filter: blur(8px);
}

.footer_icon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  height: 64px;
  margin: 0;
}

.footer_icon li {
  float: none;
  height: 64px;
  border-right: 1px solid #e2e6ea;
}

.footer_icon li:last-child {
  border-right: 0;
}

.footer_icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

.footer_icon img {
  width: 30px;
  max-height: 32px;
  object-fit: contain;
}

#PageTop {
  z-index: 900;
  right: 14px;
  bottom: 78px;
}

#PageTop img {
  width: 44px;
  height: 44px;
}

@media screen and (max-width: 413px) {
  #Protfolio_1 > .ProtfolioImg,
  #Protfolio_2 > .ProtfolioImg,
  #Protfolio_3 > .ProtfolioImg,
  #Protfolio_4 > .ProtfolioImg {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  #icon {
    display: none;
  }

  #info {
    margin: 64px 0;
  }

  #about_info {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
  }

  #Protfolio_1 > .ProtfolioImg,
  #Protfolio_2 > .ProtfolioImg,
  #Protfolio_3 > .ProtfolioImg,
  #Protfolio_4 > .ProtfolioImg {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  #PageTop {
    bottom: 24px;
  }
}

@media screen and (min-width: 920px) {
  #Header {
    min-height: 80px;
  }

  #Logo {
    width: 46%;
    height: 80px;
    margin: 0 0 0 5%;
    padding: 14px 0;
  }

  #Logo img {
    width: auto;
    max-width: 260px;
    max-height: 52px;
    margin: 0;
  }

  #MenuIcon {
    display: none;
  }

  #PrimaryNavigation {
    display: block !important;
    top: 15px;
    background: transparent;
    box-shadow: none;
  }

  #PrimaryNavigation > ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  #PrimaryNavigation > ul > li {
    display: block;
    width: auto;
    min-width: 18%;
    min-height: 50px;
    border: 0;
  }

  #PrimaryNavigation > ul > li > a {
    min-height: 50px;
    padding: 10px 12px;
    white-space: nowrap;
  }

  #company_img,
  #product_img,
  #contact_img,
  #Milling_iron,
  #Scrap_iron {
    aspect-ratio: 1053 / 360;
    border-radius: 14px;
  }

  .banner_tittle {
    font-size: clamp(3rem, 5vw, 4.3rem);
  }

  footer {
    min-height: 151px;
    padding: 0;
  }

  #footer_text {
    position: absolute;
    right: 8%;
    bottom: 15%;
    text-align: right;
  }
}

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

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}