/* Site-specific overrides — keep template files untouched, edit here */

/* Logo: white card that overflows the blue header (top and bottom) */
.main-header.style-one .header-lower .logo-box {
    background: #ebebeb;
    padding: 30px 28px;
    margin: -25px 0;
    max-width: 216px;
    border-radius: 4px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    position: relative;
    z-index: 20;
}

/* Header top bar: center contents on all screen sizes and wrap cleanly */
.main-header .header-top {
    padding: 11px 20px;
}

.main-header .header-top .top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 28px;
    text-align: center;
}

.main-header .header-top ul.left-info,
.main-header .header-top ul.right-info {
    float: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 28px;
    margin: 0;
    padding: 0;
}

.main-header .header-top ul.left-info li,
.main-header .header-top ul.right-info li {
    margin: 0 !important;
}

/* Override the template's first-child padding reset — every left-info item now has an icon */
.main-header .header-top ul.left-info li:first-child {
    padding-left: 40px;
}

@media only screen and (max-width: 767px) {
    .main-header .header-top {
        padding: 10px 12px;
    }
    .main-header .header-top ul li {
        font-size: 13px;
        line-height: 22px;
    }
    .main-header .header-top .top-inner,
    .main-header .header-top ul.left-info,
    .main-header .header-top ul.right-info {
        gap: 4px 18px;
    }
}

@media only screen and (max-width: 499px) {
    .main-header .header-top ul li {
        font-size: 12px;
    }
    .main-header .header-top ul.left-info li i {
        width: 26px;
        height: 26px;
        line-height: 26px;
    }
    .main-header .header-top ul.left-info li,
    .main-header .header-top ul.left-info li:first-child {
        padding-left: 34px;
    }
}

/* Footer logo: same white-card treatment as the header, overlaying the blue block */
.main-footer .footer-top {
    padding-top: 30px;
    padding-bottom: 30px;
}

.main-footer .footer-top .footer-logo {
    background: #ebebeb;
    padding: 0px 30px;
    margin: -45px 0;
    max-width: 280px;
    border-radius: 4px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    position: relative;
    z-index: 20;
}

.main-footer .footer-top .footer-logo img {
    width: 100%;
    height: auto;
}

/* Sticky header logo: white card, no overflow */
.main-header.style-one .sticky-header .logo-box {
    background: #ebebeb;
    padding: 8px 18px;
    max-width: 200px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 5;
}

.main-header.style-one .sticky-header .logo-box img {
    width: 100%;
    height: auto;
}

/* About page CTA: the template's footer-top has margin-top: -87px to overlap the
   preceding section. On the home page the news-section absorbs that overlap;
   the about page's CTA is shorter, so add bottom padding to keep the footer clear. */
.cta-section--about {
    padding-bottom: 120px;
}

/* CTA button text turns white on hover so it stays readable when the brand-blue
   slide-in overlay covers the (originally white) button background. */
.cta-section .inner-container .btn-box .theme-btn:hover {
    color: #ffffff;
}

/* Manufacturing section: the couch glyph is wider than other Font Awesome icons,
   so scale it down a touch so it sits cleanly within the icon-box reservation. */
.manufacturing-section .content_block_2 .content-box .text .icon-box {
    font-size: 50px;
    line-height: 50px;
}

/* Remove the auto-shop icon decoration from section title "kicker" labels
   (the template ships with icon-1.png — a mechanic icon — applied via :before / :after). */
.sec-title span.top-text:before,
.sec-title span.top-text:after,
.sec-title.centred span.top-text:before,
.sec-title.centred span.top-text:after {
    display: none !important;
}

.sec-title span.top-text {
    padding-left: 0;
}

.sec-title.centred span.top-text {
    padding-right: 0;
}

/* TikTok icons (Font Awesome 5.8 doesn't ship a TikTok glyph — inline SVG fallback) */
.footer-bottom .footer-social li.tiktok a i {
    background: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom .footer-social li.tiktok a i svg {
    width: 14px;
    height: 16px;
    fill: #ffffff;
}

.contact-info-section .content-box .social-links li.tiktok a {
    background: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-info-section .content-box .social-links li.tiktok a svg {
    width: 16px;
    height: 18px;
    fill: #ffffff;
}

/* Mobile menu logo: white card matching the header treatment */
.mobile-menu .nav-logo {
    padding: 0;
    padding-bottom: 30px;
    text-align: center;
}

.mobile-menu .nav-logo a {
    display: inline-block;
    background: #ebebeb;
    padding: 14px 22px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.mobile-menu .nav-logo img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* Contact info cards: flex grid so cells line up even when content heights differ */
.contact-info-section .inner-box {
    display: flex;
    flex-wrap: wrap;
}

.contact-info-section .inner-box .single-item {
    float: none;
}

/* Offset for fragment scroll so sticky header doesn't cover the target */
#leave-message,
#quote-form {
    scroll-margin-top: 100px;
}

/* Contact form flash messages */
.form-flash {
    padding: 14px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 15px;
    line-height: 22px;
}

.form-flash--success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.form-flash--error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.form-flash--warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.form-flash a {
    color: inherit;
    text-decoration: underline;
}

/* Show the cloned "Get a Quote" nav item only inside the mobile menu —
   on desktop the visible "Get a Quote" button in the header handles it. */
.main-menu .navigation > li.quote-link-mobile {
    display: none;
}

.mobile-menu .navigation > li.quote-link-mobile {
    display: block;
}

/* Quote form */
.quote-form-intro {
    color: #696969;
    font-size: 15px;
    line-height: 24px;
    max-width: 760px;
    margin: 12px auto 0;
}

.quote-section {
    padding: 30px 0 10px;
    border-top: 1px solid #e6e6e6;
    margin-top: 20px;
}

.quote-section:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 10px;
}

.quote-section__title {
    font-size: 20px;
    font-weight: 700;
    color: #070719;
    margin: 0 0 6px;
}

.quote-section__hint {
    color: #696969;
    font-size: 14px;
    line-height: 22px;
    margin: 0 0 18px;
}

/* Checkbox grid (services) */
.quote-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px 18px;
    margin-bottom: 4px;
}

.quote-checkbox,
.quote-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    color: #444;
    transition: border-color .15s, background .15s;
    user-select: none;
}

.quote-checkbox input,
.quote-radio input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0d0d56;
    cursor: pointer;
}

.quote-checkbox:hover,
.quote-radio:hover {
    border-color: #0d0d56;
}

.quote-checkbox:has(input:checked),
.quote-radio:has(input:checked) {
    border-color: #0d0d56;
    background: #f0f0fa;
    color: #0d0d56;
}

/* Radio rows (contact method, collection) */
.quote-radio-group__label {
    display: block;
    font-weight: 600;
    color: #070719;
    margin-bottom: 10px;
}

.quote-radio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quote-radio {
    min-width: 160px;
}

/* File inputs */
.quote-file-field {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px dashed #cfcfd6;
    border-radius: 4px;
    background: #fafafa;
}

.quote-file-field__label {
    display: block;
    font-weight: 600;
    color: #070719;
    margin-bottom: 8px;
    font-size: 15px;
}

.quote-file-field input[type="file"] {
    display: block;
    width: 100%;
    font-size: 14px;
    color: #555;
}

.quote-file-field input[type="file"]::file-selector-button {
    background: #0d0d56;
    color: #fff;
    border: 0;
    padding: 8px 16px;
    border-radius: 4px;
    margin-right: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.quote-file-field input[type="file"]::file-selector-button:hover {
    background: #1a1a8c;
}

.quote-required {
    color: #c0392b;
}

/* Extend template form styling to tel + number inputs (template only styles text/email) */
.contact-style-two .default-form .form-group input[type='tel'],
.contact-style-two .default-form .form-group input[type='number'] {
    position: relative;
    display: block;
    width: 100%;
    height: 70px;
    background: #ffffff;
    border: 1px solid #ffffff;
    font-size: 15px;
    font-weight: 500;
    color: #070719;
    padding: 10px 50px 10px 30px;
    transition: all 500ms ease;
}

/* Hide spinner arrows on number input (matches template aesthetic) */
.contact-style-two .default-form .form-group input[type='number'] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.contact-style-two .default-form .form-group input[type='number']::-webkit-outer-spin-button,
.contact-style-two .default-form .form-group input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
