/********** Template CSS **********/
/* Font import (put in head ideally) */
/* @import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Lato:wght@400;700&display=swap"); */

:root {
  /* Brand colors based on your logo */
  --bs-primary: #9c7a3c; /* warm gold-brown */
  --bs-secondary: #3e3e3e; /* dark gray */
  --bs-success: #198754; /* keep if needed */
  --bs-info: #0dcaf0;
  --bs-warning: #d4af37; /* richer gold highlight */
  --bs-danger: #dc3545;
  --bs-light: #f5f5f5; /* light section background */
  --bs-dark: #2b2b2b; /* main text dark */
  --bs-white: #ffffff;

  /* Legacy / utility grays */
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;

  /* Font stacks */
  --bs-font-sans-serif: "Lato", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --bs-font-heading: "Playfair Display", serif;
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;

  /* Gradient variants */
  --bs-gradient: linear-gradient(135deg, #9c7a3c 0%, #d4af37 60%);
  --bs-gradient-dark: linear-gradient(135deg, #3e3e3e 0%, #9c7a3c 70%);
  --bs-gradient-soft: linear-gradient(
    135deg,
    rgba(156, 122, 60, 0.15) 0%,
    rgba(212, 175, 55, 0) 80%
  );
}

/* Typography overrides */
body {
  /* margin: 0; */
  font-family: var(--bs-font-sans-serif);
  /* font-size: 1rem;
  font-weight: 400;
  line-height: 1.5; */
  color: var(--bs-dark);
  background-color: var(--bs-white);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  /* margin-top: 0;
  margin-bottom: 0.5rem; */
  font-family: var(--bs-font-heading);
  /* font-weight: 400;
  line-height: 1.2; */
  color: var(--bs-secondary);
}

h1,
.h1 {
  font-size: calc(1.375rem + 1.5vw);
}
@media (min-width: 1200px) {
  h1,
  .h1 {
    font-size: 2.5rem;
  }
}
h2,
.h2 {
  font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 1200px) {
  h2,
  .h2 {
    font-size: 2rem;
  }
}
h3,
.h3 {
  font-size: calc(1.3rem + 0.6vw);
}
@media (min-width: 1200px) {
  h3,
  .h3 {
    font-size: 1.75rem;
  }
}
h4,
.h4 {
  font-size: calc(1.275rem + 0.3vw);
}
@media (min-width: 1200px) {
  h4,
  .h4 {
    font-size: 1.5rem;
  }
}
h5,
.h5 {
  font-size: 1.25rem;
}
h6,
.h6 {
  font-size: 1rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Utility for gradient backgrounds */
.bg-gradient-brand {
  background: var(--bs-gradient);
  color: #fff;
}
.bg-gradient-dark {
  background: var(--bs-gradient-dark);
  color: #fff;
}
.bg-gradient-soft {
  background: var(--bs-gradient-soft);
}

/* Button example using brand highlight */
.btn-brand {
  background: var(--bs-warning);
  color: var(--bs-secondary);
  border: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  transition: filter 0.2s ease;
}
.btn-brand:hover {
  filter: brightness(1.05);
}
.btn-outline-brand {
  background: transparent;
  color: var(--bs-secondary);
  border: 2px solid var(--bs-secondary);
}
.btn-outline-brand:hover {
  background: var(--bs-secondary);
  color: #fff;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/*** Button ***/
.btn {
  transition: 0.5s;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.sticky-top {
  top: -150px;
  transition: 0.5s;
}

.navbar {
  padding: 15px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

.navbar .navbar-nav .nav-link {
  margin-left: 30px;
  padding: 0;
  outline: none;
  color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
  color: var(--bs-white);
  background: var(--bs-primary);
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-left: 0;
    padding: 10px 0;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Hero Header ***/
.hero-header {
  margin-top: -100px;
  padding-top: 150px;
  background: url(../img/hero_bg.png) top center no-repeat;
  background-size: cover;
}

.hero-header .breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

.header-carousel {
  position: relative;
  padding: 45px 90px 45px 0;
}

.header-carousel::before {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  width: calc(50% + 45px);
  height: 100%;
  background: var(--bs-primary);
  z-index: -1;
}

.header-carousel .owl-dots {
  position: absolute;
  top: 50%;
  right: 38px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 5px 0;
  width: 15px;
  height: 15px;
  border: 2px solid var(--bs-white);
  transition: 0.5s;
}

.header-carousel .owl-dot.active {
  height: 30px;
  background: var(--bs-white);
}

/*** About ***/
.about-img {
  position: relative;
  overflow: hidden;
}

.about-img::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url(../img/bg-about-img.png) top left no-repeat;
  background-size: contain;
}

/*** Project ***/
.project-item img {
  transition: 0.5s;
}

.project-item:hover img {
  transform: scale(1.2);
}

.project-overlay {
  position: absolute;
  padding: 25px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: linear-gradient(rgba(255, 255, 255, 0.1) 50%, var(--bs-dark));
  z-index: 1;
}

/*** Service ***/
.service-item {
  position: relative;
  padding: 30px 25px;
  transition: 0.5s;
}

.service-item.bg-primary:hover {
  background: var(--bs-light) !important;
}

.service-item.bg-primary p {
  color: var(--bs-light);
  transition: 0.5s;
}

.service-item.bg-primary:hover p {
  color: var(--bs-secondary);
}

.service-item.bg-light:hover {
  background: var(--bs-primary) !important;
}

.service-item.bg-light p {
  color: var(--bs-secondary);
  transition: 0.5s;
}

.service-item.bg-light:hover p {
  color: var(--bs-light);
}

.service-item .service-img h3 {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0 12px 7px 0;
}

.service-item.bg-primary .service-img h3 {
  background: var(--bs-primary);
  color: var(--bs-white);
  transition: 0.5s;
}

.service-item.bg-primary:hover .service-img h3 {
  background: var(--bs-light);
  color: var(--bs-dark);
}

.service-item.bg-light .service-img h3 {
  background: var(--bs-light);
  color: var(--bs-dark);
  transition: 0.5s;
}

.service-item.bg-light:hover .service-img h3 {
  background: var(--bs-primary);
  color: var(--bs-white);
}

/*** Our Team ***/
.team-item img {
  transition: 0.5s;
}

.team-item:hover img {
  transform: scale(1.2);
}

.team-overlay {
  position: absolute;
  padding: 30px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: linear-gradient(rgba(255, 255, 255, 0.1) 50%, var(--bs-dark));
  z-index: 1;
}

.team-overlay small {
  display: inline-block;
  padding: 3px 15px;
  color: var(--bs-white);
  background: var(--bs-primary);
}

/*** Testimonial ***/
.testimonial-img {
  position: relative;
  padding: 45px 0 45px 90px;
}

.testimonial-img::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: calc(50% + 45px);
  height: 100%;
  background: var(--bs-primary);
  z-index: -1;
}

.testimonial-text h5 {
  position: relative;
  padding-left: 45px;
}

.testimonial-text h5::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 40px;
  height: 2px;
  background: var(--bs-primary);
}

.testimonial-carousel .owl-dots {
  position: absolute;
  height: 17px;
  bottom: 0;
  right: 0;
  left: auto;
}

.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin-left: 10px;
  width: 15px;
  height: 15px;
  background: var(--bs-white);
  border: 2px solid var(--bs-primary);
  transition: 0.5s;
}

.testimonial-carousel .owl-dot.active {
  width: 30px;
  background: var(--bs-primary);
}

@media (max-width: 768px) {
  .testimonial-carousel .owl-dots {
    left: 0;
    right: auto;
  }

  .testimonial-carousel .owl-dot {
    margin-right: 10px;
    margin-left: 0;
  }
}

/*** Newsletter ***/
.newsletter {
  background: url(../img/hero-bg.jpg) bottom right no-repeat;
  background-size: cover;
}

@media (min-width: 992px) {
  .newsletter .container {
    max-width: 100% !important;
  }

  .newsletter .newsletter-text {
    padding-right: calc(((100% - 960px) / 2) + 0.75rem);
  }
}

@media (min-width: 1200px) {
  .newsletter .newsletter-text {
    padding-right: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .newsletter .newsletter-text {
    padding-right: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

/*** Footer ***/
.footer .btn.btn-link {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.5);
  font-weight: normal;
  transition: 0.3s;
}

.footer .btn.btn-link:hover {
  color: var(--bs-white);
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .copyright {
  padding: 25px 0;
  font-size: 14px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: rgba(255, 255, 255, 0.5);
}

.footer .copyright a:hover {
  color: var(--bs-white);
}

.footer .footer-menu a {
  margin-right: 15px;
  padding-right: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .footer-menu a:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}

/*  */

.btn.primary {
  background: var(--bs-warning) !important;
  color: var(--bs-secondary) !important;
  border: 2px solid var(--bs-warning) !important;
  border-radius: var(--radius);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  transition: filter 0.2s ease;
  cursor: pointer;
}

.btn.primary:hover {
  filter: brightness(1.05);
}

.btn.outline {
  background: transparent;
  color: var(--bs-secondary);
  border: 2px solid var(--bs-secondary);
  border-radius: var(--radius);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn.outline:hover {
  background: var(--bs-secondary);
  color: var(--bs-white);
}
