/* ============================================================
   FOOTER-CUSTOM: ATOM TECH SERVICES FOOTER
   - Height set to match uploaded Container-scaled.png (2560x1055)
   - Perfectly aligned to site grid (--site-max-width & --site-gutter)
   - Left: Atom Tech Services Logo + Headline + "Contact Peter ↗" copper pill button
   - Middle: "EXPLORE" section with navigation links
   - Right: "CONTACT" section with Peter McMahon contact details
   - Bottom bar: Copyright (left) + RTO disclaimer (right)
   - Dark industrial teal / electrical panel backdrop with moody lighting
   ============================================================ */

:root {
    /* Global Typography System */
    --font-heading: 'Archivo', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

    /* Share the exact same site-wide width & gutter */
    --site-max-width: 1700px;
    --site-gutter: clamp(20px, 3.5vw, 40px);

    /* Height set to exact design specification */
    --fc-height: 814px;

    --fc-teal-dark: #05161d;
    --fc-teal-mid: #0b2b35;
    --fc-copper: #b5562b;
    --fc-copper-hover: #cf6735;
    --fc-white: #ffffff;
    --fc-text-light: #d1d9dd;
    --fc-text-muted: rgba(255, 255, 255, 0.55);
    --fc-border: rgba(255, 255, 255, 0.1421);
}

/* 1. Hide default Twenty Twenty-Five / block theme footer */
.wp-site-blocks>footer.wp-block-template-part,
footer.wp-block-template-part {
    display: none !important;
}

/* Sticky page footer: guarantees footer stays at the bottom of the screen on short pages */
body,
.wp-site-blocks {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wp-site-blocks>main,
main#wp--skip-link--target {
    flex: 1 0 auto;
}

/* 2. Footer Wrapper (Height set to 814px) */
.footer-custom {
    position: relative;
    width: 100%;
    min-height: var(--fc-height, 814px);
    background-color: var(--fc-teal-dark);
    color: var(--fc-white);
    font-family: var(--font-body);
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 40px;
    padding-bottom: 25px;
}

.footer-custom *,
.footer-custom *::before,
.footer-custom *::after {
    box-sizing: border-box;
}

/* Background image */
.footer-custom-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 1;
    pointer-events: none;
    z-index: 2;
}

/* Gradient overlay for moody contrast & readability */
.footer-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 80% 30%, rgba(13, 85, 104, 0.25) 0%, transparent 65%),
        linear-gradient(180deg, rgba(5, 22, 29, 0.60) 0%, rgba(4, 15, 20, 0.88) 100%);
    pointer-events: none;
    z-index: 2;
}

/* ============================================================
   CONTAINER: ALIGNED TO UNIFIED SITE GRID & FULL VERTICAL SPREAD
   ============================================================ */
.footer-custom-inner {
    position: relative;
    z-index: 3;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding-left: var(--site-gutter);
    padding-right: var(--site-gutter);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

/* 3. Middle content wrapper (Logo, Divider, 3 Columns) - centered vertically */
.footer-custom-middle {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
}

/* Top Logo row */
.footer-custom-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.footer-custom-top .footer-custom-logo-link {
    margin-bottom: 0;
}

/* Horizontal line between logo and tagline: #FFFFFF with 14.21% opacity */
.footer-custom-divider,
.footer-custom hr,
hr.footer-custom-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1421);
    border: none;
    margin: 50px 0;
}

/* 3. Main Footer Content Grid - Centered vertically from top and bottom */
.footer-custom-main {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr 1fr;
    gap: 40px 60px;
    align-items: start;
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.footer-custom-middle .footer-custom-main {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.footer-custom-middle .footer-custom-col {
    margin-top: 0 !important;
}

/* Left Column: Brand & Tagline & Button (Starts flush with left boundary) */
.footer-custom-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    margin: 0;
}

.footer-custom-logo-link {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 36px;
    transition: opacity 0.2s ease;
}

.footer-custom-logo-link:hover {
    opacity: 0.88;
}

.footer-custom-logo-img {
    display: block;
    height: 64px;
    width: 140px;
    object-fit: contain;
}

.footer-custom-tagline {
    font-family: var(--font-heading) !important;
    /* Archivo */
    margin: 0 0 32px 0;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--fc-white);
}

.footer-custom-tagline span {
    display: block;
}

/* Contact Peter Button */
.footer-custom-btn {
    font-family: var(--font-body) !important;
    /* Barlow */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--fc-copper);
    color: var(--fc-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 9999px;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(181, 86, 43, 0.25);
}

.footer-custom-btn:hover {
    background-color: var(--fc-copper-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(181, 86, 43, 0.35);
    color: var(--fc-white);
}

.footer-custom-btn-arrow {
    display: inline-block;
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.footer-custom-btn:hover .footer-custom-btn-arrow {
    transform: translate(2px, -2px);
}

/* Navigation & Contact Columns (EXPLORE & CONTACT) - Aligned side by side with tagline */
.footer-custom-col {
    display: flex;
    flex-direction: column;
    margin-top: calc(64px + 36px);
    /* 100px: aligns side by side with .footer-custom-tagline */
}

.footer-custom-title {
    font-family: var(--font-body) !important;
    /* Barlow */
    margin: 0 0 20px 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--fc-copper);
}

.footer-custom-list {
    font-family: var(--font-body) !important;
    /* Barlow */
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-custom-list li,
.footer-custom-list a,
.footer-custom-info-item {
    font-family: var(--font-body) !important;
    /* Barlow */
    font-size: 18px;
    color: #D8DEE2;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-custom-list a:hover,
.footer-custom-info-item a:hover {
    color: var(--fc-white);
}

.footer-custom-info-item {
    display: block;
}

.footer-custom-info-item a {
    color: var(--fc-text-light);
    text-decoration: none;
}

.footer-custom-info-item strong {
    font-weight: 500;
    color: var(--fc-white);
}

/* 4. Bottom Bar (Pinned to the bottom of the footer) */
.footer-custom-bottom {
    font-family: var(--font-body) !important;
    /* Barlow */
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10%;
    padding-top: 25px;
    font-size: 16px;
    color: #D8DEE2;
    line-height: 1.6;
}

.footer-custom-copyright,
.footer-custom-disclaimer {
    font-family: var(--font-body) !important;
    /* Barlow */
}

.footer-custom-copyright {
    flex-shrink: 0;
}

.footer-custom-disclaimer {
    max-width: 100%;
    text-align: right;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
    .footer-custom {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 35px;
    }

    .footer-custom-inner {
        padding-left: var(--site-gutter);
        padding-right: var(--site-gutter);
    }

    .footer-custom-main {
        grid-template-columns: 1.3fr 1fr 1.1fr;
        gap: 35px 30px;
    }

    .footer-custom-tagline {
        font-size: 26px;
    }

    .footer-custom-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
    }

    .footer-custom-disclaimer {
        text-align: left;
        max-width: 100%;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .footer-custom {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 30px;
    }

    .footer-custom-inner {
        padding-left: var(--site-gutter);
        padding-right: var(--site-gutter);
    }

    .footer-custom-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }

    .footer-custom-brand {
        margin-bottom: 10px;
    }

    .footer-custom-col {
        margin-top: 0;
    }

    .footer-custom-divider {
        margin: 20px 0 24px 0;
    }

    .footer-custom-logo-img {
        height: 38px;
    }

    .footer-custom-tagline {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .footer-custom-btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .footer-custom-bottom {
        padding-top: 25px;
        font-size: 12px;
    }
}

@media (min-width: 992px) and (max-width: 1340px){
	.footer-custom-middle{
		margin-top: 170px !important;
	}
}
