/* ===========================================
   Eaton-Moepeng Website
   MASTER STYLESHEET (loaded on every page)
   Load order per page: style.css -> [page].css -> responsive.css
=========================================== */

/* ---------- Google Font ---------- */

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

/* ---------- Variables ---------- */

:root{

    /* ===== Eaton-Moepeng Brand Colours ===== */

    --primary:#0A2E6F;      /* Deep Royal Blue */
    --primary-light:#174EA6;
    --secondary:#D4AF37;    /* Heritage Gold */

    --dark:#08162E;         /* Midnight Blue */
    --text:#475569;
    --light:#F7F9FC;
    --white:#FFFFFF;

    --radius:16px;

    --shadow:0 12px 32px rgba(0,0,0,.10);

    --transition:.35s ease;

}

/* ---------- Reset ---------- */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;
    background:var(--light);
    color:var(--dark);
    overflow-x:hidden; /* LINT FIX: prevents horizontal scroll from full-bleed sections on mobile */

}

/* ---------- Paragraphs ---------- */

p{

    color:var(--text);

    line-height:2;

    font-size:1.05rem;

    margin-bottom:22px;

}

img{

    max-width:100%;
    width:100%;
    display:block;

}

a{

    text-decoration:none;

}

ul{

    list-style:none;

}

button{
    /* LINT FIX: buttons didn't inherit font-family, would fall back to system font */
    font-family:inherit;
    cursor:pointer;
    border:none;
    background:none;
}

/* ---------- Container ---------- */

.container{

    width:min(1200px,90%);
    margin:auto;

}

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

header{

    position:sticky;
    top:0;

    background:white;

    box-shadow:0 2px 12px rgba(0,0,0,.05);

    z-index:999;

}

header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 0;

}

/* Sticky scroll shadow state, toggled by script.js */

header.scrolled{

    box-shadow:0 10px 30px rgba(0,0,0,.12);
    backdrop-filter:blur(12px);

}

.logo{

    display:flex;

    align-items:center;

    gap:1px;

    font-size:2rem;

    font-weight:800;

}

.logo-image{

    width:100px;
    height:100px;

    object-fit:contain;

    transition:.3s ease;

}
.logo:hover .logo-image{

    transform:scale(1.08);

}

.logo-text{

    display:flex;

    align-items:center;

}

.eaton{

    color:var(--primary);

}

.hyphen,
.moepeng{

    color:var(--secondary);

}

nav ul{

    display:flex;
    gap:35px;

}

nav a{

    position:relative;
    color:var(--dark);
    font-weight:500;
    padding:6px 0;
    transition:color .3s ease;

}

nav a:hover{

    color:var(--primary);

}

nav a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-2px;

    width:0;

    height:2px;

    background:var(--secondary);

    border-radius:10px;

    transition:width .35s ease;

}

nav a:hover::after{

    width:70%;

}

nav a.active{

    color:var(--primary);

}

nav a.active::after{

    width:100%;

}

/* ===========================================
   MOBILE NAV TOGGLE (hamburger)
   Hidden on desktop, shown by responsive.css on mobile.
   Full open/close behaviour lives in responsive.css so it
   sits alongside the breakpoint that activates it; base
   button styling stays here since it's a header element.
=========================================== */

.nav-toggle{

    display:none;

    flex-direction:column;
    justify-content:center;
    gap:5px;

    width:44px;
    height:44px;

    z-index:1001;

}

.nav-toggle span{

    display:block;
    width:26px;
    height:3px;
    background:var(--primary);
    border-radius:3px;
    transition:transform .3s ease, opacity .3s ease;

}

/* Animate to an "X" when nav is open */

.nav-toggle.active span:nth-child(1){

    transform:translateY(8px) rotate(45deg);

}

.nav-toggle.active span:nth-child(2){

    opacity:0;

}

.nav-toggle.active span:nth-child(3){

    transform:translateY(-8px) rotate(-45deg);

}

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

.btn-nav,
.primary-btn{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:15px 30px;

    background:var(--primary);

    color:#fff;

    border:2px solid transparent;

    border-radius:50px;

    font-weight:600;

    transition:all .3s ease;

    box-shadow:0 10px 25px rgba(10,46,111,.20);

}

.primary-btn:hover{

    transform:translateY(-3px);

    background:#123C8C;

    border:2px solid var(--secondary);

    box-shadow:0 18px 35px rgba(10,46,111,.30);

}

.secondary-btn{

    display:inline-flex;
    align-items:center;
    gap:8px;

    padding:15px 30px;

    border:2px solid rgba(255,255,255,.7);

    border-radius:50px;

    color:#fff;

    background:transparent;

    font-weight:600;

    transition:all .3s ease;

}

.secondary-btn:hover{

    transform:translateY(-3px);

    border-color:var(--secondary);

    color:var(--secondary);

    background:rgba(255,255,255,.06);

}

.arrow{

    display:inline-block;
    transition:transform .3s ease;

}

.secondary-btn:hover .arrow{

    transform:translateX(5px);

}

/* ===========================================
   SHARED HOVER EFFECTS
=========================================== */

.card{

    cursor:pointer;

}

.card:hover{

    transform:translateY(-10px);

    box-shadow:0 18px 40px rgba(0,0,0,.12);

}

.stat:hover{

    transform:translateY(-6px);

    transition:.3s;

}

/* ===========================================
   HERO BUTTON ROW (shared across hero sections)
=========================================== */

.hero-buttons{

    display:flex;
    align-items:center;
    gap:18px;
    margin-top:40px;
    flex-wrap:wrap; /* LINT FIX: was overflowing on narrow phones */

}

/* ===========================================
   PAGE HERO (dark, image-background style)
   Shared between about.html (.about-hero) and services.html
   (.about-hero.services-hero) — kept here in the shared
   stylesheet rather than about.css, since services.html
   doesn't load about.css but still depends on this class.
=========================================== */

.about-hero{

    position:relative;

    min-height:85vh;

    display:flex;

    align-items:center;

    overflow:hidden;

    background-image:url("../assets/images/about-heading-bg.png");

    background-size:cover;

    background-position:center center;

    background-repeat:no-repeat;

}

.about-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
        90deg,
        rgba(8,22,46,.88) 0%,
        rgba(8,22,46,.68) 45%,
        rgba(8,22,46,.30) 70%,
        rgba(8,22,46,.10) 100%
    );

}

.about-hero .container{

    position:relative;

    z-index:2;

}

.about-hero-content{

    max-width:650px;

    color:white;

}

.about-hero .section-tag{

    display:inline-block;

    color:var(--secondary);

    background:rgba(212,175,55,.15);

    letter-spacing:3px;

    font-size:.9rem;

    font-weight:700;

    margin-bottom:25px;

}

.about-hero h1{

    font-size:4.2rem;

    line-height:1.15;

    margin-bottom:30px;

    color:white;

}

.about-hero p{

    font-size:1.15rem;

    line-height:2;

    color:rgba(255,255,255,.92);

    max-width:600px;

}

/* ===========================================
   SECTION HEADING / SECTION TAG
   Canonical pill-badge tag used site-wide.
   (Previously duplicated 3x with conflicting styles
   across home.css / about.css — consolidated here.)
=========================================== */

.section-heading{

    text-align:center;

    max-width:850px;

    margin:0 auto 80px;

}

.section-tag{

    display:inline-block;

    padding:8px 20px;

    margin-bottom:22px;

    border-radius:50px;

    background:rgba(10,46,111,.08);

    color:var(--primary);

    font-size:.85rem;

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;

}

/* Gold variant, for tags placed on dark backgrounds */

.section-tag.on-dark{

    background:rgba(212,175,55,.15);

    color:var(--secondary);

}

.section-heading h2{

    font-size:3rem;

    color:var(--dark);

    line-height:1.2;

    margin-bottom:25px;

}

.section-heading p{

    max-width:720px;

    margin:0 auto;

    color:var(--text);

    line-height:2;

    font-size:1.1rem;

}

/* ===========================================
   SCROLL FADE-IN ANIMATION (utility)
   Classes toggled by script.js IntersectionObserver.
=========================================== */

.hidden{

    opacity:0;
    transform:translateY(40px);
    transition:all .8s ease;

}

.show{

    opacity:1;
    transform:translateY(0);

}

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

footer{

    background:#0b1220;
    color:white;
    padding:60px 0;
    text-align:center;

}

footer h3{

    font-size:1.8rem;
    margin-bottom:15px;

}

footer p{

    color:#cbd5e1;
    margin-bottom:10px;

}
