/* ==========================================
   LEGALANT ENGINEERING
   GLOBAL STYLES
========================================== */

/* ===============================
   RESET
=============================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:var(--font-body);
    font-size:var(--body);
    color:var(--text);
    background:var(--white);
    line-height:1.7;
    overflow-x:hidden;

}

/* ===============================
   TYPOGRAPHY
=============================== */

h1,h2,h3,h4,h5,h6{

    font-family:var(--font-heading);
    color:var(--primary);
    font-weight:700;
    line-height:1.2;

}

h1{
    font-size:var(--h1);
}

h2{
    font-size:var(--h2);
}

h3{
    font-size:var(--h3);
}

h4{
    font-size:var(--h4);
}

h5{
    font-size:var(--h5);
}

h6{
    font-size:var(--h6);
}

p{

    color:var(--text);
    margin-bottom:20px;

}

a{

    text-decoration:none;
    transition:var(--transition);

}

img{

    width:100%;
    display:block;

}

ul{

    list-style:none;
    padding:0;
    margin:0;

}

/* ===============================
   CONTAINER
=============================== */

.container{

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

}

/* ===============================
   SECTION
=============================== */

section{

    padding:var(--section-padding) 0;

}

/* ===============================
   BUTTONS
=============================== */

.btn{

    padding:14px 32px;
    border-radius:var(--radius-round);
    font-weight:600;
    transition:var(--transition);
    display:inline-block;

}

.btn-primary{

    background:var(--secondary);
    color:var(--primary);
    border:none;

}

.btn-primary:hover{

    background:var(--primary);
    color:var(--white);

}

.btn-outline{

    border:2px solid var(--secondary);
    color:var(--secondary);
    background:transparent;

}

.btn-outline:hover{

    background:var(--secondary);
    color:var(--primary);

}

/* ===============================
   UTILITIES
=============================== */

.text-center{

    text-align:center;

}

.mt-5{

    margin-top:3rem;

}

.mb-5{

    margin-bottom:3rem;

}

.shadow{

    box-shadow:var(--shadow-md);

}

.rounded{

    border-radius:var(--radius-lg);

}
/* ==========================================
   TOP BAR
========================================== */

.top-bar{
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    padding: 10px 0;
}

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

.top-left,
.top-right{
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-left a,
.top-right a{
    color: var(--white);
    transition: var(--transition);
}

.top-left a:hover,
.top-right a:hover{
    color: var(--secondary);
}

.top-left i,
.top-right i{
    margin-right: 6px;
}

/* ==========================================
   HEADER
========================================== */

#header{
    position: sticky;
    top: 0;
    z-index: var(--z-navbar);
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar{
    min-height: var(--navbar-height);
    padding: 0;
}

.navbar-brand{
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main{
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
}

.logo-sub{
    font-size: 14px;
    color: var(--secondary);
    letter-spacing: 4px;
    font-weight: 600;
}

/* ==========================================
   NAVIGATION
========================================== */

.navbar-nav{
    align-items: center;
    gap: 8px;
}

.nav-link{
    color: var(--primary);
    font-weight: 600;
    padding: 12px 18px !important;
    position: relative;
    transition: var(--transition);
}

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

.nav-link::after{
    content: "";
    position: absolute;
    left: 18px;
    bottom: 8px;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after{
    width: calc(100% - 36px);
}

/* ==========================================
   CTA BUTTON
========================================== */

.navbar .btn{
    margin-left: 20px;
    font-size: 15px;
    font-weight: 600;
}

/* ==========================================
   MOBILE TOGGLER
========================================== */

.navbar-toggler{
    border: none;
    box-shadow: none !important;
}

.navbar-toggler:focus{
    box-shadow: none;
}

/* ==========================================
   STICKY EFFECT
========================================== */

#header.scrolled{
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   HERO SECTION
========================================== */

.hero{
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(rgba(11,31,58,.82), rgba(11,31,58,.82)),
                url("../images/hero/hero-bg.jpg") center center/cover no-repeat;
    color: var(--white);
}

.hero-content{
    max-width: 700px;
    z-index: 2;
}

.hero-subtitle{
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1{
    font-size: var(--hero-size);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero p{
    color: rgba(255,255,255,.85);
    font-size: 18px;
    margin-bottom: 35px;
}

.hero-buttons{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==========================================
   SECTION TITLE
========================================== */

.section-title{
    text-align: center;
    margin-bottom: 60px;
}

.section-title span{
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title h2{
    margin-top: 15px;
    margin-bottom: 20px;
}

.section-title p{
    max-width: 700px;
    margin: auto;
    color: var(--text-light);
}

/* ==========================================
   SERVICE CARDS
========================================== */

.service-card{
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover{
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(212,175,55,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i{
    font-size: 34px;
    color: var(--secondary);
}

.service-card h4{
    margin-bottom: 15px;
}

.service-card p{
    color: var(--text-light);
}

/* ==========================================
   STATS SECTION
========================================== */

.stats{
    background: var(--primary);
    color: var(--white);
}

.stat-box{
    text-align: center;
    padding: 30px;
}

.stat-box h2{
    color: var(--secondary);
    font-family: var(--font-number);
    font-size: 48px;
    margin-bottom: 10px;
}

.stat-box p{
    color: rgba(255,255,255,.85);
    margin: 0;
}

/* ==========================================
   IMAGE STYLES
========================================== */

.image-box{
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.image-box img{
    transition: transform .5s ease;
}

.image-box:hover img{
    transform: scale(1.08);
}

/* ==========================================
   FOOTER
========================================== */

.footer{
    background: var(--primary);
    color: rgba(255,255,255,.85);
    padding: 80px 0 25px;
}

.footer h2,
.footer h5{
    color: var(--white);
}

.footer-logo h2{
    margin-bottom: 0;
    letter-spacing: 2px;
}

.footer-logo span{
    color: var(--secondary);
    letter-spacing: 3px;
    font-size: 14px;
    font-weight: 600;
}

.footer p{
    color: rgba(255,255,255,.75);
}

.footer ul{
    padding-left: 0;
}

.footer ul li{
    margin-bottom: 12px;
}

.footer ul li a{
    color: rgba(255,255,255,.75);
    transition: var(--transition);
}

.footer ul li a:hover{
    color: var(--secondary);
    padding-left: 8px;
}

.footer-social{
    display:flex;
    gap:15px;
    margin-top:20px;
}

.footer-social a{
    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.08);
    color:#fff;
    transition:var(--transition);
}

.footer-social a:hover{
    background:var(--secondary);
    color:var(--primary);
}

.footer hr{
    border-color:rgba(255,255,255,.12);
    margin:50px 0 25px;
}

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

/* ==========================================
   FORMS
========================================== */

.form-control,
.form-select{
    border-radius: var(--radius-md);
    padding: 14px 18px;
    border: 1px solid var(--gray-300);
    box-shadow:none;
}

.form-control:focus,
.form-select:focus{
    border-color:var(--secondary);
    box-shadow:0 0 0 .2rem rgba(212,175,55,.2);
}

/* ==========================================
   GALLERY
========================================== */

.gallery-item{
    overflow:hidden;
    border-radius:var(--radius-lg);
    position:relative;
}

.gallery-item img{
    transition:.5s;
}

.gallery-item:hover img{
    transform:scale(1.08);
}

/* ==========================================
   LOADER
========================================== */

#loader{
    position:fixed;
    inset:0;
    background:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:var(--z-loader);
}

.loader-spinner{
    width:60px;
    height:60px;
    border:5px solid var(--gray-200);
    border-top:5px solid var(--secondary);
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/* ==========================================
   SCROLL PROGRESS
========================================== */

.scroll-progress{
    position:fixed;
    top:0;
    left:0;
    width:0%;
    height:4px;
    background:var(--secondary);
    z-index:99999;
}

/* ==========================================
   BACK TO TOP
========================================== */

#backToTop{
    position:fixed;
    right:25px;
    bottom:25px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:var(--secondary);
    color:var(--primary);
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    box-shadow:var(--shadow-md);
    opacity:0;
    visibility:hidden;
    transition:var(--transition);
}

#backToTop.show{
    opacity:1;
    visibility:visible;
}

#backToTop:hover{
    transform:translateY(-5px);
}

/* ==========================================
   HELPER CLASSES
========================================== */

.bg-primary{
    background:var(--primary)!important;
}

.bg-light{
    background:var(--light)!important;
}

.text-primary{
    color:var(--primary)!important;
}

.text-secondary{
    color:var(--secondary)!important;
}

/* ==========================================
   SMALL HERO
========================================== */

.hero-small{

    min-height:55vh;

    display:flex;

    align-items:center;

    text-align:center;

}

.hero-small .hero-content{

    margin:auto;

}

/* ==========================================
   PROJECT CARDS
========================================== */

.card{
    border-radius:18px;
    overflow:hidden;
    transition:.4s;
}

.card img{
    height:250px;
    object-fit:cover;
}

.card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 50px rgba(0,0,0,.18);
}

.badge{
    font-size:.8rem;
    padding:8px 14px;
}

/* ==========================================
   GALLERY
========================================== */

.gallery-item{

    overflow:hidden;

    border-radius:18px;

}

.gallery-item img{

    transition:.4s;

    width:100%;

    height:280px;

    object-fit:cover;

}

.gallery-item:hover img{

    transform:scale(1.08);

}

.filter-btn{

    margin:6px;

}

/* ==========================================
   TEAM IMAGES
========================================== */

.team-gallery img{
    border-radius:18px;
    transition:.4s;
}

.team-gallery img:hover{
    transform:scale(1.03);
    box-shadow:0 15px 40px rgba(0,0,0,.2);
}

/* ==========================================
   CAREERS FORM
========================================== */

#apply form{
    max-width:900px;
    margin:auto;
}

#apply .form-control,
#apply .form-select{
    border-radius:12px;
    padding:14px;
}

#apply .btn{
    padding:14px 40px;
}

/* ==========================================
   CONTACT PAGE
========================================== */

.contact-info .service-card{
    height:100%;
}

form{
    max-width:900px;
    margin:auto;
}

form .form-control{
    border-radius:12px;
    padding:14px;
}

form textarea{
    resize:none;
}

/* ==========================================
   CONTACT ENHANCEMENTS
========================================== */

.table td{
    padding:14px;
}

.ratio iframe{
    border:0;
    border-radius:16px;
}

.btn-success{
    border-radius:10px;
}