/********** Onyx Planning Branding Only **********/

:root {
    /* Base surfaces */
    --light: #F4F5F6;         /* main background */
    --light-alt: #FFFFFF;     /* cards / panels */

    /* Structure / UI */
    --primary: #D9B24C;       /* gold — main accent color, links, buttons, highlights */
    --secondary: #7F7F7F;     /* grey — for secondary text, borders, dividers */
    --dark: #000000;           /* black — headings, key emphasis */

    /* Text */
    --text-color: #1A1A1A;    /* readable blackish text */
    --text-muted: #7F7F7F;

    /* Links */
    --link-color: var(--primary);
    --link-hover-color: #C5A13F;  /* darker gold on hover */

    /* Borders & UI helpers */
    --border-color: #D0D0D0;
    --focus-ring: rgba(217, 178, 76, 0.35);
}

/* Body & global font */
body, p, span, a, input, button, select, textarea {
    font-family: 'Inter', sans-serif !important;
    color: var(--text-color);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    font-weight: 600;
}

/* Banner floating at bottom */
.cookies-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--light-alt, #f8f9fa);
    border: 1px solid var(--border-color, #ddd);
    color: var(--text-color, #333);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    max-width: 500px;
    z-index: 9999;
    font-family: sans-serif;
}
.cookies-banner p {
    margin: 0;
    font-size: 0.9rem;
}

.cookies-banner a {
    color: var(--primary);
    text-decoration: underline;
}

.cookies-banner button {
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.cookies-banner button:hover {
    background-color: var(--accent-hover);
}
/* Modal floating at center */
#cookies-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.cookies-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

.cookies-modal.active {
    opacity: 1;
    pointer-events: auto;
}


.cookies-modal.show {
    display: flex; /* visible when "show" class is added */
}

.cookies-modal .modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 500px;
    text-align: center;
}

.cookies-modal .modal-text {
    margin-bottom: 15px;
    font-size: 1rem;
}

.cookies-modal .modal-content h2 {
    margin-top: 0;
    color: var(--dark);
}

.cookies-modal .modal-content p {
    margin-bottom: 15px;
}

.cookies-modal .modal-content label {
    display: block;
    margin: 10px 0;
    color: var(--text-color);
}

.cookies-modal-actions {
    text-align: right;
}

.cookies-modal-actions button {
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.cookies-modal-actions button:hover {
    background-color: var(--accent-hover);
}

/* Smaller, cleaner Save Preferences button */
.cookies-modal-actions .btn-sm {
    padding: 5px 12px;        /* smaller padding */
    font-size: 0.875rem;      /* slightly smaller font */
    font-weight: 500;         /* medium weight */
    border-radius: 6px;       /* consistent with your theme */
    transition: background-color 0.2s ease;
}

.cookies-modal-actions .btn-sm:hover {
    background-color: #C5A13F; /* darker gold on hover */
}


#change-cookies {
    color: var(--primary);       /* gold */
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

#change-cookies:hover {
    color: #C5A13F;              /* darker gold hover */
}

/* Privacy Policy link */
.cookies-modal .privacy-link {
    color: var(--primary);
    text-decoration: underline;
    font-size: 0.9rem;
}
.cookies-modal .privacy-link:hover {
    color: #C5A13F; /* darker gold hover */
}


/* Footer styling */
.site-footer {
    background-color: var(--secondary);  /* dark grey background */
    padding: 20px;
    text-align: center;
    color: var(--text-color);           /* gold text */
    font-family: 'Inter', sans-serif;
}

/* Footer link */
.site-footer a {
    color: var(--primary);              /* gold link */
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #C5A13F;                     /* darker gold on hover */
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
}
a:hover, a:focus {
    color: var(--link-hover-color);
    text-decoration: none;
}

/* Navbar */
.navbar, .navbar-nav .nav-link, .navbar-brand {
    font-family: 'Inter', sans-serif;
    color: var(--dark) !important;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}


/* Onyx topbar branding */
.bg-dark {
    background-color: var(--primary) !important; /* Onyx blue */
}

.text-light,
.text-light span,
.text-light i,
.text-light a {
    color: #ffffff !important;
}

/* Footer contact text – force white */
.footer p,
.footer p i {
    color: #ffffff !important;
}

/* Copyright bar – Onyx secondary + white text */
.copyright {
    background-color: var(--secondary) !important;
    color: #ffffff !important;
}

.copyright a {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6);
}

.copyright a:hover {
    color: var(--primary) !important; /* subtle Onyx blue hover */
    border-color: var(--primary);
}

/* Ensure Back-to-Top button stays fixed bottom-right */
.back-to-top {
    position: fixed !important;
    right: 30px !important;
    bottom: 30px !important;
    left: auto !important;
    top: auto !important;
    z-index: 9999;
}

/* Bootstrap buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--light);
}
.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--light);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    color: var(--light);
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Text utility classes override */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-light { color: var(--light) !important; }
.text-dark { color: var(--dark) !important; }

/* Form elements */
.form-control, .form-select {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    border-color: var(--secondary);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(58, 95, 140, 0.25);
}

/* background colours */


/*** 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;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--light);
}


.btn-outline-primary:hover {
    color: var(--light);
}

.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 ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@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;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(15, 66, 41, .6);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
/* Make carousel fit the viewport cleanly */
#header-carousel .carousel-item {
    height: 100vh; /* full screen height */
}

#header-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fills screen without distortion */
}
.page-header {
    background: linear-gradient(rgba(15, 66, 41, .6), rgba(15, 66, 41, .6)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Top Feature ***/
@media (min-width: 991.98px) {
    .top-feature {
        position: relative;
        margin-top: -80px;
        z-index: 1;
    }
}

/*** Services ***/
/* Desktop: overlay appears on hover, text color stays black or your default */
@media (min-width: 769px) {
  .service-item .service-text {
      background: rgba(255, 255, 255, 0);
      color: #000;
      transition: background 0.3s ease, color 0.3s ease;
  }
  .service-item:hover .service-text {
      background: rgba(15, 66, 41, 0.6);
      color: #fff;
  }
}

/* Mobile: overlay always visible once .visible is added */
@media (max-width: 768px) {
  .service-item .service-text {
      background: rgba(15, 66, 41, 0.6) !important; /* force visible overlay */
      color: #fff !important;                       /* force white text */
  }
  .service-item .service-text h4,
  .service-item .service-text p {
      color: #fff !important;                       /* make all text white */
  }
}

/*** Facts & Quote ***/
.facts,
.quote {
    background: rgba(15, 66, 41, .6);
}


/*** Service ***/
.service-item {
    position: relative;
    text-align: center;
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    transform: scale(1.2);
    transition: .3s;
    z-index: -1;
}

.service-item:hover .service-img img {
    transform: scale(1);
}

.service-item .service-text {
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .3s;
}

/* For hover on desktop */
.service-item:hover .service-text {
    background: rgba(15, 66, 41, 0.6);
    transition: background 0.3s ease;
}

/* For mobile or JS-triggered visibility */
.service-item.visible .service-text {
    background: rgba(15, 66, 41, 0.6);
    transition: background 0.3s ease;
}

.service-item .service-text h4,
.service-item .service-text p {
    transition: .3;
}

.service-item:hover .service-text h4 {
    color: #FFFFFF;
}

.service-item:hover .service-text p {
    color: var(--light);
}

.service-text .btn-square {
    visibility: hidden; /* Hides the whole div but preserves layout */
}

.service-item .service-text .btn-square {
    width: 100px;
    height: 100px;
    background: transparent;
    transition: .5s;
}

.service-item:hover .service-text .btn-square {
    background: var(--light);
}

.service-item .service-text .btn {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: var(--light);
    white-space: nowrap;
    overflow: hidden;
    transition: .3s;
}

.service-item:hover .service-text .btn {
    width: 112px;
}


/*** Project Portfolio ***/
#portfolio-flters {
    display: inline-block;
    background: var(--light);
    padding: 10px 15px;
}

#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--dark);
    border-color: var(--dark);
}

.portfolio-inner {
    height: 300px; /* Set your desired height */
    position: relative;
    overflow: hidden;
}

.portfolio-inner img {
  height: 100%;
  width: 100%;
  object-fit: cover; /* Crop image to fill without distortion */
}

.portfolio-inner::before,
.portfolio-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(15, 66, 41, .6);
    transition: .5s;
}

.portfolio-inner::after {
    left: auto;
    right: 0;
}

.portfolio-inner:hover::before,
.portfolio-inner:hover::after {
    width: 50%;
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.portfolio-inner:hover .portfolio-text {
    transition-delay: .3s;
    opacity: 1;
}

.portfolio-inner .portfolio-text .btn {
    background: var(--light);
    color: var(--primary);
}

.portfolio-inner .portfolio-text .btn:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Team ***/
.team-item {
    position: relative;
    overflow: hidden;
}

.team-item .team-text {
    position: absolute;
    width: calc(100% - 45px);
    left: -100%;
    bottom: 45px;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    left: 0;
    opacity: 1;
}

.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}

.team-item .team-img .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-img .team-social {
    transition-delay: .3s;
    opacity: 1;
}


/*** Testimonial ***/

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 4px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #072A19;
}

.copyright a {
    color: #FFFFFF;
}

.copyright a:hover {
    color: var(--primary);
}

.lb-data,
.lb-details,
.lb-caption {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    font-size: 14px;
}