/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
    --primary-color: #0B1F3A; /* Dark Blue */
    --accent-color: #FF6B00; /* Safety Orange */
    --bg-light: #F4F6F8; /* Light Grey */
    --text-main: #333333;
    --text-muted: #666666;
    --white: #FFFFFF;
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    --transition: all 0.3s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-heading);
}

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

.btn-primary:hover {
    background-color: #e66000;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.logo i {
    color: var(--accent-color);
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    background: none;
    border: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(rgba(11, 31, 58, 0.8), rgba(11, 31, 58, 0.8)), url('../images/hero_rig.png') center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

/* ==========================================================================
   Trust Strip
   ========================================================================== */
.trust-strip {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

.trust-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    font-weight: 600;
    opacity: 0.9;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-section {
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--accent-color);
    background-color: var(--white);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why-us {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-item i {
    font-size: 24px;
    color: var(--accent-color);
    background-color: var(--white);
    padding: 15px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.feature-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Featured Case Study
   ========================================================================== */
.case-study-featured {
    background-color: var(--white);
}

.case-study-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.case-study-image {
    flex: 1;
    min-height: 400px;
    background: url('../images/case_study.png') center/cover;
}

.case-study-content {
    flex: 1;
    padding: 50px;
}

.case-study-content h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 25px;
}

.case-list {
    margin-bottom: 30px;
}

.case-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.case-list li strong {
    color: var(--accent-color);
}

.case-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #051020);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ==========================================================================
   Inner Pages (About, Services, Case Studies)
   ========================================================================== */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
}

.content-block {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.content-block h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.content-block p {
    margin-bottom: 15px;
}

.content-block ul {
    margin: 15px 0;
    padding-left: 20px;
}

.content-block ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.content-block ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* ==========================================================================
   Contact Page Form
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 8px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: var(--accent-color);
}

.contact-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
}

textarea.form-control {
    resize: vertical;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-about i {
    color: var(--accent-color);
}

.footer-about p {
    opacity: 0.8;
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

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

.footer-links ul a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links ul a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .case-study-wrapper {
        flex-direction: column;
    }
    .case-study-image {
        width: 100%;
        min-height: 300px;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 50px 0;
    }
}
