/* ========================= Global Styling ========================= */

/* Prevent horizontal overflow */
html,
body {
overflow-x: hidden;
}

.display-7 {
font-size: 25px !important;
font-weight: bold !important;
}

/* Hide .footer-contact-section on post ID 68 - contact page */
body.page-id-68 .footer-contact-section {
display: none !important;
}


html {
scroll-padding-top: 123.61px;
scroll-behavior: smooth;
/* optional, for nice scrolling */
}


.pt-12 {
padding-top: 12rem;
}

.zindex-100 {
z-index: 100 !important;
}

.site-hero-home {
position: relative !important;
overflow: hidden !important;
}

.site-hero {
margin-top: -125px !important;
}

/* Base button styling */
.tangible-paginator-button {
padding: 14px 22px !important;
border: 1px solid transparent !important;
cursor: pointer !important;
margin: 6px !important;
font-size: 18px !important;
border-radius: 8px !important;
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

/* Make button 1 and 3 look like Bootstrap primary */
.tangible-paginator-button:nth-child(1),
.tangible-paginator-button:nth-child(3) {
background-color: #0d6efd !important;
border-color: #0d6efd !important;
color: #fff !important;
}

.tangible-paginator-button:nth-child(1):hover,
.tangible-paginator-button:nth-child(3):hover {
background-color: #0b5ed7 !important;
border-color: #0a58ca !important;
color: #fff !important;
}

/* Make button 2 and 4 look like Bootstrap secondary */
.tangible-paginator-button:nth-child(2),
.tangible-paginator-button:nth-child(4) {
background-color: #6c757d !important;
border-color: #6c757d !important;
color: #fff !important;
}

.tangible-paginator-button:nth-child(2):hover,
.tangible-paginator-button:nth-child(4):hover {
background-color: #5c636a !important;
border-color: #565e64 !important;
color: #fff !important;
}

/* Highlight active button */
.tangible-paginator-button.active {
box-shadow: 0 0 0 0.35rem rgba(13, 110, 253, .25) !important;
background-color: #0d6efd !important;
border-color: #0d6efd !important;
color: #fff !important;
padding: 14px 22px !important;
margin: 6px !important;
font-size: 18px !important;
border-radius: 8px !important;
cursor: pointer !important;
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

.tangible-paginator-button.active {
background-color: var(--bs-secondary) !important;
border-color: var(--bs-secondary) !important;
color: white !important;
}

/* ========================= Header Styling ========================= */

/* Default state */
.header-custom {
width: 100%;
transition: all 0.3s ease-in-out;
z-index: 1030;
}

.header-custom .nav-link {
color: inherit;
transition: color 0.3s ease-in-out;
}

/* Sticky state (after scroll threshold) */
.header-custom.sticky {
position: fixed;
top: 0;
left: 0;
background: white !important;
}

.header-custom.sticky .nav-link {
color: black !important;
}


.nav-link {
color: var(--bs-secondary);
}

.nav-link:hover {
color: #99CB67 !important;
}

/* ---- Mega Menu Styling ---- */
.navbar .dropdown-mega .mega-heading {
font-size: 1.05rem !important;
font-weight: 700 !important;
color: #009953 !important;
/* Always green */
text-decoration: none !important;
transition: color 0.2s ease-in-out, text-shadow 0.2s ease-in-out !important;
cursor: pointer !important;
}

.mega-links li a:hover {
background-color: transparent !important;
color: #009953 !important;
/* Hover links green */
}

.mega-links {
padding: 0 !important;
margin: 0 !important;
font-size: 16px !important;
list-style: none !important;
}

.navbar .dropdown-mega .mega-heading:hover {
color: #009953 !important;
/* Stay green on hover */
text-shadow: 0 0 0.5px #007bff !important;
}

.navbar .dropdown-mega .mega-heading.active,
.navbar .dropdown-mega .mega-heading[aria-current="page"] {
color: #009953 !important;
/* Stay green when active */
}

.navbar .dropdown-mega .mega-links {
margin-top: 0.25rem !important;
padding-left: 0 !important;
}

.navbar .dropdown-mega .mega-links a {
font-size: 0.95rem !important;
font-weight: 400 !important;
color: #444 !important;
padding: 0.35rem 0 !important;
text-decoration: none !important;
display: block !important;
transition: color 0.2s ease-in-out !important;
}

.navbar .dropdown-mega .mega-links a:hover {
color: #009953 !important;
/* Hover green */
}

/* Desktop grid for mega menu */
@media (min-width: 992px) {
.navbar {
position: relative !important;
}

.navbar .dropdown-mega>.dropdown-menu.mega-menu {
position: absolute !important;
top: 100% !important;
left: 0 !important;
margin: 0 auto !important;
display: none !important;
background: #fff !important;
padding: 1rem !important;
border-radius: 0 0 0.5rem 0.5rem !important;
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15) !important;
min-width: 960px !important;
/* Keep wide layout */
max-width: 90vw !important;
width: auto !important;
z-index: 999 !important;
}

.navbar .dropdown-mega:hover>.dropdown-menu.mega-menu,
.navbar .dropdown-mega:focus-within>.dropdown-menu.mega-menu {
display: block !important;
}

.navbar .dropdown-mega .mega-container {
display: grid !important;
grid-template-columns: repeat(4, 1fr) !important;
/* 4 equal columns */
gap: 0.5rem !important;
/* Space between columns and rows */
}

.navbar .dropdown-mega .mega-col {
display: flex !important;
flex-direction: column !important;
min-width: 0 !important;
}

.navbar .dropdown-mega .mega-col a {
display: block !important;
white-space: normal !important;
overflow-wrap: break-word !important;
}
}

.mega-menu .service-item {
padding: 10px 15px;
}

/* Bigger icons inside mega menu */
.mega-menu .service-icon img {
width: 30px;
/* increase size */
height: 30px;
/* keep them square */
object-fit: contain;
}

.mega-menu .service-icon i {
font-size: 1.5rem;
/* scale up icon fonts (e.g. Font Awesome) */
line-height: 1;
color: #000;
/* keep consistent with text */
}


.mega-menu .mega-btn a.btn {
font-weight: 600;
border-radius: 4px;
}

/* Make the caret toggle sit closer to the parent text */
.caret-toggle {
padding: 0;
/* remove default link padding */
margin-left: -0.25rem;
/* pull it closer */
line-height: 1;
display: inline-flex;
align-items: center;
}

.caret-toggle::after {
display: inline-block;
margin-left: .25rem;
vertical-align: middle;
content: "";
border-top: .35em solid;
border-right: .35em solid transparent;
border-left: .35em solid transparent;
}




/* ========================= Homepage Styling ========================= */

/* Scope everything to the hero only */
.site-hero-home {
position: relative;
/* containing block for abs-pos children */
overflow: hidden;
/* prevent bleed */
z-index: 0;
/* baseline */
isolation: isolate;
/* create a new stacking context */
}

.site-hero-home .bg-video {
position: absolute;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
transform: translate(-50%, -50%);
object-fit: cover;
z-index: 0;
/* behind overlay + content */
}

/* Only the hero gets the overlay */
.site-hero-home::after {
content: "";
position: absolute;
inset: 0;
/* shorthand for top/left/right/bottom:0 */
background: rgba(0, 0, 0, 0.45);
z-index: 1;
}

/* Ensure the hero content sits above the overlay */
.site-hero-home>.container {
position: relative;
z-index: 2;
}

/* ========================= Blog Category Styling ========================= */


/* ========================= Category Styling ========================= */

.btn-cta {
background-color: #A4C639;
color: #fff;
border: none;
padding: 0.65rem 1.5rem;
font-weight: 600;
font-size: 0.95rem;
border-radius: 50px;
transition: background-color 0.3s ease, transform 0.2s ease;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
background-color: #8fb42b;
transform: translateY(-1px);
color: #fff;
}

.btn-outline-cta {
border: 2px solid #A4C639;
color: #A4C639;
background-color: transparent;
border-radius: 50px;
padding: 0.65rem 1.5rem;
font-weight: 600;
font-size: 0.95rem;
transition: all 0.3s ease;
}

.btn-outline-cta:hover {
background-color: #A4C639;
color: #fff;
}

.hover-shadow:hover {
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.075);
transition: box-shadow 0.3s ease;
}

.transition {
transition: all 0.3s ease;
}

.object-fit-cover {
object-fit: cover;
}

.border:hover {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
}

/* ========================= Service Page Styling ========================= */

.hero-section {
position: relative;
height: 320px;
overflow: hidden;
}

.hero-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url('https://greengatemetal.co.uk/wp-content/uploads/2025/09/Greengate-3-scaled-e1714639103143.jpg') center center / cover no-repeat;
}

.hero-overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.45);
}

.service-hero-title {
font-weight: 700 !important;
position: relative !important;
z-index: 2 !important;
font-size: 3.5rem;
}

.service-breadcrumb-colour {
z-index: 2 !important;
color: white !important;
}

.service-breadcrumb-colour a {
z-index: 2 !important;
color: white !important;
text-decoration: none !important;
}



.hero-section .container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
}

/* ========================= Single Aerospace Metal Fabrication Sector Page Styling ========================= */



/* ========================= Single Post Styling ========================= */

.blogpost-section .blog-text-section h2 {
color: var(--bs-secondary) !important;
font-weight: bold !important;
margin-top: 1rem !important;
margin-bottom: 1rem !important;
}

.blogpost-section .blog-text-section a {
color: var(--bs-secondary) !important;
}

.blogpost-section .blog-text-section img {
margin-top: 1rem !important;
margin-bottom: 1rem !important;
border-radius: 10px !important;
}

/* Mega Menu Styling */

/* Full-width mega menu — starts flush with the left of the viewport */
.mega-menu-content {
background-color: white !important;
width: 100vw !important;
left: 0 !important;
right: 0 !important;
position: absolute !important;
top: 100% !important;
/* directly below navbar */
margin-top: 0 !important;
padding: 0 !important;
/* no padding inside the dropdown container */
border: none !important;
box-shadow: none !important;
border-radius: 0 !important;
z-index: 9999;
transform: translateX(calc(-50vw + 50%));
/* align perfectly with viewport edge */
}

/* Inner layout — horizontally centred container */
.mega-menu-inner {
display: flex;
justify-content: center;
/* centres content horizontally */
align-items: flex-start;
flex-wrap: wrap;
gap: 0;
width: 100%;
max-width: 1320px;
/* optional: match Bootstrap's container size */
margin: 0 auto;
/* keeps it centred */
padding: 0;
/* no extra padding */
}

/* Remove dropdown caret */
.navbar-nav .nav-item.menu-mega>.dropdown-toggle::after,
.navbar .nav-item.menu-mega>.dropdown-toggle::after,
.nav-item.menu-mega>.dropdown-toggle::after,
.menu-mega>.dropdown-toggle::after,
.dropdown-toggle::after {
content: none !important;
display: none !important;
border: none !important;
background: none !important;
width: 0 !important;
height: 0 !important;
}

/* Align text and chevron neatly */
.menu-mega>.dropdown-toggle {
display: inline-flex;
align-items: center;
gap: 0.35rem;
}

/* Ensure navbar stays above dropdown */
.navbar {
position: relative;
z-index: 10000;
}

/* Smooth fade/slide for menu visibility */
.mega-menu-content {
transition: opacity 0.2s ease, transform 0.2s ease;
transform: translateY(10px);
opacity: 0;
}

.nav-item.menu-mega.show .mega-menu-content {
opacity: 1;
transform: translateY(0);
}

/* Allow dropdown to stretch across viewport */
.nav-item.menu-mega {
position: static !important;
}

.nav-item.menu-mega .dropdown-menu {
left: 0 !important;
right: 0 !important;
transform: none !important;
padding: 0 !important;
border: none !important;
box-shadow: none !important;
border-radius: 0 !important;
}

.services-template .carousel-item img { height: 25rem!important;object-fit:cover!important;}

.lc-mega-nav > li > a {
padding: 0!important;
font-size: 1rem !important;
}

.lc-mega-nav > li > a:hover {
	color: var(--bs-primary) !important;
}

#site-footer a:hover {
	color: var(--bs-primary) !important;
}