#005A00 and white are color
/*
Theme Name: Metrology Service Provider
Theme URI: https://mlmksa.com/
Author: Metrology Service Provider
Author URI: https://mlmksa.com/
Description: Custom WordPress theme for Metrology Service Provider. Providing Calibration, E&I, Automation, HVAC & Fit-Out services in Saudi Arabia.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vesco
Tags: one-column, custom-menu, custom-logo, featured-images, full-width-template
*/

/* ===== CSS Variables & Reset ===== */
:root {
    --clr-bg: #030816;
    --clr-surface: #0a1128;
    --clr-primary: #0753e6;
    --clr-primary-dark: #082868;
    --clr-primary-glow: rgba(7, 83, 230, 0.5);
    --clr-secondary: #ed1572;
    --clr-accent: #5FC4B2;
    --clr-text-main: #f8fafc;
    --clr-text-muted: #94a3b8;
    --clr-gold: #FFBF3E;
    --glass-bg: rgba(10, 17, 40, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    --gap-base: 1.5rem;
    --radius-lg: 1.25rem;
    --radius-md: 0.75rem;
    --container-max: 1280px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== UTILITIES ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap-base);
}

.section {
    padding: 80px 0;
}

.flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.wrap {
    flex-wrap: wrap;
}

.grad-text {
    background: linear-gradient(135deg, #fff 30%, var(--clr-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(120deg, var(--clr-primary-dark) 22%, var(--clr-secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px var(--clr-primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(170deg, var(--clr-primary-dark) 0%, var(--clr-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--clr-primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--clr-primary);
    color: var(--clr-text-main);
}

.btn-outline:hover {
    background: var(--clr-primary);
    box-shadow: 0 4px 15px var(--clr-primary-glow);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    background: linear-gradient(120deg, var(--clr-primary-dark) 22%, var(--clr-secondary) 100%);
    color: white;
    box-shadow: 0 2px 10px var(--clr-primary-glow);
    border-radius: var(--radius-md);
}

.btn-sm:hover {
    background: linear-gradient(170deg, var(--clr-primary-dark) 0%, var(--clr-secondary) 100%);
    transform: translateY(-2px);
}

/* ===== SECTION TITLE ===== */
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.divider-line {
    width: 60px;
    height: 4px;
    background: var(--clr-secondary);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.divider-white {
    background: #fff;
    margin: 0.5rem 0 1.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(150deg, #ffffff 69%, var(--clr-primary) 100%);
    padding: 15px 0;
    color: #333;
}

.top-bar .container {
    gap: 2rem;
}

.top-bar-left .brand {
    gap: 0.8rem;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    background: var(--clr-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
}

.brand-text {
    line-height: 1.1;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    display: block;
    color: #1a1a2e;
}

.brand-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-primary);
}

.top-bar-right {
    gap: 3rem;
}

.top-info p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #333;
}

.top-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.top-contact a {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.top-contact a:hover {
    color: var(--clr-primary);
}

.top-contact i {
    color: var(--clr-secondary);
    font-size: 0.75rem;
}

/* Custom Logo in top bar */
.site-branding {
    gap: 0.8rem;
    display: flex;
    align-items: center;
}

.site-branding .custom-logo {
    max-height: 50px;
    width: auto;
    border-radius: 10px;
}

/* ===== HEADER / NAV ===== */
.header {
    background: #2A5099;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
}

.header .container {
    position: relative;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav ul li a {
    display: block;
    padding: 14px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #fdfbfb;
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
    transition: color 0.3s;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--clr-gold);
    transition: width 0.3s ease;
}

.nav ul li a:hover,
.nav ul li a.active,
.nav ul li.current-menu-item>a,
.nav ul li.current_page_item>a {
    color: var(--clr-gold);
}

.nav ul li a:hover::after {
    width: 70%;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slides-wrapper {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

.slide-content h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.62);
    margin-bottom: 1rem;
    max-width: 900px;
    animation: zoomIn 0.6s ease;
}

.slide-content p {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 700px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--clr-bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 22, 0.75);
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-content p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.about-visual img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 420px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ===== CALIBRATION SECTION ===== */
.calibration-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.calibration-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.calibration-content {
    position: relative;
    z-index: 2;
    background: var(--clr-primary-dark);
    padding: 3rem;
    max-width: 600px;
    border-radius: 0;
    margin: 3rem 0;
}

.calibration-content h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.calibration-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.calibration-tagline {
    font-size: 1rem;
    color: #fff !important;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: var(--clr-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    border: 3px solid var(--clr-accent);
    box-shadow: -11px -11px 0px -5px #1E3B75;
    background: var(--clr-surface);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: -11px -11px 0px -5px var(--clr-primary), 0 20px 40px rgba(7, 83, 230, 0.2);
}

.service-img {
    overflow: hidden;
    height: 200px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.08);
}

.service-body {
    padding: 1.5rem;
    text-align: center;
    background: #fff;
}

.service-body h3 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.service-body p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ===== CERTIFICATIONS ===== */
.certifications {
    padding: 60px 0;
    background: linear-gradient(to bottom, transparent, rgba(7, 83, 230, 0.05));
}

.cert-card {
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.cert-card:hover {
    transform: translateY(-4px);
    border-color: var(--clr-primary);
}

.cert-icon {
    font-size: 4rem;
    color: var(--clr-primary);
    text-align: center;
}

.saac-logo {
    font-size: 1rem;
    font-weight: 800;
    color: var(--clr-primary);
    margin-top: 0.5rem;
    letter-spacing: 3px;
}

.cert-text h3 {
    color: var(--clr-primary);
    margin-bottom: 0.25rem;
}

.cert-text h4 {
    color: var(--clr-gold);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cert-text p {
    color: var(--clr-text-muted);
}

/* ===== CUSTOMERS GALLERY ===== */
.customers-section {
    background: #fff;
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
    position: relative;
}

.customers-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
}

.customers-section .container {
    position: relative;
    z-index: 2;
}

.customers-section .grad-text {
    background: linear-gradient(135deg, var(--clr-primary-dark) 30%, var(--clr-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.customers-section .divider-line {
    margin-bottom: 3rem;
}

.customer-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.customer-logo {
    width: 130px;
    height: 130px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.customer-logo:hover {
    transform: scale(1.15);
}

.customer-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 0;
}

.footer-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 40, 104, 0.88);
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding: 60px 0 40px;
}

.footer-col h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-divider {
    width: 40px;
    height: 4px;
    background: #fff;
    margin-bottom: 1.2rem;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    font-size: 0.9rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.footer-links a i {
    font-size: 0.65rem;
    color: var(--clr-secondary);
}

.footer-links a:hover {
    color: var(--clr-gold);
}

.social-icons {
    display: flex;
    gap: 8px;
    margin-top: 0.5rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--clr-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--clr-secondary);
    transform: translateY(-3px);
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 1.2rem;
    align-items: flex-start;
}

.footer-contact-item i {
    color: #fff;
    font-size: 1rem;
    margin-top: 4px;
}

.footer-contact-item strong {
    font-size: 0.85rem;
    color: #fff;
    display: block;
}

.footer-contact-item p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.2rem 0;
    position: relative;
    z-index: 2;
}

.copyright p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-slider {
        height: 493px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .top-bar {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background: var(--clr-primary-dark);
        z-index: 1000;
        transition: left 0.4s ease;
        overflow-y: auto;
        padding: 80px 0 30px;
    }

    .nav.open {
        left: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
    }

    .nav ul li a {
        padding: 14px 30px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav ul li a::after {
        display: none;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .hero-slider {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-visual img {
        height: 280px;
    }

    .calibration-content {
        margin: 2rem 0;
        padding: 2rem;
    }

    .calibration-content h2 {
        font-size: 1.4rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cert-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .customer-logo {
        width: 100px;
        height: 100px;
    }
}