/* ══ Premium Corporate Footer ══════════════════════════════════════════════ */

.main-footer {
    float: left;
    width: 100%;
    background: #111317;
    border-top: 1px solid rgba(39,89,178,0.25);
    position: relative;
    z-index: 10;
    padding: 64px 0 0;
    margin-top: 0;
    text-align: left;
}

/* Force left alignment regardless of inherited container centering */
.main-footer * {
    text-align: left;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1.5fr 1.4fr;
    gap: 50px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    align-items: start;
}

/* Brand column */
.footer-col .footer-logo {
    margin-bottom: 18px;
}
.footer-col .footer-logo img {
    max-width: 170px;
    height: auto;
    filter: brightness(1.12);
}
.footer-tagline {
    color: #4d82e0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.5;
}

/* Column headings */
.footer-col-title {
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 22px;
    padding-bottom: 11px;
    border-bottom: 2px solid #2759B2;
    display: inline-block;
}

/* Quick Links */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links li {
    margin-bottom: 11px;
}
.footer-links li a {
    color: rgba(255,255,255,0.62);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-links li a:hover {
    color: #4d82e0;
    padding-left: 4px;
}

/* Industries */
.footer-industries {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 11px;
}
.footer-industries li {
    margin: 0;
}
.footer-industries li span {
    color: rgba(255,255,255,0.55);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Contact column */
.footer-contact-item {
    margin-bottom: 18px;
}
.footer-contact-item .fci-label {
    color: rgba(255,255,255,0.35);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}
.footer-contact-item a,
.footer-contact-item p {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin: 0;
    line-height: 1.55;
    transition: color 0.2s;
}
.footer-contact-item a:hover {
    color: #4d82e0;
}

/* Social icons */
.footer-social {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.footer-social a:hover {
    background: #2759B2;
    border-color: #2759B2;
    color: #fff;
    transform: translateY(-2px);
}

/* Bottom bar */
.footer-bottom {
    padding: 22px 0;
    text-align: center;
}
.footer-bottom * {
    text-align: center;
}
.footer-bottom p {
    color: rgba(255,255,255,0.32);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.07em;
    margin: 0;
}

/* ── Responsive ── */
@media only screen and (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-inner { padding: 0 40px; }
}
@media only screen and (max-width: 764px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-inner { padding: 0 24px; }
    .main-footer { padding: 44px 0 0; }
    .footer-industries { grid-template-columns: 1fr 1fr; }
}
@media only screen and (max-width: 480px) {
    .footer-industries { grid-template-columns: 1fr; }
}


/* ══ Projects Page — Cards ═════════════════════════════════════════════════ */
/* Kept in this globally-linked stylesheet so cards render correctly even when
   Projects.html is loaded via the template's AJAX navigation (which swaps only
   #wrapper and does not re-load page <head> styles). */

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}
.project-card {
    background: #1a1a2e;
    border: 1px solid rgba(39,89,178,0.2);
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.project-card:hover {
    border-color: rgba(39,89,178,0.6);
    transform: translateY(-4px);
}
.project-card-img {
    width: 100%;
    height: 260px;
    background: #111317;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.project-card-img .bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.project-card-img .img-placeholder {
    color: rgba(255,255,255,0.2);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 2;
    position: relative;
}
.project-card-body {
    padding: 28px 30px 32px;
}
.project-card-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4d82e0;
    margin-bottom: 10px;
    display: block;
}
.project-card-body h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    margin: 0 0 12px;
    line-height: 1.2;
}
.project-card-body p {
    color: rgba(255,255,255,0.6);
    font-size: 12.5px;
    line-height: 1.7;
    margin: 0 0 20px;
}
.project-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}
.project-meta-item {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}
.project-meta-item strong {
    color: rgba(255,255,255,0.7);
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
}
@media (max-width: 764px) {
    .projects-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Hide the large faded "02." section-number watermark on the Projects page only
   (it overlapped the project cards as a big white shape on hover). The watermark
   stays intact on other inner pages where it sits behind flowing text. */
[data-pagetitle="Projects"] .section-number { display: none; }


/* ══ Technical Specifications table (project detail accordions) ═════════════ */
/* Lives here (globally linked) rather than in page-specific JunoMoneta.css so the
   spec table stays styled even when CableBridge.html is reached via AJAX nav,
   which swaps only #wrapper and never re-loads the page <head> stylesheets. */

.technical-specs-table {
    width: 100%;
    border-collapse: collapse;
    color: #666;
    font-size: 12px;
    line-height: 1.6;
}
.technical-specs-table th,
.technical-specs-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}
.technical-specs-table th {
    width: 38%;
    color: #292929;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
}
.technical-specs-table tr:last-child th,
.technical-specs-table tr:last-child td {
    border-bottom: 0;
}
.madrix-logo-placeholder {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 10px;
    background: #35353A;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
}
.madrix-logo-note {
    color: #777;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
@media (max-width: 764px) {
    .technical-specs-table th,
    .technical-specs-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    .technical-specs-table th {
        padding-bottom: 2px;
    }
}


/* ══ Homepage Stats Banner ═════════════════════════════════════════════════ */
/* Globally linked (here) so it stays styled even when index.html is reached via
   the template's AJAX nav, which swaps only #wrapper and never re-loads <head>. */

.stats-banner {
    float: left;
    clear: both;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #05070d;
    padding: 56px 60px;
    box-sizing: border-box;
    max-height: 600px;
    transition: max-height 0.55s ease, opacity 0.45s ease, padding 0.55s ease;
}
/* Hidden state — applied by JS on any hero slide other than the first */
.stats-banner.stats-banner--off {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}
/* soft colorful light-reflection glow over the right half */
.stats-banner::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(40px);
    opacity: 0.9;
    background:
        radial-gradient(circle at 68% 58%, rgba(166,77,255,0.55), transparent 45%),
        radial-gradient(circle at 86% 42%, rgba(0,206,150,0.45), transparent 42%),
        radial-gradient(circle at 58% 78%, rgba(60,130,255,0.50), transparent 40%),
        radial-gradient(circle at 93% 72%, rgba(255,77,166,0.45), transparent 40%);
}
.stats-banner-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: start;
}
.stat-item {
    text-align: left;
}
.stat-icon {
    display: block;
    color: #4da6ff;
    font-size: 30px;
    line-height: 1;
    margin-bottom: 16px;
}
.stat-icon-img {        /* used if a real logo image replaces the <i> icon */
    display: block;
    height: 34px;
    width: auto;
    margin-bottom: 16px;
}
.stats-brandmark {      /* used if the brand-mark placeholder is filled in */
    position: absolute;
    top: 28px;
    right: 40px;
    height: 40px;
    width: auto;
    opacity: 0.5;
    z-index: 2;
}
.stat-number {
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.1;
    margin-bottom: 6px;
}
.stat-label {
    color: #6b7a99;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}
@media only screen and (max-width: 1024px) {
    .stats-banner-inner { grid-template-columns: 1fr 1fr; gap: 36px 30px; }
    .stats-banner::before { width: 70%; }
}
@media only screen and (max-width: 600px) {
    .stats-banner { padding: 40px 24px; }
    .stats-banner-inner { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
    .stat-number { font-size: 24px; }
    .stat-icon { font-size: 26px; }
}
