/*
Theme Name: True Blue Mechanical
Theme URI: https://trueblueme.com
Author: LMH Agency
Author URI: https://lmh.agency
Description: Custom child theme for True Blue Mechanical
Version: 1.0.0
License: Proprietary
Template: lmh-parent
Text Domain: true-blue
*/

@import url('https://fonts.googleapis.com/css2?family=Geologica:wght,CRSV@100..900,0&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
    /* Colors */
    --color-light-blue:    #40C3F7;
    --color-light-grey:    #F2F2F2;
    --color-blue:          #2E65C3;
    --color-dark-blue:     #0E2C5E;
    --color-periwinkle:    #AFC9F9;

    /* Typography */
    --font-heading: 'Geologica', sans-serif;
    --font-body:    'PT Sans', sans-serif;
}

/* ==========================================================================
   BASE TYPOGRAPHY
   ========================================================================== */

body {
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top accent bar */
.header-top-bar {
    background-color: var(--color-light-blue);
    height: 8px;
}

/* Main nav bar */
.header-navbar {
    background-color: var(--color-dark-blue);
    padding: 0;
}

.header-navbar .container {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    min-height: 88px;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
    margin-right: auto;
}

.header-logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.header-logo .site-title {
    color: var(--color-light-grey);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    text-decoration: none;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center
}

.header-nav #primary-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav #primary-menu > li > a {
    color: var(--color-light-grey);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.header-nav #primary-menu > li > a:hover,
.header-nav #primary-menu > li.current-menu-item > a {
    color: var(--color-light-blue);
}

/* Dropdown caret */
.header-nav #primary-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 6px;
    vertical-align: middle;
}

/* CTA Buttons */
.header-ctas {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.875rem;
    border-radius: 73px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-cta:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.btn-cta-primary {
    background-color: var(--color-light-blue);
    color: var(--color-dark-blue);
}

.btn-cta-secondary {
    background-color: var(--color-light-grey);
    color: var(--color-dark-blue);
}

/* Mobile toggler */
.header-toggler {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.header-toggler span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-light-grey);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile menu */
.header-mobile-menu {
    background-color: var(--color-dark-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    padding: 1rem 0 1.5rem;
}

.header-mobile-menu.is-open {
    display: block;
}

.header-mobile-menu #primary-menu-mobile {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-mobile-menu #primary-menu-mobile li a {
    display: block;
    color: var(--color-light-grey);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: color 0.2s ease;
}

.header-mobile-menu #primary-menu-mobile li a:hover {
    color: var(--color-light-blue);
}

.header-mobile-menu .header-ctas {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.25rem;
}

.header-mobile-menu .btn-cta {
    justify-content: center;
}

/* Responsive */
@media (max-width: 991.98px) {
    .header-nav,
    .header-ctas {
        display: none;
    }

    .header-toggler {
        display: flex;
    }
}



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

/* ── Wrapper ── */
.site-footer {
    background-color: var(--color-dark-blue);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 14px;
}

/* ── Main grid ── */
.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ── Col 1: Brand ── */
.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 220px;
    height: auto;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 280px;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.footer-social__btn:hover,
.footer-social__btn:focus-visible {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-social__btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

/* ── Cols 2-3: Nav menus ── */
.site-footer .footer-nav__title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.5;
    text-transform: none;
}

.site-footer .footer-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer .footer-nav__list li {
    padding: 0;
    margin: 0;
}

.site-footer .footer-nav__list li a {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 0;
    background: none;
}

.site-footer .footer-nav__list li a:hover,
.site-footer .footer-nav__list li a:focus-visible {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ── Col 4: Contact Info ── */
.footer-contact__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--color-light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-contact__icon svg {
    display: block;
}

.footer-contact__link,
.footer-contact__text {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact__link:hover,
.footer-contact__link:focus-visible {
    color: rgba(255, 255, 255, 0.9);
}

/* ── Bottom bar ── */
.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom__credit {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.footer-bottom__credit a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom__credit a:hover,
.footer-bottom__credit a:focus-visible {
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom__legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom__legal li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-bottom__legal li a:hover,
.footer-bottom__legal li a:focus-visible {
    color: rgba(255, 255, 255, 0.9);
}

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

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }
}

@media (max-width: 640px) {
    .footer-main {
        padding: 48px 0 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .footer-bottom__legal {
        gap: 16px;
    }
}

/* ==========================================================================
   CLIENT-SPECIFIC STYLES
   ========================================================================== */
