/* =========================================================
   FOOTER BLOCK — BEM
   Dark bg | LEFT (headline+contact+menus) | RIGHT (newsletter card)
   ========================================================= */

.smartfix-footer {
    background: var(--sf-bg-dark-1);
    color: var(--sf-text-white);
}

/* =========================================================
   MAIN SECTION
   ========================================================= */

.smartfix-footer__main {
    background: var(--sf-bg-dark-1);
    padding: 72px 80px 64px;
}

.smartfix-footer__main-inner {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 80px;
    align-items: stretch;
}

/* =========================================================
   LEFT COLUMN
   ========================================================= */

.smartfix-footer__left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.smartfix-footer__headline {
    font-family: var(--sf-font-heading);
    font-weight: 700;
    font-size: clamp(28px, 2.8vw, 40px);
    line-height: 1.15;
    color: var(--sf-text-white);
    margin: 0;
}

.smartfix-footer__headline .sf-highlight {
    color: var(--sf-color-primary);
}

.smartfix-footer__body {
    font-family: var(--sf-font-body);
    font-size: var(--sf-fs-body);
    line-height: var(--sf-lh-body);
    color: var(--sf-text-white-72);
    margin: 0;
}

.smartfix-footer__body p { margin: 0; }

/* Contact items */
.smartfix-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.smartfix-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sf-font-body);
    font-size: var(--sf-fs-body);
    color: var(--sf-text-white-72);
    text-decoration: none;
    transition: color 0.2s ease;
}

a.smartfix-footer__contact-item:hover {
    color: var(--sf-color-primary);
}

.smartfix-footer__contact-item svg,
.smartfix-footer__contact-item .sf-contact-icon {
    flex-shrink: 0;
    color: var(--sf-color-primary);
}

/* Social icon links — sourced from Site Options > General */
.smartfix-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.smartfix-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--sf-text-white);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.smartfix-footer__social-link:hover,
.smartfix-footer__social-link:focus-visible {
    background: var(--sf-color-primary);
    color: var(--sf-text-white);
}

/* Explicit size — a bare svg collapses to zero width inside a flex
   container under GeneratePress's resets. */
.smartfix-footer__social-link svg {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Divider */
.smartfix-footer__divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

/* Two-col menus */
.smartfix-footer__menus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.smartfix-footer__menu-heading {
    font-family: var(--sf-font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--sf-text-white);
    margin: 0 0 16px;
}

.smartfix-footer__menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.smartfix-footer__menu-list li { margin: 0; }

.smartfix-footer__menu-list a {
    font-family: var(--sf-font-body);
    font-size: 16px;
    color: var(--sf-text-white-72);
    text-decoration: none;
    transition: color 0.2s ease;
}

.smartfix-footer__menu-list a:hover {
    color: var(--sf-color-primary);
}

/* =========================================================
   RIGHT COLUMN — Newsletter card
   ========================================================= */

.smartfix-footer__right {
    position: sticky;
    top: 40px;
}

.smartfix-footer__newsletter-card {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.smartfix-footer__newsletter-img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Content overlay at bottom of image */
.smartfix-footer__newsletter-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.smartfix-footer__newsletter-title {
    font-family: var(--sf-font-heading);
    font-weight: 700;
    font-size: 26px;
    color: var(--sf-text-white);
    margin: 0;
}

.smartfix-footer__newsletter-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border-radius: 100px;
    overflow: hidden;
    padding: 4px 4px 4px 20px;
}

.smartfix-footer__newsletter-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--sf-font-body);
    font-size: 15px;
    color: var(--sf-text-dark);
    padding: 10px 0;
    min-width: 0;
}

.smartfix-footer__newsletter-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.smartfix-footer__newsletter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 100px;
    border: none;
    background: var(--sf-color-primary);
    color: #fff;
    font-family: var(--sf-font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.smartfix-footer__newsletter-btn:hover {
    background: var(--sf-color-primary-dark, #0a9e8e);
}

/* =========================================================
   BOTTOM BAR
   ========================================================= */

.smartfix-footer__bar {
    background: var(--sf-bg-dark-1);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 80px;
}

.smartfix-footer__bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
}

/* Copyright + marketing attribution share one inline group so they read
   as a single footer-bottom row instead of the attribution looking like
   its own section; wraps to its own line only when space runs out. */
.smartfix-footer__bar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.smartfix-footer__copyright {
    font-family: var(--sf-font-body);
    font-size: 14px;
    color: var(--sf-text-white-72);
    margin: 0;
}

.smartfix-footer__legal-links {
    display: flex;
    gap: 28px;
}

.smartfix-footer__legal-link {
    font-family: var(--sf-font-body);
    font-size: 14px;
    color: var(--sf-text-white-72);
    text-decoration: none;
    transition: color 0.2s ease;
}

.smartfix-footer__legal-link:hover {
    color: var(--sf-color-primary);
}

.smartfix-footer__bar-sep {
    color: var(--sf-text-white-72);
    font-size: 13px;
    opacity: 0.6;
}

.smartfix-footer__attribution {
    margin: 0;
    font-family: var(--sf-font-body);
    font-size: 13px;
    color: var(--sf-text-white-72);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.smartfix-footer__attribution-link {
    color: var(--sf-text-white);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.smartfix-footer__attribution-link:hover,
.smartfix-footer__attribution-link:focus-visible {
    color: var(--sf-color-primary);
}

.smartfix-footer__attribution-logo {
    height: 18px;
    width: auto;
    display: block;
}

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

@media (max-width: 1200px) {
    .smartfix-footer__main { padding: 60px 48px 48px; }
    .smartfix-footer__bar  { padding: 24px 48px; }
    .smartfix-footer__main-inner { gap: 48px; }
}

@media (max-width: 834px) {
    .smartfix-footer__main { padding: 48px 20px 40px; }
    .smartfix-footer__bar  { padding: 20px; }
    .smartfix-footer__main-inner { grid-template-columns: 1fr; gap: 40px; }
    .smartfix-footer__right { position: static; }
    .smartfix-footer__newsletter-img { min-height: 260px; height: 260px; }
    .smartfix-footer__headline { font-size: clamp(24px, 6vw, 32px); }
    .smartfix-footer__menus { gap: 24px; }
    .smartfix-footer__bar-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
    .smartfix-footer__main { padding: 40px 16px; }
    .smartfix-footer__bar  { padding: 16px; }
    .smartfix-footer__menus { grid-template-columns: 1fr; gap: 28px; }
    .smartfix-footer__legal-links { gap: 16px; }
}

@media (max-width: 375px) {
    .smartfix-footer__newsletter-form { flex-direction: column; border-radius: 12px; padding: 12px; gap: 10px; }
    .smartfix-footer__newsletter-btn { width: 100%; justify-content: center; border-radius: 100px; }
    .smartfix-footer__newsletter-input { padding: 8px 0; }
}
