* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color-dark: #504943;
  --dark-hover: #685e56;
  --primary-color-light: #e3e3e3;
  --background-light: #d6d6d6;
  --accent-color: #ff9a3c;
  --load-time: 400ms;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary-color-light);
  cursor: pointer;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

/* Utility styles */
.container {
  max-width: 1200px;
  margin: 5.5rem auto 0;
  font-size: 1.2rem;
}

section {
  overflow: auto;
  background-color: var(--background-light);
}

.span-highlight {
  display: inline-block;
  padding: 0.2rem;
  border-radius: 10px;
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 900;
  font-size: 3rem;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 1px var(--primary-color-dark);
}

.header-l {
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-color-dark);
}

.header-m {
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--primary-color-dark);
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-bottom: 1px solid var(--accent-color);
  text-transform: uppercase;
}

.text-normal {
  font-size: 1.4rem;
  color: var(--primary-color-dark);
  margin-top: 0.5rem;
  padding: 0.5rem;
}

/* Navigation */
nav {
  animation: nav-load var(--load-time) ease-in;
}

.flex-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.flex-menu .gap-li {
  flex-grow: 2;
}

.container-nav {
  max-width: 1200px;
  margin: 0.5rem auto 0.5rem;
  padding: 0.1rem 1.5rem;
  font-size: 1.2rem;
}

/* Mobile menu */
.container-nav .ham-toggle {
  text-align: right;
  padding: 0.5rem 0.5rem 0.2rem 0;
  display: none;
}

header {
  overflow: auto;
  background-color: var(--primary-color-dark);
  color: var(--primary-color-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.flex-menu a {
  padding: 0.8rem;
  border-radius: 10px;
}

.flex-menu a:hover {
  color: var(--accent-color);
  background-color: var(--dark-hover);
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.active {
  border-radius: 10px;
  border: 2px solid var(--accent-color);
  background-color: var(--dark-hover);
  color: var(--accent-color);
  font-weight: 700;
  transition: font-weight 0.2s ease-in-out, border-color 0.2s ease-in-out,
    background-color 0.2s ease-in-out;
}

.fa-phone {
  margin-right: 0.5rem;
}

/* Hero cover main heading */
.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.hero-container::before {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
}

#slideshow {
  position: relative;
  width: 100%;
  height: 100vh; /* Adjust as needed */
  overflow: hidden;
}

.slideshow-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 0;
  transition: opacity 1s ease-in;
}

.slideshow-layer:first-child {
  opacity: 1; /* Start the first layer visible */
  z-index: 0;
}

/* Hero cover text */
.hero-text,
.hero-btn {
  z-index: 2;
  position: relative;
  max-width: 1200px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 1.5rem;
  border-radius: 15px;
  line-height: 1.1;
  backdrop-filter: blur(10px) invert(12%);
}

.hero-text h1,
p {
  color: var(--primary-color-light);
}

.hero-text h1 {
  font-size: 4rem;
}

.hero-text p {
  font-size: 3.5rem;
}

/* Hero cover buttons */
.hero-btn {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.btn {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1.2rem;
  margin-left: 1.5rem;
  width: 13rem;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--accent-color);
  color: var(--primary-color-light);
  border-radius: 10px;
  cursor: pointer;
}

.hero-btn .btn:hover {
  background-color: rgba(255, 154, 60, 0.6);
  color: var(--primary-color-light);
  border: 2px solid transparent;
  font-weight: 900;
  transition: font-weight 0.2s ease-in-out, border-color 0.2s ease-in-out,
    box-shadow 0.15s ease-in-out, background-color 0.2s ease-in-out;
}

.hero-btn .btn:active {
  background-color: var(--accent-color);
  color: var(--primary-color-light);
  font-weight: bold;
}

/* About section */
section.section-about {
  display: flex;
  flex-direction: column;
}

.container-header {
  display: flex;
  justify-content: space-between;
  line-height: 1;
}
.container-header h1 {
  writing-mode: vertical-rl;
  text-transform: lowercase;
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 900;
  font-size: 8rem;
  color: #fff;
  text-shadow: 0 0 1px var(--primary-color-dark);
}

.container-header p {
  text-align: justify;
  writing-mode: horizontal-tb;
  font-size: 2rem;
  line-height: 1.6;
}

.about-wrapper {
  display: flex;
  justify-content: space-between;
  margin: 2rem auto;
  padding: 0.1rem 1.5rem;
  gap: 3rem;
}

.about-card {
  flex: 1;
  display: flex;
  gap: 1.2rem;
  padding: 0.5rem;
}

.card-text {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 2rem 1rem 1rem;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
}

.about-card p {
  margin-top: 1.2rem;
}

.about-card i {
  color: var(--primary-color-dark);
}

/* Services section*/
.services-container h1.header-l {
  margin-top: 2rem;
}

.services-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin: 2rem auto;
}

.services-card {
  display: flex;
  align-items: stretch;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
}

.services-card .card-text {
  flex: 1;
  border-radius: 0px;
}
.services-card .card-text ul {
  list-style-type: disc;
  line-height: 1.4;
  margin: auto 1.3rem;
}

.services-card .card-text li {
  margin: 0.8rem;
  font-size: 1.3rem;
  text-align: left;
  color: var(--primary-color-dark);
}

.services-card .card-text span {
  font-size: 1.3rem;
  text-transform: uppercase;
  font-weight: 700;
}

.img-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.img-wrapper img {
  object-fit: cover;
  min-height: 100%;
  opacity: 0.8;
  transition: opacity 0.25s ease-in-out;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
}

.img-wrapper img:hover {
  opacity: 1;
}

.img-wrapper a.btn-services {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0 1rem 1rem 0;
  backdrop-filter: blur(10px) invert(30%);
  padding: 1rem;
  width: 10rem;
}

.img-wrapper a:hover {
  background-color: rgba(255, 154, 60, 0.6);
  color: var(--primary-color-light);
  border: 2px solid transparent;
  font-weight: 900;
}

.img-wrapper a:active {
  background-color: var(--accent-color);
  color: var(--primary-color-light);
  font-weight: bold;
}

.card-text .text-normal {
  text-align: left;
  padding: 1rem;
  font-size: 1.5rem;
}

.flip-row {
  flex-direction: row-reverse;
}

/* Contact section */
.cover-container {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.cover-container::before {
  content: "";
  position: absolute;
  background-image: url(/assets/images/bcg/bcg-1-lg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  opacity: 0.8;
  filter: blur(5px);
}

.contact-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.map-wrapp {
  display: flex;
}

.gmap {
  flex: 1;
}

.gmap iframe {
  border-radius: 10px;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Form */
.form-wrap {
  margin: 5rem 0;
  gap: 3rem;
}

.form-wrap form {
  flex: 1;
}

.form-wrap .con-info {
  flex: 1;
}

.form-wrap h2 {
  color: #fff;
  text-align: center;
}

.form-group {
  width: 100%;
  margin: 2rem 0;
}

input::placeholder,
textarea::placeholder {
  color: #fff;
  font-weight: 700;
  padding: 0.8rem;
}

.form-group input,
.form-group textarea {
  color: #fff;
  background: transparent;
  border: none;
  border-radius: 8px;
  border-bottom: 1px solid var(--background-light);
  width: 100%;
  font-family: inherit;
  font-size: 1.5rem;
  padding: 1rem;
}

.form-group textarea {
  height: 200px;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 0;
  background-color: rgba(104, 94, 86, 0.8);
  transition: background-color 0.5s ease-in-out;
}

.form-group button.btn {
  width: 100%;
  margin: 0;
  width: 100%;
  background-color: transparent;
  backdrop-filter: blur(10px) invert(8%);
  border: 2px solid var(--accent-color);
  font-family: inherit;
  font-size: 2rem;
  color: #fff;
}

.form-group button.btn:hover {
  background-color: rgba(255, 154, 60, 0.6);
  border: 2px solid transparent;
  font-weight: 900;
  transition: background-color 0.5s ease-in-out font-weight 0.5s ease-in-out;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.con-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.con-info p {
  font-size: 1.8rem;
  line-height: 1.6;
  text-align: center;
}

.con-info i {
  margin-right: 0.8rem;
}

/* Footer */
.footer {
  padding-bottom: 3.5rem;
}

.footer .info-container .icon-con a {
  color: var(--primary-color-dark);
}

.footer-wrap .container {
  margin: 3rem auto;
  display: flex;
  flex-direction: column;
}

.info-container {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  border-top: 1px solid var(--accent-color);
  padding-top: 2rem;
}

.info-container li {
  color: var(--primary-color-dark);
  flex: 1;
  text-align: center;
}

.icon-con {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer .icon-con i {
  margin-right: 0.5rem;
}

.icon-con a .icons {
  color: var(--primary-color-dark);
}

p.cp {
  margin: 3rem 0 0 0;
  text-align: center;
  font-size: 1rem;
  color: var(--dark-hover);
}

/* Portfolio */
li.active a {
  background-color: var(--primary-color-dark);
  color: var(--accent-color);
  font-weight: 700;
}

/* Portfolio */
.gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 5rem;
}

.gallery-card {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.gallery-item {
  z-index: 0;
  width: calc(33.333% - 1.2rem);
  border-radius: 10px;
  display: none;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
  border-radius: 10px;
}

.gallery-item img:hover {
  opacity: 0.8;
  transition: opacity 0.2s ease-in-out;
}

.dropdown {
  z-index: 1;
}

.dropdown-menu {
  opacity: 1;
  background-color: var(--dark-hover);
  margin-top: 0.5rem;
  transition: opacity 2s ease-in-out;
  overflow: hidden;
  border-radius: 10px;
}

.dropdown-item,
.btn-secondary {
  text-align: center;
  margin: 0.2rem auto 0.2rem;
  padding: 1rem;
  border: none;
  font-weight: 400;
  font-size: 1.2rem;
  width: 13rem;
  background-color: var(--dark-hover);
  color: var(--primary-color-light);
  border: 3px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}

.btn-secondary:focus {
  background-color: var(--primary-color-dark);
  border: transparent;
  box-shadow: none;
  outline: none;
}

.btn-secondary:hover {
  background-color: var(--dark-hover);
  border-color: transparent;
  color: var(--primary-color-light);
}

.show > .btn-secondary.dropdown-toggle {
  background-color: var(--dark-hover);
  border: transparent;
  color: var(--primary-color-light);
}
.show > .btn-secondary.dropdown-toggle:focus {
  box-shadow: none;
}

.dropdown-item button:active {
  background-color: var(--accent-color);
}

.dropdown-item.active {
  background-color: var(--accent-color);
  font-weight: 700;
}

.dropdown-item:hover {
  background-color: var(--dark-hover);
  border: 3px solid var(--accent-color);
  font-weight: 700;
  color: var(--primary-color-light);
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
  transition: font-weight 0.2s ease-in-out, border-color 0.2s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.show {
  display: block;
}

/* Video */
.gallery-item .video {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item .video i {
  position: absolute;
  color: rgba(255, 154, 60, 0.8);
  font-size: 3.5rem;
}

.gallery-item .video i:active {
  color: rgba(255, 154, 60, 0.6);
}

.gallery-item .video:hover video {
  opacity: 0.8;
  transition: opacity 0.2s ease-in-out;
}

.popup-video {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  height: 100%;
  width: 100%;
  display: none;
}

.gallery-card .popup-video video {
  position: fixed;
  top: 50vh;
  left: 50vw;
  height: 80vh;
  max-width: 95vw;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  border: 1px solid var(--accent-color);
  object-fit: cover;
  margin-top: 0;
}

.gallery-card .popup-video span {
  position: fixed;
  top: 5px;
  right: 20px;
  font-size: 5rem;
  color: #fff;
  font-weight: bolder;
  z-index: 100;
  cursor: pointer;
}

/* Media queries */
@media (max-width: 768px) {
  /* navigation */
  .container-nav {
    margin: 0 auto;
    padding: 0.1rem 0;
    font-size: 1rem;
  }

  .container-nav .ham-toggle {
    display: block;
  }

  .flex-menu {
    display: none;
  }

  .flex-menu.expand {
    display: flex;
    animation: appear 2s;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
  }
  .flex-menu .gap-li,
  .flex-menu .icons {
    display: none;
  }

  .flex-menu a {
    padding: 0.4rem;
  }

  .flex-menu a:active {
    color: var(--accent-color);
    background-color: var(--dark-hover);
  }

  /* Hero section */
  .hero-container {
    min-height: 75vh;
    justify-content: space-evenly;
  }

  #slideshow {
    opacity: 0.8;
  }

  .hero-text {
    gap: 2rem;
    backdrop-filter: none;
    color: #fff;
  }

  .hero-text h1 {
    text-shadow: 2px 2px 5px var(--primary-color-dark);
    font-family: "DM Sans", Arial, sans-serif;
    font-weight: 900;
    text-align: center;
    font-size: 3rem;
  }

  .hero-text p {
    text-shadow: 0px 0px 10px var(--primary-color-dark);
    text-align: center;
    font-weight: 700;
    font-size: 2rem;
  }

  .hero-btn {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .btn {
    margin: 0 0 0.5rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-color);
  }

  /* About section */
  .container-header {
    flex-direction: column;
    writing-mode: horizontal-tb;
    padding: 2rem 1rem 1rem;
  }

  .container-header h1.header-l {
    text-transform: lowercase;
    line-height: 0.8;
    margin-bottom: 1rem;
    writing-mode: horizontal-tb;
    font-family: "DM Sans", Arial, sans-serif;
    text-align: center;
    font-weight: 900;
    font-size: 5.5rem;
    color: #fff;
  }

  .span-highlight {
    display: inline-block;
    font-family: "DM Sans", Arial, sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    text-transform: uppercase;
    text-align: left;
    line-height: 1;
    color: var(--primary-color-dark);
  }

  .container-header p {
    font-size: 1.5rem;
    line-height: 1.6;
  }

  .about-wrapper {
    flex-direction: column;
    margin-top: 1.5rem;
    justify-content: center;
  }

  /* Services section */
  .services-card {
    flex-direction: column;
    gap: 0rem;
  }

  .card-text .text-normal {
    font-size: 1.2rem;
  }

  /* Contact section */
  .gmap {
    padding: 0;
  }

  .gmap iframe {
    height: 50vh;
  }

  /* Form */
  .form-wrap {
    margin: 1.8rem 0;
  }

  .form-wrap h2 {
    text-align: left;
  }

  .form-group {
    margin: 1.2rem 0;
  }

  input::placeholder,
  textarea::placeholder {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.5rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .form-group button.btn {
    font-size: 1.3rem;
    padding: 1rem;
  }

  /* Contact info */
  .con-info {
    gap: 2rem;
  }

  .con-info h2 {
    text-align: left;
  }

  .con-info p {
    margin-bottom: 0;
    line-height: 1.2;
    text-align: left;
    font-size: 1.3rem;
  }

  .con-info i {
    margin-right: 0.8rem;
  }

  /* Footer */
  .info-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .info-container li {
    font-size: 1rem;
  }

  .icon-con {
    align-items: center;
  }
  /* Portfolio */
  .gallery-card {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .gallery-wrapper {
    justify-content: center;
    align-items: center;
  }

  .gallery-item {
    width: calc(50% - 1rem);
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
  }

  .dropdown {
    margin-top: 1.2rem;
  }

  .gallery-container.container {
    margin: 2rem auto 0;
  }

  /* Video */
  .gallery-item .video i {
    font-size: 2.5rem;
  }

  .gallery-card .popup-video span {
    top: 2px;
    right: 15px;
    font-size: 4rem;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  /* Navigation */
  .container-nav {
    margin: 0.3rem auto;
    padding: 0.1rem 0.3rem;
    font-size: 1rem;
  }

  .flex-menu {
    justify-content: center;
    gap: 1rem;
  }

  .flex-menu a {
    padding: 0.4rem;
  }

  .flex-menu a:active {
    color: var(--accent-color);
    background-color: var(--dark-hover);
  }

  /* Hero section */
  #slideshow {
    opacity: 0.8;
  }

  .hero-text {
    gap: 2rem;
    backdrop-filter: none;
    color: #fff;
  }

  .hero-text h1 {
    font-family: "DM Sans", Arial, sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    text-shadow: 0px 0px 6px var(--primary-color-dark);
  }
  .hero-text p {
    font-size: 1.8rem;
    text-shadow: 0px 0px 6px var(--primary-color-dark);
  }

  .btn {
    backdrop-filter: blur(10px);
  }

  /* About section */
  .container-header {
    flex-direction: column;
    writing-mode: horizontal-tb;
    padding: 2rem 1rem 1rem;
  }

  .container-header h1 {
    line-height: 0.8;
    margin-bottom: 1rem;
    writing-mode: horizontal-tb;
    text-transform: lowercase;
    font-family: "DM Sans", Arial, sans-serif;
    text-align: center;
    font-weight: 900;
    font-size: 6rem;
    color: #fff;
  }

  .span-highlight {
    display: inline-block;
    font-family: "DM Sans", Arial, sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    text-transform: uppercase;
    text-align: left;
    line-height: 1;
    color: var(--primary-color-dark);
  }

  .container-header p {
    font-size: 1.5rem;
    line-height: 1.6;
  }

  /* Services section */
  .services-container.container-header {
    padding: 0 auto;
  }

  .services-wrapper {
    padding: 0.1rem 1.5rem;
  }

  .services-card {
    border-radius: 10px;
    overflow: hidden;
  }

  .card-text .text-normal {
    font-size: 1.3rem;
  }

  /* Contact section */
  .gmap {
    padding: 0 5rem;
  }

  .gmap iframe {
    height: 60vh;
  }

  /* Form */
  .form-wrap {
    margin: 1.5rem 1rem;
  }

  .form-wrap h2 {
    text-align: left;
  }

  .form-group {
    margin: 1.2rem 0;
  }

  input::placeholder,
  textarea::placeholder {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.5rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .form-group button.btn {
    font-size: 1.3rem;
    padding: 1rem;
  }

  /* Contact info*/
  .con-info {
    gap: 1.2rem;
  }

  .con-info h2 {
    margin-bottom: 1.2rem;
    text-align: left;
  }

  .con-info p {
    text-align: left;
    line-height: 1.2;
  }

  .con-info i {
    margin-right: 0.8rem;
  }

  /* Footer */
  .info-container {
    gap: 1.5rem;
  }

  .info-container li {
    font-size: 1rem;
  }
}

@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes nav-load {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}
