/********** Template CSS **********/

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .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: .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: .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: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Header ***/
.hero-header {
    margin-top: -100px;
    padding-top: 150px;
}

.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: .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: transparent;
}


/*** Project ***/
.project-item img {
    transition: .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, .1) 50%, var(--bs-dark));
    z-index: 1;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 30px 25px;
    transition: .5s;
}

.service-item.bg-primary:hover {
    background: var(--bs-light) !important;
}

.service-item.bg-primary p {
    color: var(--bs-light);
    transition: .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: .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: .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: .5s;
}

.service-item.bg-light:hover .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
}


/*** Our Team ***/
.team-item img {
    transition: .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, .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: .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 {
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255,.5);
    font-weight: normal;
    transition: .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(255, 255, 255, .1);
}

.footer .copyright a {
    color: rgba(255, 255, 255,.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, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


/*** Royal Gold Theme: gold / black / white ***/
:root {
    --gold-100: #fdf6dc;
    --gold-200: #f3dc8c;
    --gold-300: #ecc752;
    --gold-400: #daa520;
    --gold-500: #c8931b;
    --gold-600: #a37413;
    --black: #111111;
    --black-2: #1a1a1a;

    /* fine metallic grain (SVG noise, no image file needed) */
    --gold-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.92 0 0 0 0 0.55 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

    /* GOLD: sparkle + grain + diamond lattice + metallic sheen */
    --gold-texture: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-400) 45%, var(--gold-500) 100%);

    /* BLACK: deep black with gold dust and a faint gold diamond lattice */
    --black-texture: linear-gradient(180deg, #1a1a1a, #0d0d0d);

    /* WHITE: clean white with a whisper of gold lattice */
    --white-texture: #f6f6f6;

    --gold-metal: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-400) 45%, var(--gold-500) 100%);
    --gold-edge: linear-gradient(90deg, var(--gold-600), var(--gold-200), var(--gold-600));
}

body {
    color: #444;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--black);
}

/* ---------- GOLD surfaces ---------- */
.bg-primary:not(.hero-header):not(.newsletter),
.header-carousel::before,
.testimonial-img::before,
.service-item.bg-light:hover,
.team-overlay small,
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    background: var(--gold-texture) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 240, 190, .25), inset 0 0 60px rgba(120, 80, 0, .18);
}

/* text on gold is black */
.bg-primary:not(.hero-header):not(.newsletter) .text-white,
.bg-primary:not(.hero-header):not(.newsletter) .text-light,
.bg-primary:not(.hero-header):not(.newsletter) h1,
.bg-primary:not(.hero-header):not(.newsletter) h2,
.bg-primary:not(.hero-header):not(.newsletter) h3,
.bg-primary:not(.hero-header):not(.newsletter) h4,
.bg-primary:not(.hero-header):not(.newsletter) h5,
.bg-primary:not(.hero-header):not(.newsletter) p,
.bg-primary:not(.hero-header):not(.newsletter) .fa,
.service-item.bg-primary p,
.service-item.bg-light:hover p,
.service-item.bg-light:hover .service-img h3,
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--black) !important;
}

/* ---------- BLACK surfaces: hero band, newsletter, footer, hovered gold service card ---------- */
.newsletter,
.footer,
.service-item.bg-primary:hover {
    background: var(--black-texture) !important;
}

/* hero band: white texture */
.hero-header {
    background: var(--white-texture) !important;
}

.hero-header {
    border-bottom: 3px solid;
    border-image: var(--gold-edge) 1;
}

.newsletter {
    border-top: 3px solid;
    border-bottom: 3px solid;
    border-image: var(--gold-edge) 1;
}

.newsletter h1,
.newsletter p,
.service-item.bg-primary:hover p {
    color: #fff !important;
}

.newsletter .text-primary {
    color: var(--gold-300) !important;
}

.hero-header h1,
.hero-header h4,
.hero-header h5,
.hero-header p,
.hero-header .breadcrumb-item,
.hero-header .breadcrumb-item.active,
.hero-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--black) !important;
}

.hero-header .text-primary,
.hero-header .breadcrumb-item a {
    color: var(--gold-500) !important;
}

.hero-header .border-white {
    border-color: var(--gold-400) !important;
}

.hero-header h5.border {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.hero-header .btn-square {
    background: #fff;
}

/* ---------- WHITE surfaces ---------- */
.bg-light:not(.dropdown-menu):not(.px-2):not(.service-item):not(.hero-header),
.service-item.bg-light,
.d-flex.align-items-center.bg-light {
    background: var(--white-texture) !important;
}

.d-flex.align-items-center.bg-light,
.service-item.bg-light {
    box-shadow: inset 0 0 0 1px rgba(218, 165, 32, .35);
}

.navbar .dropdown-menu.bg-light {
    background: #fff !important;
    border: 1px solid rgba(218, 165, 32, .35);
}

#spinner {
    background: #fff !important;
}

/* ---------- Service card labels ---------- */
.service-item .service-img h3 {
    background: var(--gold-metal) !important;
    color: var(--black) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.service-item.bg-primary:hover .service-img h3 {
    background: var(--black) !important;
    color: var(--gold-300) !important;
    box-shadow: 0 0 0 1px var(--gold-400);
}

/* ---------- Highlighted word in section titles ---------- */
.text-primary.bg-light.px-2,
.text-primary.bg-white.px-2 {
    background: var(--gold-metal) !important;
    color: var(--black) !important;
    -webkit-text-fill-color: var(--black);
    box-shadow: inset 0 0 0 1px rgba(255, 240, 190, .5), 0 2px 8px rgba(0, 0, 0, .25);
}

/* on a gold panel the badge inverts to black with gold text */
.bg-primary:not(.hero-header):not(.newsletter) .text-primary.px-2 {
    background: var(--black-texture) !important;
    color: var(--gold-300) !important;
    -webkit-text-fill-color: var(--gold-300);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

/* ---------- Buttons ---------- */
.btn-primary {
    color: var(--black);
    background: var(--gold-texture);
    border-color: var(--gold-500);
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 245, 200, .6), 0 2px 6px rgba(0, 0, 0, .25);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-check:focus + .btn-primary,
.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    color: var(--gold-300);
    background: var(--black-texture);
    border-color: var(--gold-400);
    box-shadow: 0 0 0 .2rem rgba(218, 165, 32, .35);
}

.btn-outline-primary {
    border-color: var(--gold-400);
    color: var(--gold-500);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.btn-outline-primary:active,
.btn-outline-primary.active {
    color: var(--black);
    background: var(--gold-metal);
    border-color: var(--gold-300);
}

.back-to-top {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

/* ---------- Footer ---------- */
.footer {
    border-top: 3px solid;
    border-image: var(--gold-edge) 1;
}

.footer h5.text-white,
.footer h1.text-white {
    color: var(--gold-300) !important;
    letter-spacing: 1px;
}

.footer .btn.btn-link:hover,
.footer .copyright a:hover {
    color: var(--gold-200);
}

.footer .copyright {
    border-top: 1px solid rgba(218, 165, 32, .25);
}

.footer .btn-outline-primary {
    border-color: rgba(218, 165, 32, .6);
    color: var(--gold-300);
}

/* ---------- Navbar: black bar flowing into the hero, white links, gold accents ---------- */
.container-fluid.sticky-top,
.container-fluid.sticky-top.bg-white {
    background: rgba(17, 17, 17, .96) !important;
}

.navbar {
    border-bottom-color: rgba(218, 165, 32, .4) !important;
}

.navbar .navbar-brand h1 {
    color: var(--gold-300) !important;
    letter-spacing: 1px;
}

.navbar .navbar-nav .nav-link {
    position: relative;
    color: #fff;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--gold-300);
}

.navbar .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -6px;
    height: 2px;
    background: var(--gold-metal);
    transition: right .4s;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    right: 0;
}

.navbar-light .navbar-toggler {
    border-color: var(--gold-400);
    background: var(--gold-metal);
}

.navbar .dropdown-toggle::after {
    color: var(--gold-300);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link::after {
        display: none;
    }
}

/* ---------- Carousel & testimonial dots ---------- */
.header-carousel .owl-dot {
    border-color: var(--black);
}

.header-carousel .owl-dot.active {
    background: var(--black);
}

.testimonial-carousel .owl-dot {
    border-color: var(--gold-400);
}

.testimonial-carousel .owl-dot.active {
    background: var(--gold-metal);
}

.testimonial-text h5::before {
    background: var(--gold-metal);
}

/* ---------- Project & team overlays: fade to black, gold edge on hover ---------- */
.project-overlay,
.team-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .92));
}

.project-item:hover,
.team-item:hover {
    outline: 2px solid var(--gold-400);
    outline-offset: -2px;
}

/* ---------- Forms ---------- */
.form-control {
    border-color: #ddd;
}

.form-control:focus {
    border-color: var(--gold-400);
    box-shadow: 0 0 0 .25rem rgba(218, 165, 32, .25);
}


/*** Services list, sectors strip, gallery ***/
.service-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    font-family: "Space Grotesk", sans-serif;
    color: var(--black);
}

.sectors h4 {
    letter-spacing: 1px;
}

.sectors-list span {
    display: inline-block;
    margin: 4px 6px;
    padding: 8px 18px;
    background: var(--black);
    color: var(--gold-300);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    letter-spacing: .5px;
}

.gallery-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 0 solid var(--gold-400);
    transition: border-width .3s;
    pointer-events: none;
}

.gallery-item:hover::after {
    border-width: 3px;
}

.team-overlay h4 {
    color: #fff !important;
}


/*** Logo ***/
.brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(218, 165, 32, .35);
}

.navbar .navbar-brand h1 {
    font-size: 26px;
    margin: 0;
}

.footer-brand {
    text-decoration: none;
}

.footer-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, .35);
}

.spinner-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    animation: logoPulse 1.4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(.94); opacity: .75; }
    50% { transform: scale(1.04); opacity: 1; }
}

@media (max-width: 575.98px) {
    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .navbar .navbar-brand h1 {
        font-size: 20px;
    }
}
