/* HUMANSHIELD STYLE - REFINED & FIXED */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #D81324;
    /* Safety Red */
    --primary-hover: #B20D1B;
    --dark: #1A1A1A;
    --grey-text: #4A4A4A;
    --concrete: #F4F4F4;
    --white: #FFFFFF;
    --border: #E0E0E0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.bg-darker {
    background-color: var(--dark) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--dark) 0%, #333 100%) !important;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.text-marine-500 {
    color: var(--primary) !important;
}

.text-marine-400 {
    color: var(--primary-hover) !important;
}

.hover-up {
    transition: transform 0.3s ease;
}

.hover-up:hover {
    transform: translateY(-5px);
}

.page-header {
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 4px solid var(--primary);
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--dark);
    background-color: var(--concrete);
    /* Subtle noise texture */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23000000' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* UTILS */
.container-custom {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
}

/* FONTS */
body {
    font-family: 'Barlow', sans-serif;
    color: var(--grey-text);
}

/* HEADER & NAV REDESIGN */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.brand-logo {
    text-decoration: none;
    color: var(--dark);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    /* Increased gap */
    height: 100%;
}

.nav-item-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.nav-link-custom {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 0 5px;
    transition: 0.3s;
}

.nav-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: #000;
    line-height: 1.1;
    letter-spacing: -0.5px;
    transition: 0.3s;
}

.nav-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 0.75rem;
    color: #000;
    /* Changed to black as requested */
    font-weight: 600;
    line-height: 1.2;
    transition: 0.3s;
    opacity: 0.7;
    /* Added slight opacity for hierarchy, still feels black */
}

/* Hover & Active States */
.nav-link-custom:hover .nav-title,
.nav-link-custom.active .nav-title,
.nav-item-wrapper:hover .nav-title {
    color: #D81324;
}

.nav-link-custom:hover .nav-subtitle,
.nav-link-custom.active .nav-subtitle,
.nav-item-wrapper:hover .nav-subtitle {
    color: #D81324;
    opacity: 1;
}


/* MEGA MENU */
.mega-menu {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 600px;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border-top: 4px solid #D81324;
    padding: 20px;
    border-radius: 0 0 8px 8px;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-link {
    display: block;
    padding: 10px 15px;
    color: var(--grey-text);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
}

.mega-link:hover {
    padding-left: 20px;
    color: var(--primary);
    background: rgba(216, 19, 36, 0.05);
}

/* PHONE BTN - Deep Red Style */
.btn-phone {
    background: #A00000;
    background: linear-gradient(180deg, #c00000 0%, #800000 100%);
    color: white !important;
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #700000;
    transition: 0.3s;
}

.btn-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background: linear-gradient(180deg, #d00000 0%, #a00000 100%);
}

.search-trigger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    cursor: pointer;
    transition: 0.3s;
}

.search-trigger:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    padding: 40px 20px;
    flex-direction: column;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu-links {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.mobile-menu-links a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}



/* HERO */
.hero-section {
    position: relative;
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-right: 20px;
    /* Space from image */
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--grey-text);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Create a fade out effect to the left */
    mask-image: linear-gradient(to left, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
}

/* SERVICES GRID */
.services-section {
    padding: 80px 0;
}

.service-card {
    background: var(--dark);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    min-height: 400px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--primary) 0%, rgba(216, 19, 36, 0.8) 100%);
    padding: 25px 30px;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.service-label::after {
    content: '\f061';
    /* FontAwesome Arrow Right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    transform: translateX(0);
}

.service-card:hover .service-label {
    padding-bottom: 35px;
}

.service-card:hover .service-label::after {
    background: white;
    color: var(--primary);
    transform: translateX(-5px);
}

/* FEATURES HEXAGONS */
.feature-hex {
    text-align: center;
    padding: 20px;
}

.hex-icon-wrapper {
    width: 100px;
    height: 110px;
    margin: 0 auto 20px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--dark);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 3px solid var(--primary);
    /* Since clip-path cuts border, we simulate it or just use bg */
    position: relative;
}

/* To simulate border with clip-path, we use a pseudo element */
.hex-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--concrete);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: -1;
}

.feature-hex h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-hex p {
    font-size: 0.95rem;
    color: var(--grey-text);
}

/* COST CALCULATOR */
.calculator-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* FOOTER */
.site-footer {
    background: #111;
    color: white;
    padding: 80px 0 40px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    margin-bottom: 20px;
    display: block;
}

.footer-nav a {
    display: block;
    color: #888;
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer-nav a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* MEDIA QUERIES */
@media (max-width: 1200px) {
    .main-nav {
        gap: 5px;
    }

    .main-nav .nav-link {
        padding: 0.5rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {

    .main-nav,
    .header-contact {
        display: none !important;
    }

    .mobile-btn {
        display: block;
    }

    .brand-logo {
        font-size: 1.4rem;
    }

    .site-header {
        padding: 0 10px;
        height: 70px;
    }

    .hero-section {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
        background: none;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-image-wrapper {
        position: relative;
        width: 100%;
        height: 300px;
        mask-image: none;
        -webkit-mask-image: none;
        border-radius: 12px;
        overflow: hidden;
    }

    .service-card {
        min-height: 300px;
    }
}

/* STATS */
.stats-section {
    background: var(--dark);
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-family: 'Manrope', sans-serif;
}

.stat-item p {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* LATEST PROJECTS */
.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(216, 19, 36, 0.95) 0%, transparent 80%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0.9;
    transition: 0.3s;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.project-title {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

/* BLOG EXCERPT */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 25px;
}

.blog-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.blog-link {
    color: var(--primary-hover);
    font-weight: 700;
    font-size: 0.9rem;
}

/* BRAND STRIP */
.brand-strip {
    background: var(--white);
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.brand-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0.5;
    filter: grayscale(1);
    transition: 0.3s;
}

.brand-wrapper:hover {
    opacity: 1;
    filter: grayscale(0);
}

.brand-item img {
    max-height: 40px;
    width: auto;
}