/*
Theme Name: Shipline Construction Final Theme
Theme URI: http://www.shiplineconstruction.co.za
Description: Final updated corporate theme for Shipline Construction Development with dynamic navigation, full Unsplash image integration, and crimson/charcoal branding.
Version: 1.2
Author: AI Developer
Author URI: http://www.shiplineconstruction.co.za
Tags: construction, infrastructure, corporate, responsive, clean, dynamic-menu
Text Domain: shipline-construction
*/

:root {
    --brand-crimson: #C3141F;
    --brand-charcoal: #3A3D40;
    --brand-dark-bg: #1A1C1E;
    --light-grey: #F4F6F8;
    --pure-white: #FFFFFF;
    --text-dark: #2B2D2F;
    --text-muted: #64676B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--pure-white);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

/* Header & Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--pure-white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 32px;
}

.logo-icon .bar {
    width: 8px;
    background-color: var(--brand-charcoal);
    border-radius: 2px 2px 0 0;
}

.logo-icon .bar1 { height: 15px; }
.logo-icon .bar2 { height: 28px; background-color: var(--brand-crimson); }
.logo-icon .bar3 { height: 20px; background-color: var(--brand-crimson); }

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--brand-charcoal);
    line-height: 1;
}

.logo-text span {
    color: var(--brand-crimson);
    font-weight: 400;
    display: block;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

/* WordPress Menu Styling wrapper */
.nav-menu-wrapper ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu-wrapper ul li {
    margin-left: 25px;
}

.nav-menu-wrapper ul li a {
    text-decoration: none;
    color: var(--brand-charcoal);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.25s ease;
}

.nav-menu-wrapper ul li a:hover {
    color: var(--brand-crimson);
}

/* Hero Section */
.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--pure-white);
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,28,30,0.92) 0%, rgba(58,61,64,0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-content h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 19px;
    color: #E2E4E6;
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-crimson, .btn-outline {
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-crimson {
    background-color: var(--brand-crimson);
    color: var(--pure-white);
}

.btn-crimson:hover {
    background-color: #A00F17;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--pure-white);
    color: var(--brand-dark-bg);
}

/* General Layout Structural Blocks */
section {
    padding: 90px 4%;
}

.section-tagline {
    display: block;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-crimson);
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-align: center;
}

h2 {
    font-size: 34px;
    font-weight: 800;
    text-align: center;
    color: var(--brand-dark-bg);
    margin-bottom: 45px;
}

/* About Us Profile Styling */
.about-section {
    background-color: var(--pure-white);
}

.lead-text {
    font-size: 19px;
    font-weight: 600;
    color: var(--brand-charcoal);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 25px;
}

.about-section p:not(.lead-text) {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Strategy, Mission & Objectives Styling */
.strategy-section {
    background-color: var(--light-grey);
}

.strategy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.strategy-card {
    background-color: var(--pure-white);
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.border-crimson { border-left: 5px solid var(--brand-crimson); }
.border-grey { border-left: 5px solid var(--brand-charcoal); }

.strategy-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--brand-dark-bg);
}

.values-wrapper {
    background-color: var(--pure-white);
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.values-wrapper h3 {
    text-align: center;
    margin-bottom: 30px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.value-item {
    font-size: 14px;
    background-color: var(--light-grey);
    padding: 15px;
    border-radius: 4px;
    color: var(--brand-charcoal);
}

/* Core Services & Engineering Matrix Styling with Images */
.services-section {
    background-color: var(--pure-white);
}

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

.service-block {
    background-color: var(--light-grey);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.service-block:hover {
    transform: translateY(-5px);
}

.service-image {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.service-content {
    padding: 25px;
}

.service-icon-label {
    font-size: 24px;
    margin-bottom: 10px;
    display: inline-block;
}

.service-block h3 {
    font-size: 18px;
    color: var(--brand-dark-bg);
    margin-bottom: 12px;
}

.service-block p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Footprint Map & HQ Address Section Styling */
.location-section {
    background-color: var(--light-grey);
}

.location-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--pure-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.location-info {
    padding: 50px;
}

.location-info h4 {
    color: var(--brand-crimson);
    font-size: 18px;
    margin-bottom: 15px;
}

address {
    font-style: normal;
    font-size: 16px;
    line-height: 1.8;
    color: var(--brand-dark-bg);
    margin-bottom: 25px;
}

.compliance-note {
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px dashed #DDD;
    padding-top: 15px;
}

.map-placeholder {
    background: linear-gradient(rgba(26,28,30,0.4), rgba(26,28,30,0.4)), url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=800&q=80') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    font-size: 14px;
    gap: 15px;
}

.geo-graphic {
    width: 60px;
    height: 60px;
    border: 2px dashed var(--brand-crimson);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26,28,30,0.6);
    animation: pulse-ring 2s infinite;
}

.radar-ping {
    width: 14px;
    height: 14px;
    background-color: var(--brand-crimson);
    border-radius: 50%;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.map-placeholder span {
    font-weight: 700;
    background-color: var(--brand-dark-bg);
    padding: 6px 14px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Contact Details & Interactive Tender Form Styling */
.contact-section {
    background-color: var(--brand-dark-bg);
    color: var(--pure-white);
}

.contact-section h2 {
    color: var(--pure-white);
}

.contact-section p {
    text-align: center;
    color: #B0B3B6;
    max-width: 600px;
    margin: -30px auto 50px;
}

.contact-split {
    display: grid;
    grid-template-columns: 100%;
    gap: 40px;
}

@media (min-width: 768px) {
    .contact-split { grid-template-columns: 1fr 2fr; }
}

.contact-details-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-card {
    background-color: rgba(255,255,255,0.04);
    padding: 20px;
    border-radius: 4px;
    border-left: 3px solid rgba(255,255,255,0.1);
    transition: border-color 0.3s;
}

.detail-card:hover {
    border-left-color: var(--brand-crimson);
}

.detail-card h5 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--brand-crimson);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.detail-card p a {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 600;
}

.tender-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.tender-form input, .tender-form textarea {
    background-color: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 14px;
    border-radius: 4px;
    color: var(--pure-white);
    font-size: 15px;
}

.tender-form input::placeholder, .tender-form textarea::placeholder {
    color: #808387;
}

.tender-form input:focus, .tender-form textarea:focus {
    outline: none;
    border-color: var(--brand-crimson);
}

.form-submit {
    background-color: var(--brand-crimson);
    color: var(--pure-white);
    border: none;
    padding: 16px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.form-submit:hover {
    background-color: #A00F17;
}

/* Footer Copyright Block */
.main-footer {
    background-color: #111213;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.main-footer p {
    color: #808387;
    font-size: 14px;
}

.main-footer .footer-subtext {
    font-size: 12px;
    margin-top: 5px;
    color: #55575A;
}

/* Responsive Layout Overrides */
@media (max-width: 900px) {
    .strategy-grid, .location-section .location-box { grid-template-columns: 100%; }
    .navbar { flex-direction: column; gap: 15px; }
    .nav-menu-wrapper ul { margin-top: 10px; }
    .nav-menu-wrapper ul li { margin: 0 10px; }
    .hero-content h1 { font-size: 32px; }
    .form-row { grid-template-columns: 100%; }
}
