@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  list-style: none;
  text-decoration: none;
}

:root {
  --main-color: #c2a449;
  --second-color: #626a19;
  --text-color: #a3893b;
  --bg-color: #fdf9f9;
  --box-shadow: 2px 2px 18px rgba(14, 52, 54, 0.15);
}

body {
  color: var(--text-color);
  letter-spacing: 0.2px;
  background-image: url("../images/lemoriah.JPG"); /* update the path */
}
body::before {
  content: "";
  position: fixed;     /* stays put during scroll */
  inset: 0;
  background: rgba(0,0,0,.6); /* or a gradient */
  z-index: -1;
}

section {
  padding: 7rem 0 3rem;
}
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg-color);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  max-width: 90%;
  margin: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  position: relative;
}

.logo img {
  width: 100px;
}

#menu {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 3;
}

.hamburger .bar {
  height: 3px;
  width: 100%;
  background-color: var(--main-color);
  border-radius: 2px;
  transition: 0.4s;
}

#menu:checked + .hamburger .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menu:checked + .hamburger .bar:nth-child(2) {
  opacity: 0;
}

#menu:checked + .hamburger .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.navbar {
  display: flex;
  gap: 1rem;
}

.navbar a {
  padding: 8px 17px;
  color: var(--main-color);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
}

.navbar a:hover {
  color: var(--second-color);
}

.btn {
  padding: 8px 22px;
  background: var(--text-color);
  color: var(--bg-color);
  border-radius: 10px;
}
.btn:hover {
  background: var(--main-color);
}

.contact {
  position: relative;
  padding: 30px 100px 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.content {
  margin-top: 130px;
  max-width: 800px;
  text-align: center;
}

.content h2 {
  font-size: 36px;
  font-weight: 500;
  color: var(--main-color);
}

.content p {
  font-weight: 300;
  color: #fff;
}

.con {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.contact-info {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.box {
  position: relative;
  padding: 20px 0;
  display: flex;
}

.icon {
  min-width: 60px;
  height: 60px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 22px;
}

.text {
  display: flex;
  margin-left: 20px;
  font-size: 16px;
  color: #fff;
  flex-direction: column;
  font-weight: 300;
}

.text h3 {
  font-weight: 500;
  color: var(--main-color);
}

.text a {
  text-decoration: none;
  color: #fff;
}

.contact-form {
  width: 40%;
  padding: 40px;
  background: #fff;
}

.contact-form h2 {
  font-size: 30px;
  color: black;
  font-weight: 500;
}

.inputBox {
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.inputBox input,
textarea {
  width: 100%;
  padding: 5px 0;
  font-size: 16px;
  margin: 10px 0;
  border: none;
  border-bottom: 2px solid #666;
  outline: none;
  resize: none;
}

span {
  position: absolute;
  left: 0;
  padding: 5px 0;
  font-size: 16px;
  margin: 10px 0;
  pointer-events: none;
  transition: 0.5s;
  color: #666;
}

input:focus ~ span,
input:valid ~ span,
textarea:focus ~ span,
textarea:valid ~ span {
  color: var(--text-color);
  font-size: 12px;
  transform: translateY(-20px);
}

input[type="submit"] {
  width: 100px;
  background: var(--text-color);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 10px;
  font-size: 18px;
}

.footer {
  background: var(--text-color);
  color: var(--bg-color);
  padding: 3rem 1rem 1rem;
  border-radius: 5rem 0 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.footer-container h2 {
  text-align: left;
  color: white;
}

.fir {
  display: flex;
  justify-content: space-between;
}

.footer-box h3 {
  margin-bottom: 1rem;
}

.footer-box a {
  display: block;
  font-size: 0.85rem;
  color: var(--bg-color);
  margin-bottom: 0.5rem;
}

.footer-box a:hover {
  color: var(--second-color);
}

.social {
  display: flex;
  justify-content: center;
}

.social a {
  font-size: 20px;
  margin: 0 5px;
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.75rem;
}

@media (max-width: 1080px) {
  .container {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media (max-width: 991px) {
  .contact {
    padding: 50px;
    background-size: 100% 100%;
  }

  .con {
    flex-direction: column;
  }

  .contact-info {
    width: 100%;
    margin-bottom: 40px;
  }

  .contact-form {
    width: 100%;
  }
}

@media (max-width: 880px) {
  .hamburger {
    display: flex;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    text-align: center;
    background: var(--text-color);
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.5s ease;
    z-index: 1;
  }

  .navbar.active {
    clip-path: circle(150% at 50% 0%);
  }

  .navbar a {
    padding: 1rem;
    color: var(--bg-color);
  }

  .logo img {
    width: 80px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 0 10px;
  }

  #menu-icon {
    display: initial;
  }

  .navbar a {
    display: block;
    margin: 1rem;
    padding: 5px;
    color: var(--bg-color);
  }

  .navbar a:hover {
    background: var(--second-color);
    color: var(--bg-color);
    transition: 0.5s;
  }

  #menu:checked ~ .navbar {
    clip-path: circle(144% at 100% 1%);
  }

  .logo {
    width: 23%;
  }

  .news {
    align-items: center;
    justify-content: center;
    margin-top: -100px;
  }

  .news-text h1 {
    font-size: 20px;
  }
}

@media (max-width: 442px) {
  .logo {
    width: 30%;
  }
}
