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

:root {
    --primary-color: #d97706;
    --secondary-color: #1f2937;
    --accent-color: #f59e0b;
    --text-dark: #111827;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar {
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    border-radius: 8px;
}

/* Image-based logo (header) */
.logo-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
    will-change: transform;
}
.logo-img:hover,
.logo-img:focus {
    transform: translateY(-6px) scale(1.12);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
    opacity: 1;
    position: relative;
    z-index: 40;
}

/* Make header logo slightly larger on wide screens */
@media (min-width: 1200px) {
    .logo-img { width: 64px; height: 64px; }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hero {
    position: relative;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M50 0v100M0 50h100" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 48px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-bottom: 48px;
}

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

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--text-dark);
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

.about-highlight {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-top: 32px;
}

.about-highlight h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.about-highlight p {
    margin: 0;
}

.about-certifications {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.about-certifications h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.cert-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cert-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
}

.cert-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    font-family: monospace;
}

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

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--white);
}

.service-title {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    line-height: 1.7;
}

.safety {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
}

.safety-content {
    display: flex;
    align-items: center;
    gap: 48px;
}

.safety-icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
}

.safety-text h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.safety-text p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.project-year {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.project-title {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.project-location {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.project-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.project-summary {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
}

.project-summary p {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.7;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form-container {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 64px 0 24px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

/* Allow partner images to expand beyond their container when hovered */
.footer-section {
    overflow: visible;
}

/* Footer logo image */
.footer-logo-img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.footer-logo-img:hover, .footer-logo-img:focus {
    transform: translateY(-6px) scale(1.14);
    box-shadow: 0 20px 48px rgba(0,0,0,0.24);
    position: relative;
    z-index: 40;
}

/* Small partner/gallery images placed in footer */
.footer-partners {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.footer-partners .partner-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    /* use contain so small images are shown fully instead of being cropped */
    object-fit: contain;
    background: rgba(255,255,255,0.02);
    border: 2px solid rgba(255,255,255,0.08);
    transition: width 160ms ease, height 160ms ease, box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
}
.footer-partners .partner-img:hover,
.footer-partners .partner-img:focus {
    /* enlarge to a fixed size so small images become fully visible */
    width: 120px;
    height: 120px;
    transform: translateY(-8px);
    box-shadow: 0 24px 52px rgba(0,0,0,0.28);
    filter: saturate(1.12) contrast(1.05);
    position: relative;
    z-index: 80;
}

/* Make partner images a bit smaller on narrow screens */
@media (max-width: 480px) {
    .footer-partners .partner-img { width: 44px; height: 44px; }
    .footer-logo-img { width: 48px; height: 48px; }
    .logo-img { width: 48px; height: 48px; }
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .safety-content {
        flex-direction: column;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 32px;
    }
}
