@font-face {
    font-family: 'Lato';
    src: url('../Fonts/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../Fonts/Lato-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../Fonts/Lato-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../Fonts/Lato-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-blue: #0A72B2;
    --dark-blue: #085585;
    /* For hover or darker text */
    --light-bg: #def0f9;
    --text-color: #555555;
    --footer-bg: #00568e;
    /* Footer bottom bar color */
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 900;
    color: var(--primary-blue);
}

p {
    font-weight: 400;
}

/* Header & Navbar */
.navbar {
    padding: 1rem 0;
    background-color: #ffffff;
}

.navbar-brand img {
    max-height: 60px;
}

.nav-link {
    color: #333333;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-item.active .nav-link,
.nav-link:hover {
    color: #ffffff;
    background-color: var(--primary-blue);
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        padding: 1rem;
        border-top: 1px solid #eaeaea;
        margin-top: 0.5rem;
        border-radius: 8px;
    }
    .navbar-nav {
        align-items: stretch !important;
        width: 100%;
        text-align: center;
        gap: 0.25rem;
    }
    .nav-link {
        border-radius: 4px;
        padding: 0.75rem 1rem !important;
    }
}

/* Button */
.btn-primary-custom {
    background-color: var(--primary-blue);
    border: none;
    color: #fff;
    padding: 10px 30px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.btn-primary-custom:hover {
    background-color: var(--dark-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero-section {
    background-image: url('../img/home/main_homepage.webp');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

/* Experts Section */
.experts-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.scope-bg {
    position: absolute;
    top: 50%;
    left: -220px;
    transform: translateY(-55%);
    opacity: 0.3;
    max-width: 650px;
    z-index: -1;
}

.experts-section h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.experts-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Services Section */
.services-section {
    background-color: var(--light-bg);
    padding: 5rem 0;
    text-align: center;
    border-bottom: 15px solid var(--primary-blue);
}

.services-section h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.service-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    height: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover {
    background-color: var(--primary-blue);
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-card-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Pseudo-element for background watermark using relative paths with raw spaces */
.service-card::after {
    content: "";
    position: absolute;
    right: -5%;
    bottom: 12%; /* moved up from -5% to make the icon more visible */
    width: 75%;
    height: 75%;
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    opacity: 0.9; /* high opacity since we color it exactly the light-blue shade #def0f9 */
    filter: brightness(0) saturate(100%) invert(91%) sepia(13%) saturate(464%) hue-rotate(185deg) brightness(101%) contrast(97%);
    transform: rotate(-15deg);
    transform-origin: center center; /* rotate from center for better balance */
    pointer-events: none;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
}

.service-card:hover::after {
    transform: rotate(-5deg) scale(1.05);
    opacity: 0.15;
}

.card-damage-prevention::after {
    background-image: url("../img/services-icons/damagepreventionicon.webp");
}

.card-pipeline-inspections::after {
    background-image: url("../img/services-icons/pipelineinspectionsicon.webp");
}

.card-regulatory-compliance::after {
    background-image: url("../img/services-icons/regulatorycomplianceicon.webp");
}

.card-uav-mapping::after {
    background-image: url("../img/services-icons/uavandmappingservicesicon.webp");
}

.service-card h4 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    color: var(--primary-blue);
    line-height: 1.1;
    transition: color 0.3s ease;
}

.service-card:hover h4 {
    color: #ffffff;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card ul li {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #333333;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-card:hover ul li {
    color: #ffffff;
}

.service-card ul li::before {
    content: "> ";
    color: #555555;
    font-weight: 700;
    margin-right: 6px;
    transition: color 0.3s ease;
}

.service-card:hover ul li::before {
    color: #ffffff;
}

.btn-learn-more {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover .btn-learn-more {
    background-color: #ffffff;
    color: var(--primary-blue);
}

.service-card:hover .btn-learn-more:hover {
    background-color: var(--dark-blue);
    color: #ffffff;
    border-color: #ffffff;
}

/* Safety Section */
.safety-section {
    padding: 6rem 0;
}

.safety-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.safety-section p {
    margin-bottom: 1.5rem;
}

.safety-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.logos-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.logos-container img {
    max-height: 60px;
    object-fit: contain;
}

/* Call Before You Dig Section */
.call-section {
    display: flex;
    flex-wrap: wrap;
}

.call-left {
    flex: 1 1 50%;
    background-image: url("../img/home/call-before-you-dig.webp");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
}

.call-left::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
}

.call-left h2 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.call-right {
    flex: 1 1 50%;
    background-color: var(--light-bg);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.call-right h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.call-right p {
    margin-bottom: 1.5rem;
}

.call-number {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.25rem;
}

.call-number a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
}

.call-number a:hover {
    text-decoration: underline;
}

/* Footer Section */
.footer-links-section {
    padding: 4rem 0;
}

h5.footer-heading {
    font-size: 1rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.social-icons a {
    color: #333;
    font-size: 1.2rem;
    margin-right: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--primary-blue);
    transform: scale(1.15);
}

.footer-bottom {
    background-color: var(--footer-bg);
    color: #ffffff;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 991px) {

    .call-left,
    .call-right {
        flex: 1 1 100%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
}

/* Contact Page Styles */
.contact-hero {
    background-image: url('../img/common/page-hero.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 15vh;
    padding-bottom: 25vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.2);
}

.contact-hero h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 4rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin: 0;
    font-weight: 900;
}

.contact-sections-wrapper {
    position: relative;
    overflow: hidden;
}

.contact-scope-bg {
    position: absolute;
    left: -150px;
    top: 28%; /* shifted up to make 60-70% of it fall in contact-info-section */
    transform: translateY(-50%);
    max-width: 500px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 2;
}

.contact-info-section .container,
.team-section .container {
    position: relative;
    z-index: 3;
}

.contact-info-section {
    padding: 5rem 0;
    position: relative;
}

.contact-details h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-map-container {
    padding-left: 2rem;
}

@media (max-width: 991px) {
    .contact-hero {
        padding-top: 10vh;
        padding-bottom: 20vh;
    }
    .contact-map-container {
        padding-left: 0;
        margin-top: 2rem;
    }

    .contact-hero h1 {
        font-size: 3rem;
    }
}

.team-section {
    background-color: #f7f7f7;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.team-title {
    font-size: 2rem;
    color: var(--primary-blue);
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.team-member {
    margin-bottom: 1.5rem;
}

.team-member h5 {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
}

.team-member span.role {
    font-weight: 900;
    color: #333;
}

.team-member p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
}

/* Base Mobile Responsive Overrides */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* About Page Styles */
.about-hero {
    background-image: url('../img/common/page-hero.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    /* Pushing content slightly upper */
    padding-top: 15vh;
    padding-bottom: 25vh;
    display: flex;
    justify-content: center;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0,0,0,0.2);
}

.about-hero h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 4rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    margin: 0;
    font-weight: 900;
}

@media (max-width: 991px) {
    .about-hero {
        padding-top: 10vh;
        padding-bottom: 20vh;
    }
    .about-hero h1 { font-size: 3rem; }
}

.about-content-section {
    padding: 6rem 0;
    overflow: hidden;
}

.about-scope-bg {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-40%, -50%);
    max-width: 500px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

.about-content-section p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.privacy-content-section {
    padding: 5rem 0;
    overflow: hidden;
}

.privacy-policy-content {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;
}

.privacy-policy-content h2,
.privacy-policy-content h3 {
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-policy-content h2:first-child {
    margin-top: 0;
}

.privacy-policy-content ul,
.privacy-policy-content ol {
    padding-left: 1.4rem;
    margin-bottom: 1.5rem;
}

.privacy-policy-content li {
    margin-bottom: 0.4rem;
}

.privacy-policy-content a {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
}

.privacy-policy-content a:hover {
    text-decoration: underline;
}

/* Services Page Styles */
.services-hero {
    background-image: url('../img/common/page-hero.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 15vh;
    padding-bottom: 25vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0,0,0,0.2);
}

.services-hero h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 4rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    margin: 0;
    font-weight: 900;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .services-hero {
        padding-top: 10vh;
        padding-bottom: 20vh;
    }
    .services-hero h1 { font-size: 3rem; }
}

.services-content-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.services-page-card {
    background-color: var(--light-bg) !important;
    box-shadow: none !important;
    border: none !important;
}

.services-page-card:hover {
    background-color: var(--primary-blue) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.services-page-card::after {
    display: none !important;
}

/* Damage Prevention Sub-page Styles */
.services-hero.flex-column {
    display: flex;
    flex-direction: column;
}

.services-hero .hero-subtitle {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    text-align: center;
}

@media (max-width: 991px) {
    .services-hero .hero-subtitle {
        font-size: 1.3rem;
    }
}

.sub-nav-section {
    background-color: var(--light-bg);
    border-bottom: 4px solid var(--primary-blue);
}

.sub-nav-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sub-nav-list li a {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, border-bottom-color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    padding: 2px 0;
    border-bottom: 2px solid transparent;
}

.sub-nav-list li a:hover {
    color: var(--dark-blue);
    border-bottom-color: var(--dark-blue);
    transform: translateY(-1px);
}

.sub-service-section {
    padding: 5rem 0;
    border-bottom: 1px solid #eaeaea;
}

.bg-light-alt {
    background-color: #fcfdfe;
}

.sub-service-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.sub-service-list {
    list-style: none;
    padding-left: 0;
}

.sub-service-list li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--text-color);
    line-height: 1.4;
    position: relative;
    padding-left: 1.25rem;
}

.sub-service-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text-color);
    font-weight: 700;
}

.pdf-map-link {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: underline;
    font-size: 1.05rem;
    transition: color 0.2s;
}

.pdf-map-link:hover {
    color: var(--dark-blue);
}

.image-caption {
    font-size: 0.8rem;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* Offset scrolling for anchor links to prevent header overlap */
.sub-service-section {
    scroll-margin-top: 20px;
}
