/*
Theme Name: CPR Theme
Author: Miguel Marques
Version: 1.4
Description: Full CSS for CPR WordPress Theme
*/

/* --- 1. Reset & Global --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* --- 2. Header & Nav Fixes --- */
.site-header {
    background-color: #1e3a8a; /* Solid blue for sub-pages */
    padding: 20px 0;
    width: 100%;
    z-index: 1000;
    position: relative;
}

/* Home Page: Overlay Header on Hero */
.home .site-header {
    position: absolute;
    background: transparent;
}

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

.logo a { text-decoration: none; }
.logo h2 { color: #fff; font-weight: 800; font-size: 1.6rem; margin: 0; }
.logo h2 span { font-weight: 400; }

.nav-list {
    display: flex; /* Makes menu horizontal */
    list-style: none; /* Removes bullets */
    gap: 30px;
    margin: 0;
}

.nav-list a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-list a:hover { opacity: 0.8; }

/* --- 3. Hero Sections --- */
.hero {
    background: linear-gradient(rgba(30, 58, 138, 0.7), rgba(30, 58, 138, 0.7)), 
                url('https://austral.cpr-global.com/wp-content/uploads/2025/07/Asset-2-100.jpg') center/cover no-repeat;
    color: white;
    padding: 180px 0 120px;
    position: relative;
}

.subpage-hero {
    background-color: #1e3a8a; /* Fallback blue */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 140px 0 80px; /* Space for the overlaid header */
}

.hero h1 { font-size: 4.5rem; font-weight: 800; line-height: 1.1; }
.subpage-hero h1 { font-size: 3rem; font-weight: 800; }

/* --- 4. Buttons --- */
.btn {
    display: inline-block;
    background: #00ff40;
    color: #1e3a8a !important;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,255,64,0.3); }

/* --- 5. Content --- */
.section { padding: 80px 0; }
.page-body-content { min-height: 400px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: #f8fafc; padding: 40px; border-radius: 20px; text-align: center; }
.service-icon { font-size: 2.5rem; color: #1e3a8a; margin-bottom: 20px; }

/* --- 6. Floating Shapes --- */
.floating-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.shape { position: absolute; border-radius: 16px; background: rgba(255,255,255,0.06); animation: float 8s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }