/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    font-family: 'Open Sans', sans-serif;
    background: #0f1724;
    color: #c8cdd6;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ===== VARIABLES ===== */
:root {
    --bg-dark: #0f1724;
    --bg-card: #161e2e;
    --bg-card-hover: #1c2640;
    --orange: #e8751a;
    --orange-light: #f09030;
    --orange-glow: rgba(232, 117, 26, 0.15);
    --text: #c8cdd6;
    --text-light: #8892a4;
    --white: #ffffff;
    --border: rgba(255,255,255,0.06);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--white); line-height: 1.2; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-light); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}
.btn-primary:hover {
    background: var(--orange-light);
    border-color: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232,117,26,0.35);
    color: var(--white);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.05);
    color: var(--white);
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #0a1018;
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}
.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-light);
    white-space: nowrap;
}
.top-bar-item:hover { color: var(--orange); }
.top-bar-item svg { opacity: 0.6; }

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 36, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
.site-header.scrolled {
    top: 0;
    background: rgba(15, 23, 36, 0.97);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.site-header.scrolled + .top-bar,
.top-bar.hidden { transform: translateY(-100%); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}
.logo-link {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    padding: 6px 14px;
    border-radius: 10px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 0 20px rgba(255,255,255,0.08), 0 0 40px rgba(232,117,26,0.1);
    transition: all var(--transition);
}
.logo-link:hover {
    background: rgba(255,255,255,0.18);
    box-shadow: 0 0 25px rgba(255,255,255,0.12), 0 0 50px rgba(232,117,26,0.15);
}
.logo {
    height: 85px;
    width: auto;
    object-fit: contain;
    transition: height var(--transition);
    filter: brightness(1.1);
}
.site-header.scrolled .logo { height: 65px; }
.site-header.scrolled .logo-link {
    padding: 4px 10px;
}
.main-nav {
    display: flex;
    gap: 32px;
}
.nav-link {
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding: 4px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}
.header-phone:hover { color: var(--orange-light); }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0f1724;
}
.hero-video-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}
.hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: auto;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Mobile: lighter vertical gradient so video is visible */
    background: linear-gradient(
        180deg,
        rgba(15, 23, 36, 0.5) 0%,
        rgba(15, 23, 36, 0.2) 40%,
        rgba(15, 23, 36, 0.3) 70%,
        rgba(15, 23, 36, 0.75) 100%
    );
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    margin: 0 auto;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.6);
    text-wrap: balance;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    font-weight: 400;
    text-wrap: balance;
}
.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Desktop hero: full-width video background, centered text */
@media (min-width: 768px) {
    .hero {
        justify-content: center;
    }
    .hero-video-wrap {
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
    }
    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(15, 23, 36, 0.55) 0%,
            rgba(15, 23, 36, 0.25) 40%,
            rgba(15, 23, 36, 0.35) 70%,
            rgba(15, 23, 36, 0.8) 100%
        );
    }
    .hero-content {
        text-align: center;
        margin: 0 auto;
        max-width: 800px;
        padding: 0 24px;
    }
    .hero-btns {
        justify-content: center;
    }
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--bg-card);
    border-top: 3px solid var(--orange);
    padding: 40px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-item { padding: 10px; }
.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--orange);
    display: inline;
}
.stat-suffix {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--orange);
}
.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* ===== SECTIONS COMMON ===== */
.section {
    padding: 100px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-tag {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--orange);
    margin-bottom: 12px;
    padding: 6px 16px;
    border: 1px solid rgba(232,117,26,0.3);
    border-radius: 50px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}
.about-text strong { color: var(--white); }
.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.highlight-card:hover {
    border-color: rgba(232,117,26,0.3);
    background: var(--bg-card-hover);
}
.highlight-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    color: var(--orange);
}
.highlight-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}
.highlight-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== SERVICES ===== */
.services-section { background: var(--bg-card); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    transition: all var(--transition);
}
.service-card:hover {
    border-color: rgba(232,117,26,0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--orange);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.service-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== EQUIPMENT ===== */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.equip-card {
    perspective: 800px;
    border-radius: var(--radius);
    height: 200px;
}
.equip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.equip-card:hover .equip-card-inner,
.equip-card.flipped .equip-card-inner {
    transform: rotateY(180deg);
}
.equip-card-front,
.equip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}
.equip-card-front {
    background: var(--bg-card);
}
.equip-card-back {
    background: linear-gradient(135deg, #1a2a40, #243550);
    transform: rotateY(180deg);
    gap: 12px;
    border-color: rgba(232,117,26,0.3);
}
.equip-back-svg {
    width: 100px;
    height: 50px;
    flex-shrink: 0;
}
.equip-back-year {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--orange);
    letter-spacing: 0.05em;
}
.equip-back-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}
/* Photo-back flip cards */
.equip-card-back.equip-back-photo {
    padding: 0;
    overflow: hidden;
    background: #111;
    gap: 0;
}
.equip-back-photo .equip-back-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.equip-back-photo .equip-back-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 14px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.equip-back-photo .equip-back-overlay .equip-back-label {
    font-size: 0.85rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.equip-back-photo .equip-back-overlay .equip-back-year {
    font-size: 0.78rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
/* Equipment type gradient accents */
.equip-back-excavator { background: linear-gradient(135deg, #1a2a40 0%, #2a3d55 50%, rgba(232,117,26,0.15) 100%); }
.equip-back-mini { background: linear-gradient(135deg, #1a2a40 0%, #253650 50%, rgba(232,117,26,0.1) 100%); }
.equip-back-loader { background: linear-gradient(135deg, #1c2e42 0%, #2d4560 50%, rgba(232,117,26,0.15) 100%); }
.equip-back-dozer { background: linear-gradient(135deg, #1a2838 0%, #283d52 50%, rgba(232,117,26,0.12) 100%); }
.equip-back-backhoe { background: linear-gradient(135deg, #1c2a3e 0%, #2a3f58 50%, rgba(232,117,26,0.12) 100%); }
.equip-back-truck { background: linear-gradient(135deg, #1a2535 0%, #263a50 50%, rgba(232,117,26,0.15) 100%); }
.equip-icon {
    width: 80px;
    height: 60px;
    margin: 0 auto 16px;
    color: var(--orange);
    opacity: 0.8;
}
.equip-icon svg { width: 100%; height: 100%; }
.equip-card h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.equip-year {
    font-size: 0.78rem;
    color: var(--text-light);
}
.equip-new {
    color: var(--orange);
    font-weight: 700;
}

/* ===== CURRENT PROJECTS ===== */
.current-projects-section { background: var(--bg-card); }
.current-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.current-project-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.current-project-card:hover {
    border-color: rgba(232,117,26,0.3);
    transform: translateY(-2px);
}
.current-project-img {
    height: 220px;
    overflow: hidden;
}
.current-project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.placeholder-img {
    background: linear-gradient(135deg, #1a2438, #243050);
    display: flex;
    align-items: center;
    justify-content: center;
}
.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    opacity: 0.4;
}
.placeholder-content span { font-size: 0.8rem; font-style: italic; }
.current-project-info {
    padding: 24px;
}
.current-project-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.project-client {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.project-status {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.project-status.active { color: #4ade80; }

/* ===== PROJECT HISTORY ===== */
.project-year-group {
    margin-bottom: 40px;
}
.project-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(232,117,26,0.2);
}
.project-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.project-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    align-items: center;
    transition: background var(--transition);
}

/* Non-flip project rows — push location to far right */
.project-row:not(.project-flip) {
    grid-template-columns: 1fr auto;
}

.project-row:not(.project-flip) .project-location {
    text-align: right;
}

.project-row:not(.project-flip) .project-value:empty {
    display: none;
}

/* Override grid for flip cards — let flex handle layout */
.project-row.project-flip {
    display: block;
    padding: 0;
}
.project-row:hover { background: var(--bg-card-hover); }
.project-row.municipal { border-left: 3px solid var(--orange); }
.project-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
}
.project-location {
    font-size: 0.88rem;
    color: var(--text-light);
}
.project-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--orange);
    text-align: right;
    min-width: 120px;
}
.projects-total {
    text-align: center;
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(232,117,26,0.3);
    font-size: 1.1rem;
    color: var(--white);
}
.projects-total strong { color: var(--orange); }
.projects-total-divider {
    display: inline-block;
    margin: 0 16px;
    color: var(--text-light);
    opacity: 0.4;
}

/* ===== GALLERY ===== */
.gallery-section { background: var(--bg-card); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}
.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15,23,36,0);
    transition: background var(--transition);
}
.gallery-item:hover::after { background: rgba(15,23,36,0.2); }

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 16px;
    opacity: 0.7;
    transition: opacity var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 20px; right: 20px; font-size: 2.5rem; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ===== AFFILIATIONS ===== */
.affiliations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
.affiliation-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    transition: all var(--transition);
    color: var(--text);
}
.affiliation-card:hover {
    border-color: rgba(232,117,26,0.3);
    transform: translateY(-2px);
    color: var(--text);
}
.affiliation-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--orange);
}
.affiliation-icon svg { width: 100%; height: 100%; }
.affiliation-card h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.affiliation-card p {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.contact-item, .contact-hours {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-item svg, .contact-hours svg {
    color: var(--orange);
    min-width: 24px;
    margin-top: 2px;
}
.contact-item strong, .contact-hours strong {
    display: block;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 4px;
}
.contact-item a, .contact-item span,
.contact-hours span {
    font-size: 0.95rem;
    color: var(--text);
}
.contact-item a:hover { color: var(--orange); }

/* Form */
.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238892a4' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* File Upload */
.file-upload-area {
    position: relative;
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.file-upload-area:hover, .file-upload-area.dragover {
    border-color: var(--orange);
    background: var(--orange-glow);
}
.file-upload-area svg { color: var(--text-light); }
.file-upload-text {
    font-size: 0.9rem;
    color: var(--text-light);
}
.file-upload-text strong { color: var(--orange); }
.file-upload-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.6;
}
.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.file-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text);
}
.file-item .remove-file {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
}
.file-item .remove-file:hover { color: #ef4444; }

.btn-submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
    padding: 16px 32px;
    font-size: 1rem;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--orange) 0%, #c4600e 100%);
    padding: 60px 0;
    text-align: center;
}
.cta-banner h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.cta-banner p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
}
.cta-banner .btn-outline {
    border-color: rgba(255,255,255,0.5);
    font-size: 1rem;
}
.cta-banner .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

/* ===== FOOTER ===== */
.site-footer {
    background: #0a1018;
    border-top: 1px solid var(--border);
    padding-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-logo {
    height: 60px;
    margin-bottom: 16px;
}
.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-light);
    max-width: 350px;
}
.footer-links h4, .footer-contact h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    color: var(--white);
}
.footer-links a, .footer-contact a, .footer-contact span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--orange); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* ===== MOBILE NAV ===== */
@media (max-width: 900px) {
    .top-bar { display: none; }
    .site-header { top: 0; }
    .header-inner { height: 70px; }
    .logo { height: 55px; }
    .site-header.scrolled .logo { height: 50px; }
    .header-phone { display: none; }
    .hamburger { display: flex; }
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15,23,36,0.98);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease;
        border-bottom: 1px solid var(--border);
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-link {
        padding: 14px 24px;
        width: 100%;
        text-align: center;
    }
    /* Mobile phone + address in nav */
    .main-nav::after {
        content: '📞 519-563-8548';
        display: block;
        padding: 14px 24px;
        color: var(--orange);
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 0.95rem;
    }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .affiliations-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: 1fr; }
    .current-projects-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-number { font-size: 2.2rem; }
    .affiliations-grid { grid-template-columns: repeat(2, 1fr); }
    .project-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .project-value {
        text-align: left;
        min-width: auto;
    }
    .projects-total-divider { display: block; margin: 8px 0; font-size: 0; height: 0; overflow: hidden; }
    .equipment-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
    .footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hero-btns { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .affiliations-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .equipment-grid { grid-template-columns: 1fr; }
}

/* === PROJECT FLIP CARDS === */
.project-flip {
    cursor: pointer;
}

.project-flip-inner {
    position: relative;
    width: 100%;
}

.project-flip-back {
    display: none !important;
}

.project-flip:hover .project-flip-front {
    display: none !important;
}

.project-flip:hover .project-flip-back {
    display: block !important;
}


/* Front — two rows with flex for true edge alignment */
.project-flip-front {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 1.25rem;
    gap: 0.2rem;
    width: 100%;
    box-sizing: border-box;
}

.project-flip-front .project-row-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
}

.project-flip-front .project-name {
    white-space: nowrap;
    text-align: left;
}

.project-flip-front .project-value {
    white-space: nowrap;
    text-align: right;
}

.project-consultant-tag {
    color: #e8751a;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    text-align: left;
}

.project-flip-front .project-location {
    font-size: 0.82rem;
    white-space: nowrap;
    text-align: right;
}

/* Back — full width, clean layout */
.project-flip-back {
    background: linear-gradient(135deg, #141b2a 0%, #1a2438 100%);
    border: 1px solid rgba(232, 117, 26, 0.25);
    border-left: 3px solid #e8751a;
    border-radius: 4px;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
}

.project-back-title {
    color: #e8751a;
    font-size: 0.95rem;
    font-weight: 700;
}

.project-back-desc {
    color: #c0c8d8;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

.project-back-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
    color: #8890a0;
    font-size: 0.8rem;
}

.project-back-value {
    color: #e8751a;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Mobile: stack project info vertically */
@media (max-width: 768px) {
    /* Disable hover flip on mobile - use tap instead */
    .project-flip:hover .project-flip-front { display: flex !important; }
    .project-flip:hover .project-flip-back { display: none !important; }
    .project-flip.flipped .project-flip-front { display: none !important; }
    .project-flip.flipped .project-flip-back { display: block !important; }

    /* Stack the two lines vertically on mobile */
    .project-flip-front {
        flex-direction: column !important;
        gap: 0.15rem !important;
        padding: 0.6rem 1rem !important;
    }

    .project-flip-front .project-row-line {
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
    }

    /* Name takes full width, value below it */
    .project-flip-front .project-name {
        font-size: 0.85rem !important;
    }

    .project-flip-front .project-value {
        font-size: 0.8rem !important;
    }

    .project-consultant-tag {
        font-size: 0.7rem !important;
    }

    .project-flip-front .project-location {
        font-size: 0.72rem !important;
    }

    /* Non-flip rows (Various items) */
    .project-row:not(.project-flip) {
        grid-template-columns: 1fr !important;
        gap: 0.15rem !important;
        padding: 0.6rem 1rem !important;
    }

    .project-row:not(.project-flip) .project-location {
        text-align: left !important;
        font-size: 0.72rem !important;
    }

    /* Back card on mobile */
    .project-flip-back {
        padding: 0.75rem 1rem !important;
    }

    .project-back-desc {
        font-size: 0.78rem !important;
    }
}
