/* 
 * Main Theme Styles
 * Author: Christopher J Callaghan
 */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
    --primary-blue: #004b7b;
    --primary-orange: #e06b2a;
    --text-dark: #333333;
    --text-blue: #004b7b;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Roboto, arial;
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.7;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* Header */
.site-header {
    padding: 20px 0;
    background: #fff;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.header-logo img {
    height: 80px;
}

.header-info {
    text-align: center;
    position: relative;
    left: -74px;
}

.header-info a {
    color: var(--primary-orange);
    font-weight: 700;
    display: block;
    font-size: 1.1rem;
}

.header-logos {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-logos img {
    height: 60px;
    width: auto;
}

.main-navigation {
    border-top: 1px solid #eee;
    padding: 15px 0;
    position: relative;
    background: #fff;
}

.main-navigation .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px 0;
}

.nav-menu a:hover {
    color: var(--primary-orange);
}

/* Dropdowns & Mega Menu */
.nav-menu li {
    position: relative;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 15px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 100;
}

.nav-menu li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    padding: 10px 25px;
    display: block;
    text-transform: none;
    font-size: 0.85rem;
    color: #555;
}

.nav-menu .sub-menu a:hover {
    background: #f9f9f9;
    color: var(--primary-orange);
}

/* Mega Menu specific styles */
.nav-menu li.mega-menu {
    position: static;
}

.nav-menu li.mega-menu>.sub-menu {
    left: 0;
    right: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 30px;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        z-index: 99;
    }

    .nav-menu.active {
        max-height: 600px;
        padding: 20px 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
    }

    .nav-menu a {
        padding: 15px 25px;
        display: block;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        max-height: none;
        background: #fcfcfc;
    }
}

/* Front Page Sections */
.hero-section {
    text-align: center;
    padding: 60px 0;
}

.section-title-blue {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 30px;
}

.hero-title {
    color: var(--primary-blue);
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 30px;
}

.hero-subtitle {
    color: var(--primary-orange);
    font-size: 1.5rem;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-intro {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn-orange {
    background: var(--primary-orange);
    color: #fff;
    padding: 10px 30px;
    font-weight: 700;
    display: inline-block;
    cursor: pointer;
    border: 0;
}

.btn-orange:hover {
    background: var(--primary-blue);
}

.text-block {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}

.services-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

/* Ensure grid children stretch to equal height */
.services-grid {
    align-items: stretch;
}

.services-grid.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.services-grid.two-cols {
    grid-template-columns: repeat(2, 1fr);

    margin-left: auto;
    margin-right: auto;
}

.service-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    background: #fff;
    padding: 20px;
    transition: 0.3s;
    max-width: none;
    margin: 0;
    width: 100%;
    height: 100%;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-box img {
    width: 100%;
    max-width: 100%;
    display: block;
    margin-bottom: 20px;
    border-radius: 4px;
    object-fit: cover;
}

/* Fixed image heights for uniform boxes (adjust as needed) */
.services-grid.three-cols .service-box img {
    height: 320px;
}
.services-grid.two-cols .service-box img {
    height: 320px;
}

/* Smaller images on small screens */
@media (max-width: 768px) {
    .services-grid.three-cols .service-box img,
    .services-grid.two-cols .service-box img {
        height: auto;
    }
}

/* Force equal-height rows and consistent image areas for service grids */
.services-grid.three-cols {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto; /* let each item determine height */
    gap: 30px;
    align-items: start; /* align items to top so titles line up */
}
.services-grid.two-cols {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 30px;
    align-items: start;
}

.services-grid .service-box {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.services-grid.two-cols {
    margin-top: -81px;
}
/* Make titles always sit below the image with consistent spacing */
.services-grid .service-box img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin-bottom: 20px;
}
.services-grid.three-cols {
    margin-top: -61px;
   
}

a.header-phone {
    color: #005f92;
}

/* Ensure grid items start at top and image area is consistent */
.services-grid .service-box {
    align-self: start;
}

/* Remove generic img rules for service boxes — use .service-thumb instead */
.services-grid .service-box img {
    display: block;
    margin: 0 auto 12px auto;
}

.service-thumb,
.service-thumb-fallback {
    display: block;
    margin: 0 auto 18px auto;
    max-width: 420px;
    width: auto;
    height: auto;
    max-height: 420px;
    object-fit: contain; /* show whole image without cropping */
    border-radius: 8px;
}

/* Ensure text blocks don't stretch the image area */
.services-grid .service-box h3,
.services-grid .service-box p {
    margin: 0 0 15px 0;
}

@media (max-width: 991px) {
    .services-grid.three-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .services-grid.three-cols,
    .services-grid.two-cols {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .services-grid .service-box img {
        height: auto;
    }
}

.service-box h3 {
    margin-bottom: 15px;
}

/* Service title specific styling */
.service-title {
    color: #004b7b;
    text-transform: uppercase;
    font-size: 1.15rem;
    margin-top: 8px;
    margin-bottom: 0;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

/* Larger thumbnails on wide screens and consistent title spacing */
@media (min-width: 1200px) {
    .services-grid.three-cols .service-box img,
    .services-grid.two-cols .service-box img {
        height: 420px;
    }

    .services-grid .service-box h3 {
        min-height: 10px; /* reserve vertical space so titles align */
    }
}

@media (min-width: 992px) and (max-width:1199px) {
    .services-grid.three-cols .service-box img,
    .services-grid.two-cols .service-box img {
        height: 360px;
    }

    .services-grid .service-box h3 {
        min-height: 10px;
    }
}

@media (min-width: 768px) and (max-width:991px) {
    .services-grid .service-box img {
        height: 300px;
    }

    .services-grid .service-box h3 {
        min-height: 110px;
    }
}

/* Breakpoint sizing for responsive thumbnails */
/* Desktop: fixed heights so images fill a consistent box and titles align */
@media (min-width:1200px) {
    .service-thumb,
    .service-thumb-fallback { max-width: 480px; max-height: 420px; }
    .service-title { min-height: 120px; }
}

@media (min-width:992px) and (max-width:1199px) {
    .service-thumb,
    .service-thumb-fallback { max-width: 420px; max-height: 360px; }
    .service-title { min-height: 110px; }
}

@media (min-width:768px) and (max-width:991px) {
    .service-thumb,
    .service-thumb-fallback { max-width: 360px; max-height: 300px; }
    .service-title { min-height: 100px; }
}

@media (max-width:767px) {
    .service-thumb,
    .service-thumb-fallback { max-width: 100%; height: auto; max-height: none; }
    .service-title { min-height: auto; }
}

.service-box p {
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 768px) {

    .services-grid.three-cols,
    .services-grid.two-cols {
        grid-template-columns: 1fr;
    }
}

.specialty-section {
    padding: 80px 0;
    text-align: center;
}

.specialty-section h2.cta-title {
    color: var(--primary-orange);
    font-size: 2.5rem;
    font-weight: 700;
}

.blue-section {
    background: var(--primary-blue);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.blue-section h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.clients-section {
    padding: 80px 0;
    text-align: center;
}

.clients-grid {
    margin-top: 40px;
}

.contact-section {
    background: #f0f0f0;
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    text-align: left;
}

.contact-info h2 {
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-prefooter {
    background: #fff;
    padding: 40px 0;
}

.prefooter-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.quote-form p {
    margin-bottom: 0;
}

.prefooter-image img {
    width: 100%;
    height: auto;
}

.prefooter-services {
    text-align: center;
    padding-top: 10px;
}

.prefooter-service-btn {
    background: var(--primary-orange);
    margin: 8px auto;
    max-width: 260px;
    transition: background 0.3s;
}

.prefooter-service-btn a {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prefooter-service-btn:hover {
    background: var(--primary-blue);
}

.prefooter-cta {
    text-align: center;
    padding-top: 10px;
}

.prefooter-cta-title {
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.prefooter-cta-title img {
    display: block;
    margin: 10px auto 0;
    max-width: 150px;
}

.prefooter-cta-btn {
    background: var(--primary-orange);
    margin: 8px auto;
    max-width: 300px;
    transition: background 0.3s;
}

.prefooter-cta-btn a {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
}

.prefooter-cta-btn:hover {
    background: var(--primary-blue);
}

.site-footer {
    margin: 0;
    padding: 0;
}

.footer-bar {
    background: var(--primary-orange);
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons a {
    color: #fff;
    margin: 0 10px;
    font-size: 1rem;
}

.social-icons a:hover {
    opacity: 0.8;
}

.footer-bottom {
    background: #000;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary-orange);
}

@media (max-width: 768px) {
    .prefooter-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .prefooter-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* WP Form overrides */
.wpcf7-form input,
.wpcf7-form textarea {
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
}

.wpcf7-submit {
    background: var(--primary-orange) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 30px !important;
    cursor: pointer;
}

/* Page & Portfolio Layouts */
.page-header {
    background: #ffffff;
    padding: 60px 0;
    text-align: center;
    border-top: 8px solid var(--primary-orange);
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    color: var(--primary-blue);
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0;
}

.page-header p.category-label {
    color: var(--primary-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.portfolio-hero {
    background: var(--primary-blue);
    padding: 80px 0;
    color: #ffffff;
    text-align: center;
}

.portfolio-hero h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
}

.portfolio-hero p.category-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.entry-content {
    line-height: 1.8;
    color: #4b5563;
}

.portfolio-content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
    padding: 60px 0;
}

.portfolio-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

/* 3+2 Layout for homepage services */
.front-page .services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.front-page .service-box {
    width: calc(33.333% - 27px);
    min-width: 300px;
}

@media (max-width: 992px) {
    .front-page .service-box {
        width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .front-page .service-box {
        width: 100%;
    }
}

.sector-list {
    text-align: center;
    margin: 40px 0;
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 2;
}

.sector-list span {
    display: inline-block;
    padding: 0 10px;
    border-right: 1px solid #ccc;
}

.sector-list span:last-child {
    border-right: none;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

header#masthead .container {
    max-width: 1600px;
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-logos {
        justify-content: center;
    }

    .header-top,
    .services-row,
    .contact-flex,
    .footer-top,
    .portfolio-content-grid {
        flex-direction: column;
        display: block;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .portfolio-content-grid {
        display: block;
    }

    .portfolio-images {
        margin-bottom: 30px;
    }
}

/* Services Portfolio List */
.services-portfolio-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 40px auto;
}

.portfolio-link-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-left: 5px solid var(--primary-orange);
    text-align: left;
}

.portfolio-link-item:hover {
    transform: translateX(10px);
}

.portfolio-link-item h3 {
    margin: 0 0 10px;
    color: var(--primary-blue);
    text-transform: none;
    font-size: 1.5rem;
}

.portfolio-link-item h3 a {
    color: inherit;
    text-decoration: none;
}

.portfolio-link-item p {
    margin: 0;
    color: #666;
    font-size: 1.1rem;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Theme contact form layout */
.theme-contact-form .form-row.two-cols {
    display: flex;
    gap: 18px;
}

.theme-contact-form .form-row.two-cols .col {
    flex: 1;
}

.theme-contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.theme-contact-form input[type="text"],
.theme-contact-form input[type="email"],
.theme-contact-form input[type="tel"],
.theme-contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #e6e6e6;
}

.theme-contact-form .file-drop {
    border: 2px dashed #ddd;
    padding: 18px;
    border-radius: 6px;
    position: relative;
    background: #fff;
}

.theme-contact-form .file-drop .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.theme-contact-form .file-drop .file-drop-inner {
    text-align: center;
    color: var(--primary-orange);
    font-weight: 700;
}

.theme-contact-form .form-actions {
    text-align: center;
    margin-top: 18px;
}

.theme-contact-form .wpcf7-submit {
    padding: 10px 30px;
    border-radius: 6px;
}

/* B2B Portfolio multistep form styles */
.b2b-portfolio-section {
    padding: 40px 0;
    background: #0f1b2a;
    color: #fff;
}

.b2b-box {
    max-width: 760px;
    margin: 0 auto;
    background: transparent;
    padding: 30px;
}

.b2b-progress {
    background: rgba(255, 255, 255, 0.08);
    height: 8px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.b2b-progress-bar {
    background: #d0b36b;
    height: 8px;
    border-radius: 8px;
    width: 0;
}

.b2b-title {
    font-size: 1.8rem;
    margin: 8px 0 6px;
    color: #ffffff;
}

.b2b-sub {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 18px;
}

.b2b-question {
    font-weight: 700;
    margin-bottom: 12px;
}

.b2b-options.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.b2b-option {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: none;
    padding: 14px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
}

.b2b-option.selected {
    background: var(--primary-orange);
    color: #fff;
    outline: none;
}

.b2b-options.pages {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.b2b-page {
    background: rgba(255, 255, 255, 0.06);
    padding: 10px 14px;
    border-radius: 8px;
}

.b2b-page.selected {
    background: var(--primary-orange);
    color: #fff;
}

.b2b-option:hover,
.b2b-page:hover {
    cursor: pointer;
    transform: translateY(-1px);
}

.b2b-success {
    background: #0d4a1a;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.b2b-step-actions {
    margin-top: 18px;
    text-align: right;
}

.b2b-form input,
.b2b-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.b2b-form label {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .b2b-options.grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   WHAT WE DO PAGE Ã¢â‚¬â€ Exact Production Match
   =================================== */

.what-we-do-page {
    background: #fff;
}

.wwd-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Welcome / Intro Section */
.wwd-welcome {
    background: #fff;
    padding: 40px 0 30px;
    text-align: center;
}

.wwd-label {
    color: var(--primary-orange);
    font-size: 2rem;
    font-weight: 700;
    text-transform: lowercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.wwd-heading {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 auto 25px;
    max-width: 700px;
}

.wwd-intro-text {
    text-align: center;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

.wwd-intro-text a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.wwd-intro-text a:hover {
    color: var(--primary-orange);
}

/* Business Sectors Section */
.wwd-sectors {
    background: #fff;
    padding: 30px 0 10px;
    text-align: center;
}

.wwd-sectors-title {
    color: var(--primary-orange);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin: 20px 0 30px;
}

.wwd-icons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 800px;
}

.wwd-icons-row.three-icons {
    justify-content: center;
}

.wwd-icons-row.two-icons {
    max-width: 550px;
}

.wwd-icon-item {
    text-align: center;
    flex: 1;
}

.wwd-icon-item img {
    max-width: 100%;
    height: auto;
}

.wwd-sector-list {
    text-align: center;
    color: #333;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 15px auto;
    max-width: 800px;
}

/* Blue Statement Section */
.wwd-blue-statement {
    background: var(--primary-blue);
    padding: 50px 0;
    text-align: center;
}

.wwd-statement-text {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 25px;
}

.wwd-statement-highlight {
    color: var(--primary-orange);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 30px;
}

.wwd-cta-button {
    text-align: center;
    margin: 20px 0;
}

.wwd-btn-orange {
    display: inline-block;
    background: var(--primary-orange);
    color: #fff;
    padding: 12px 40px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.wwd-btn-orange:hover {
    background: #c45a20;
    color: #fff;
}

/* Responsive Ã¢â‚¬â€ What We Do Page */
@media (max-width: 768px) {
    .wwd-icons-row {
        flex-direction: column;
        gap: 15px;
    }

    .wwd-icon-item {
        max-width: 200px;
        margin: 0 auto;
    }

    .wwd-heading {
        font-size: 1.1rem;
    }

    .wwd-label {
        font-size: 1.5rem;
    }
}

/* Services Portfolio Page */
.services-list-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.service-category-item {
    background: transparent;
    padding: 0;
    margin-bottom: 80px;
    text-align: center;
}

.service-category-image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 0;
    /* Live site has sharp corners */
}

.service-category-item h3 {
    margin-bottom: 25px;
    width: 100%;
    display: block;
}

.service-category-item h3 a {
    color: #004b7b;
    text-decoration: none;
    font-weight: 900;
    font-size: 2.5rem;
}

.service-category-item h3 a:hover {
    color: #eb6f2d;
}

.service-category-item h5 {
    font-family: 'Roboto', sans-serif;
    color: #555;
    margin: 25px auto 0;
    max-width: 900px;
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 500;
}

.services-list-container .service-category-item {
    width: calc(33.333% - 14px);
}

@media (max-width: 768px) {
    .service-category-item h3 a {
        font-size: 1.8rem;
    }

    .service-category-item h5 {
        font-size: 1.1rem;
    }
}


/* Inner Service Grid (page-service-inner.php) */
.inner-service-grid .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    align-items: start; /* align items to top so titles line up */
}

.inner-service-grid .services-grid.three-cols .service-box {
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.inner-service-grid .service-box img {
    width: 100%;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
    object-fit: contain;
    height: auto;
}

.service-box:hover img {
    transform: translateY(-5px);
}

.service-box h3 {
    margin-top: 15px;
    font-weight: 900;
    color: #004b7b;
}

.service-box h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.service-box h3 a:hover {
    color: #eb6f2d;
}

@media (max-width: 991px) {
    .services-grid.three-cols .service-box {
        width: calc(50% - 15px);
    }
}

@media (max-width: 767px) {
    .services-grid.three-cols .service-box {
        width: 100%;
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.close-modal {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #004b7b;
    text-decoration: none;
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.quote-form label {
    font-weight: 700;
    color: #004b7b;
}

.quote-form input[type="submit"] {
    background: #eb6f2d;
    color: #fff;
    border: none;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0;
}

.quote-form input[type="submit"]:hover {
    background: #004b7b;
    transform: translateY(-2px);
}

/* ===================================
   BLOG & SINGLE POST STYLES
   =================================== */

.blog-hero-row {
    margin-top: 20px;
}

.blog-grid .blog-item {
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}

.blog-grid .blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-orange);
}

.blog-grid .blog-item h3 a:hover {
    color: var(--primary-orange) !important;
}

.blog-post-sidebar h3 {
    border-bottom: 2px solid var(--primary-orange);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.blog-post-sidebar ul li a:hover {
    color: var(--primary-orange) !important;
}

.entry-content h2 {
    color: var(--primary-blue);
    font-weight: 900;
    font-size: 1.8rem;
    margin: 40px 0 20px;
}

.entry-content h3 {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content ul {
    margin-bottom: 30px;
}

.entry-content ul li {
    margin-bottom: 10px;
}

.bottom-cta {
    background: #f8f8f8;
    position: relative;
    overflow: hidden;
}

.bottom-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-orange);
}

.bottom-cta a:hover {
    color: var(--primary-orange) !important;
}

.pagination .page-numbers {
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: #eee;
}

.pagination .page-numbers.current {
    background: var(--primary-blue);
    color: #fff;
}