/* ==========================================
   QMETRICS ENGINEERING - STYLESHEET
   ========================================== */

/* COLOR VARIABLES */
:root {
    --primary-dark: #1a4d7a;
    --primary-medium: #2d5f8d;
    --accent-red: #e74c3c;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #666666;
    --border-light: #e0e0e0;
}

/* ==========================================
   GLOBAL STYLES
   ========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

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

.navbar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.nav-brand {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.3s;
    padding: 0.5rem 0;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link.active {
    border-bottom: 2px solid var(--accent-red);
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    background-color: var(--primary-dark);
    background-image: linear-gradient(135deg, rgba(26, 77, 122, 0.88) 0%, rgba(20, 42, 66, 0.78) 100%),
        url('/.netlify/images?url=/img/hero-bridge.png&w=1600&fm=webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1,
.hero p {
    text-shadow: 0 1px 12px rgba(12, 26, 42, 0.45);
}

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 2rem;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

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

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

.btn-primary:active {
    transform: translateY(0);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about {
    padding: 4rem 2rem;
    background-color: var(--white);
}

.about .container {
    max-width: 900px;
}

.about h2 {
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-red);
    border-radius: 2px;
}

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

.about-content p {
    margin-bottom: 1rem;
}

.about-content h3 {
    color: var(--primary-dark);
    font-size: 18px;
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.service-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
}

.credentials-box {
    background-color: var(--light-bg);
    border-left: 4px solid var(--accent-red);
    padding: 2rem;
    border-radius: 4px;
    margin-top: 2rem;
}

.credentials-box h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.credentials-box p {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .about {
        padding: 2rem;
    }
    
    .about h2 {
        font-size: 28px;
    }
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.services {
    padding: 4rem 2rem;
    background-color: var(--light-bg);
}

.services h2 {
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-red);
    border-radius: 2px;
}

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

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.service-card h3 {
    color: var(--primary-dark);
    font-size: 18px;
    margin-bottom: 1rem;
}

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

@media (max-width: 768px) {
    .services {
        padding: 2rem;
    }
    
    .services h2 {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta {
    background-color: var(--primary-dark);
    background-image: linear-gradient(135deg, rgba(26, 77, 122, 0.9) 0%, rgba(20, 42, 66, 0.85) 100%),
        url('/.netlify/images?url=/img/steel-structure.png&w=1400&fm=webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta p {
    font-size: 18px;
    margin-bottom: 2rem;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .cta {
        padding: 2rem;
    }
    
    .cta h2 {
        font-size: 28px;
    }
    
    .cta p {
        font-size: 16px;
    }
}

/* ==========================================
   CONTACT PAGE STYLES
   ========================================== */

.contact-header {
    background-color: var(--primary-dark);
    background-image: linear-gradient(135deg, rgba(26, 77, 122, 0.9) 0%, rgba(20, 42, 66, 0.85) 100%),
        url('/.netlify/images?url=/img/steel-structure.png&w=1400&fm=webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.contact-header h1 {
    font-size: 42px;
    margin-bottom: 0.5rem;
}

.contact-header p {
    font-size: 18px;
    opacity: 0.95;
}

.contact-section {
    padding: 4rem 2rem;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 28px;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item h3 {
    color: var(--primary-dark);
    font-size: 16px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

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

.info-item a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
}

.info-item a:hover {
    text-decoration: underline;
}

/* ==========================================
   CONTACT FORM
   ========================================== */

.contact-form-wrapper {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

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

.form-group button {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-header h1 {
        font-size: 32px;
    }
    
    .contact-section {
        padding: 2rem;
    }
}

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

.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer p {
    margin: 0.5rem 0;
    font-size: 14px;
}

.footer a {
    color: var(--white);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 26px;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
/* ==========================================
   HERO LICENSE BADGE
   ========================================== */

.hero-badge {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background-color: rgba(255, 255, 255, 0.08);
}

.hero .btn {
    margin-top: 2rem;
}

/* ==========================================
   HONEYPOT (spam protection, hidden from humans)
   ========================================== */

.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================
   THANK YOU PAGE
   ========================================== */

.thank-you {
    padding: 5rem 2rem;
    text-align: center;
    background-color: var(--white);
}

.thank-you .container {
    max-width: 640px;
}

.thank-you-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: var(--accent-red);
    color: var(--white);
    font-size: 36px;
    line-height: 72px;
    font-weight: 700;
}

.thank-you h1 {
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.thank-you p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.thank-you .btn {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .thank-you {
        padding: 3rem 1.5rem;
    }

    .thank-you h1 {
        font-size: 28px;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-red);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
