/* =============================================================================
   LHC SITE FOOTER
   Plugin:  livestock-homepage-clone
   Version: 1.0.0
   Scope:   .lhc-footer — all rules scoped to avoid theme conflicts
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Default CSS custom properties (overridden by inline style on the element)
   --------------------------------------------------------------------------- */
.lhc-footer {
    --lhc-ftr-bg:           #0d2344;
    --lhc-ftr-border:       #1a3560;
    --lhc-ftr-text:         #ffffff;
    --lhc-ftr-heading:      #ffffff;
    --lhc-ftr-link:         #cccccc;
    --lhc-ftr-link-hover:   #e88020;
    --lhc-ftr-accent:       #e88020;
    --lhc-ftr-copyright-bg: #091a33;
    --lhc-ftr-max-width:    1200px;
    --lhc-ftr-px:           20px;
    --lhc-ftr-ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --lhc-ftr-trans:        0.2s var(--lhc-ftr-ease);
}

/* ---------------------------------------------------------------------------
   Scoped reset
   --------------------------------------------------------------------------- */
.lhc-footer *,
.lhc-footer *::before,
.lhc-footer *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.lhc-footer ul { list-style: none; }
.lhc-footer a  { text-decoration: none; color: inherit; }

/* ---------------------------------------------------------------------------
   Container
   --------------------------------------------------------------------------- */
.lhc-footer .lhc-ftr-container {
    width: 100%;
    max-width: var(--lhc-ftr-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--lhc-ftr-px);
    padding-right: var(--lhc-ftr-px);
}

/* ---------------------------------------------------------------------------
   Footer root
   --------------------------------------------------------------------------- */
.lhc-footer {
    background: var(--lhc-ftr-bg);
    color: var(--lhc-ftr-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    line-height: 1.6;
}

/* ---------------------------------------------------------------------------
   Body (main columns area)
   --------------------------------------------------------------------------- */
.lhc-footer__body {
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--lhc-ftr-border);
}

/* Grid: brand column (auto width) + up to 3 equal content columns */
.lhc-footer__inner {
    display: grid;
    grid-template-columns: minmax(200px, 280px) repeat(auto-fill, minmax(160px, 1fr));
    gap: 40px 48px;
    align-items: start;
}

/* ---------------------------------------------------------------------------
   Brand column
   --------------------------------------------------------------------------- */
.lhc-footer__logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    outline-offset: 4px;
    margin-bottom: 16px;
}

.lhc-footer__logo-icon {
    color: var(--lhc-ftr-accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    line-height: 1;
}

.lhc-footer__logo-img {
    height: 44px;
    width: auto;
    display: block;
    max-width: 180px;
    object-fit: contain;
}

.lhc-footer__logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
}

.lhc-footer__logo-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--lhc-ftr-heading);
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}

.lhc-footer__logo-sub {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lhc-ftr-accent);
    line-height: 1;
    white-space: nowrap;
}

.lhc-footer__tagline {
    font-size: 13.5px;
    color: var(--lhc-ftr-link);
    line-height: 1.65;
    max-width: 260px;
    margin-top: 4px;
}

.lhc-footer__brand-writeup {
    font-size: 13.5px;
    color: var(--lhc-ftr-link);
    line-height: 1.75;
    max-width: 260px;
    margin-top: 14px;
}

/* ---------------------------------------------------------------------------
   Content columns (Quick Links, Contact, Social)
   --------------------------------------------------------------------------- */
.lhc-footer__col-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lhc-ftr-heading);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--lhc-ftr-border);
}

.lhc-footer__col-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lhc-footer__col-link {
    font-size: 14px;
    color: var(--lhc-ftr-link);
    transition: color var(--lhc-ftr-trans);
    display: inline-block;
}

.lhc-footer__col-link:hover {
    color: var(--lhc-ftr-link-hover);
}

/* ---------------------------------------------------------------------------
   Contact column specifics
   --------------------------------------------------------------------------- */
.lhc-footer__col-list--contact {
    gap: 12px;
}

.lhc-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--lhc-ftr-link);
    font-size: 14px;
}

.lhc-footer__contact-icon {
    flex-shrink: 0;
    opacity: 0.7;
    margin-top: 2px;
}

/* ---------------------------------------------------------------------------
   Social icons
   --------------------------------------------------------------------------- */
.lhc-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lhc-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--lhc-ftr-link);
    transition: background var(--lhc-ftr-trans), color var(--lhc-ftr-trans);
    flex-shrink: 0;
}

.lhc-footer__social-link:hover {
    background: var(--lhc-ftr-accent);
    color: #ffffff;
}

/* ---------------------------------------------------------------------------
   Subscribe to Updates column
   --------------------------------------------------------------------------- */
.lhc-footer__subscribe-desc {
    font-size: 13.5px;
    color: var(--lhc-ftr-link);
    line-height: 1.65;
    margin-bottom: 14px;
}

.lhc-footer__subscribe-form {
    margin-top: 4px;
}

.lhc-footer__subscribe-row {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
}

.lhc-footer__subscribe-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--lhc-ftr-border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: var(--lhc-ftr-text);
    font-size: 13px;
    outline: none;
    transition: border-color var(--lhc-ftr-trans), background var(--lhc-ftr-trans);
}

.lhc-footer__subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.lhc-footer__subscribe-input:focus {
    border-color: var(--lhc-ftr-accent);
    background: rgba(255, 255, 255, 0.12);
}

.lhc-footer__subscribe-btn {
    padding: 10px 14px;
    background: var(--lhc-ftr-accent);
    color: #ffffff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--lhc-ftr-trans);
    line-height: 1;
}

.lhc-footer__subscribe-btn:hover {
    background: #c06a10;
}

/* ---------------------------------------------------------------------------
   Copyright bar
   --------------------------------------------------------------------------- */
.lhc-footer__bottom {
    background: var(--lhc-ftr-copyright-bg);
    padding: 14px 0;
}

.lhc-footer__copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Responsive — Tablet (≤ 900px)
   --------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .lhc-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
    }

    /* Brand spans full width on tablet */
    .lhc-footer__brand {
        grid-column: 1 / -1;
    }
}

/* ---------------------------------------------------------------------------
   Responsive — Mobile (≤ 600px)
   --------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .lhc-footer {
        --lhc-ftr-px: 16px;
    }

    .lhc-footer__body {
        padding: 40px 0 36px;
    }

    .lhc-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .lhc-footer__brand {
        grid-column: 1;
    }

    .lhc-footer__logo-name {
        font-size: 18px;
    }

    .lhc-footer__logo-icon svg {
        width: 34px;
        height: 34px;
    }
}

/* ---------------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .lhc-footer *,
    .lhc-footer *::before,
    .lhc-footer *::after {
        transition-duration: 0.01ms !important;
    }
}
