/* MCG LLC - Engineering Services Website v2 */
/* Orange Palette from mcgllc.com */

:root {
    --navy-dark: #2f2e39;
    --orange-primary: #F26f27;
    --orange-light: #ff8c4a;
    --orange-dark: #d45a15;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-text: #666666;
    --gray-dark: #333333;

    /* Technical accents */
    --cyan-tech: #73b0c9;
    --blue-link: #0066cc;

    /* Spacing */
    --container-width: 1170px;
    --section-padding: 80px;
    --nav-gap: 22px;   /* one repeatable header spacing: logo -> first item AND item -> item (fits 7-item menu on one row) */
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-dark);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.3;
}

h1 {
    font-size: 52px;
    margin-bottom: 20px;
}

h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: var(--navy-dark);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--nav-gap);
}

.logo {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
}

.logo-mcg {
    color: var(--white);
}

.logo-llc {
    color: var(--orange-primary);
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: var(--nav-gap);
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--orange-primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange-primary);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, #1a1923 100%);
    color: var(--white);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 1px, transparent 99px, rgba(115, 176, 201, 0.05) 100px),
        linear-gradient(0deg, transparent 1px, transparent 99px, rgba(115, 176, 201, 0.05) 100px);
    background-size: 100px 100px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    font-size: 60px;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-primary,
.btn-secondary,
.btn-primary-large {
    display: inline-block;
    padding: 15px 35px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary,
.btn-primary-large {
    background: var(--orange-primary);
    color: var(--white);
    border: 2px solid var(--orange-primary);
}

.btn-primary:hover,
.btn-primary-large:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 111, 39, 0.3);
}

.btn-primary-large {
    padding: 20px 50px;
    font-size: 16px;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy-dark);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.stat-box {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--orange-primary);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--orange-primary);
    margin-bottom: 10px;
    font-family: 'Josefin Sans', sans-serif;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

/* Hero with Background Image */
.hero-with-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* converted hero background: real <img> for SEO, fills the hero behind the text */
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

.hero-with-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(47, 46, 57, 0.86) 0%, rgba(26, 25, 35, 0.9) 100%);
    opacity: 1;
    z-index: 1;
}

.hero-with-image .container {
    position: relative;
    z-index: 2;
}

/* legible text over the dimmed hero image */
.hero-with-image h1 {
    color: var(--white);
}

.hero-with-image .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    margin-top: 10px;
}

/* Section Styles */
section {
    padding: var(--section-padding) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    color: var(--gray-text);
}

/* Capabilities Section */
.capabilities {
    background: var(--gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--orange-primary);
    transition: all 0.3s;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 72px;
    font-weight: 700;
    color: rgba(242, 111, 39, 0.1);
    font-family: 'Josefin Sans', sans-serif;
    line-height: 1;
}

.service-card h3 {
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.service-card p {
    margin-bottom: 20px;
    color: var(--gray-text);
}

.tech-list {
    list-style: none;
    margin-bottom: 25px;
}

.tech-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--gray-dark);
    font-size: 15px;
}

.tech-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--orange-primary);
    font-weight: bold;
}

.service-link {
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Josefin Sans', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.service-link:hover {
    color: var(--orange-dark);
}

/* Why MCG Section */
.why-mcg {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.why-item {
    padding: 30px;
    border-left: 4px solid var(--cyan-tech);
}

.why-item h3 {
    color: var(--navy-dark);
    margin-bottom: 15px;
}

.why-item p {
    color: var(--gray-text);
    line-height: 1.8;
}

/* Technical Resources Section */
.technical-resources {
    background: var(--navy-dark);
    color: var(--white);
}

.technical-resources .section-title {
    color: var(--white);
}

.technical-resources .section-intro {
    color: rgba(255, 255, 255, 0.8);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.resource-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--orange-primary);
    transform: translateX(-4px);
    transition: transform 0.3s;
}

.resource-card:hover::before {
    transform: translateX(0);
}

.resource-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--orange-primary);
    transform: translateX(5px);
}

.resource-card h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 22px;
}

.resource-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.7;
}

.resource-tag {
    display: inline-block;
    padding: 6px 15px;
    background: var(--orange-primary);
    color: var(--white);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
}

.cta-section .btn-primary-large {
    background: var(--white);
    color: var(--orange-primary);
    border-color: var(--white);
}

.cta-section .btn-primary-large:hover {
    background: var(--navy-dark);
    color: var(--white);
    border-color: var(--navy-dark);
}

/* Footer */
.main-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--orange-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 980px) {
    .main-header .container {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .why-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 32px;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        text-align: center;
    }

    section {
        padding: 60px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 3D Printing Page Specific Styles */
.printing-overview {
    background: var(--white);
    padding: 60px 0;
}

.intro-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-text);
    margin-bottom: 50px;
    max-width: 900px;
}

.capability-highlight {
    background: var(--gray-light);
    padding: 50px;
    border-radius: 4px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.highlight-item {
    text-align: center;
}

.highlight-number {
    font-size: 56px;
    font-weight: 700;
    color: var(--orange-primary);
    font-family: 'Josefin Sans', sans-serif;
    margin-bottom: 15px;
}

.highlight-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.highlight-item p {
    font-size: 15px;
    color: var(--gray-text);
}

.equipment-section {
    background: var(--gray-light);
    padding: 60px 0;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.equipment-card {
    background: var(--white);
    padding: 35px;
    border-radius: 4px;
    border-top: 4px solid var(--cyan-tech);
}

.equipment-card h3 {
    color: var(--navy-dark);
    margin-bottom: 15px;
}

.equipment-card p {
    color: var(--gray-text);
    margin-bottom: 15px;
}

.equipment-card ul {
    list-style: none;
}

.equipment-card li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: var(--gray-dark);
}

.equipment-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--cyan-tech);
    font-weight: bold;
}

.material-categories {
    background: var(--white);
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.category-card {
    background: var(--gray-light);
    padding: 35px;
    border-radius: 4px;
    border-left: 4px solid var(--orange-primary);
}

.category-card h3 {
    color: var(--navy-dark);
    margin-bottom: 10px;
}

.category-desc {
    color: var(--gray-text);
    margin-bottom: 20px;
    font-size: 15px;
}

.material-list {
    margin-bottom: 20px;
}

.material-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 15px;
}

.material-item strong {
    color: var(--navy-dark);
}

.inhouse-badge,
.partner-badge {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.inhouse-badge {
    background: #4caf50;
    color: var(--white);
}

.partner-badge {
    background: var(--cyan-tech);
    color: var(--white);
}

.category-link {
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.category-link:hover {
    color: var(--orange-dark);
}

.dfam-section {
    background: var(--navy-dark);
    color: var(--white);
    padding: 60px 0;
}

.dfam-section .section-intro {
    color: rgba(255, 255, 255, 0.8);
}

.dfam-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.dfam-topic {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 4px;
    border-left: 4px solid var(--orange-primary);
}

.dfam-topic h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.dfam-topic p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.dfam-topic ul {
    list-style: none;
}

.dfam-topic li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}

.dfam-topic li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--orange-primary);
}

.applications-section {
    background: var(--gray-light);
    padding: 60px 0;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.app-category {
    background: var(--white);
    padding: 30px;
    border-radius: 4px;
}

.app-category h3 {
    color: var(--orange-primary);
    margin-bottom: 15px;
}

.app-category ul {
    list-style: none;
}

.app-category li {
    padding: 8px 0 8px 20px;
    position: relative;
    color: var(--gray-dark);
}

.app-category li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--orange-primary);
}

.process-section {
    background: var(--white);
    padding: 60px 0;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.process-step {
    flex: 1;
    position: relative;
    padding: 25px;
    background: var(--gray-light);
    border-radius: 4px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--orange-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Josefin Sans', sans-serif;
    margin: 0 auto 15px;
}

.process-step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 15px;
}

.time-estimate {
    display: inline-block;
    padding: 6px 12px;
    background: var(--navy-dark);
    color: var(--white);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.turnaround-note {
    background: rgba(242, 111, 39, 0.1);
    padding: 25px;
    border-radius: 4px;
    border-left: 4px solid var(--orange-primary);
    text-align: center;
}

.turnaround-note p {
    font-size: 17px;
    color: var(--gray-dark);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-orange {
    color: var(--orange-primary);
}

.bg-navy {
    background: var(--navy-dark);
}

.bg-gray-light {
    background: var(--gray-light);
}

/* Responsive for 3D Printing Page */
@media (max-width: 980px) {
    .highlight-grid,
    .equipment-grid,
    .categories-grid,
    .dfam-grid,
    .app-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        flex-direction: column;
    }
}
