/**
 * Itsourcecode Custom Footer Styles
 * Brand colors: #1F3A5F (deep blue), #C9A961 (gold), #2D6A4F (green)
 */

/* ========================================
   FOOTER WRAPPER
   ======================================== */
.itsc-footer-wrap {
    background: linear-gradient(180deg, #1F3A5F 0%, #15293F 100%);
    color: #e0e0e0;
    margin-top: 60px;
    padding: 0;
    position: relative;
}

.itsc-footer-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C9A961 0%, #2D6A4F 100%);
}

.itsc-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px 40px;
}

/* ========================================
   4-COLUMN GRID
   ======================================== */
.itsc-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}

.itsc-footer-col {
    min-width: 0;
}

/* ========================================
   COLUMN 1: ABOUT
   ======================================== */
.itsc-footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.itsc-footer-logo img {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    box-shadow: none !important;
    border-radius: 0;
}

.itsc-footer-logo-text {
    color: #C9A961;
    font-size: 1.5rem;
    margin: 0 0 16px;
    font-weight: 700;
    border-bottom: none;
    padding-bottom: 0;
}

.itsc-footer-about-text {
    font-size: 14px;
    line-height: 1.6;
    color: #c0c5cb;
    margin: 0 0 20px;
}

.itsc-footer-company {
    margin-bottom: 20px;
}

.itsc-footer-company-line {
    color: #fff;
    margin: 0 0 6px;
    font-size: 13px;
}

.itsc-footer-company-line strong {
    color: #C9A961;
}

.itsc-footer-address {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #c0c5cb;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.itsc-footer-address svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Social Icons */
.itsc-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.itsc-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.itsc-social-icon:hover {
    background: #C9A961;
    color: #1F3A5F;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 169, 97, 0.3);
    border-color: #C9A961;
}

.itsc-social-facebook:hover { background: #1877F2; color: white; border-color: #1877F2; }
.itsc-social-youtube:hover { background: #FF0000; color: white; border-color: #FF0000; }
.itsc-social-linkedin:hover { background: #0A66C2; color: white; border-color: #0A66C2; }
.itsc-social-twitter:hover { background: #000000; color: white; border-color: #000000; }
.itsc-social-github:hover { background: #181717; color: white; border-color: #181717; }

/* ========================================
   COLUMN HEADINGS
   ======================================== */
.itsc-footer-heading {
    color: #C9A961;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(201, 169, 97, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.itsc-footer-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #C9A961;
}

/* ========================================
   COLUMN 2 & 3: LINKS
   ======================================== */
.itsc-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.itsc-footer-links li {
    margin: 0 0 10px;
    padding: 0;
    border: none;
    list-style: none;
}

.itsc-footer-links li:last-child {
    margin-bottom: 0;
}

.itsc-footer-links a {
    color: #c0c5cb;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.itsc-footer-links a::before {
    content: '›';
    color: #C9A961;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s ease;
    line-height: 1;
}

.itsc-footer-links a:hover,
.itsc-footer-links a:focus {
    color: #C9A961;
    padding-left: 4px;
}

.itsc-footer-links a:hover::before {
    transform: translateX(3px);
}

/* NEW Badge */
.itsc-footer-badge {
    background: linear-gradient(135deg, #2D6A4F 0%, #1F3A5F 100%);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* All Categories Link */
.itsc-footer-all-link {
    margin-top: 12px !important;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.itsc-footer-all-link a {
    color: #C9A961 !important;
    font-weight: 600;
}

.itsc-footer-all-link a::before {
    display: none;
}

.itsc-arrow {
    margin-left: auto;
    color: #C9A961;
    transition: transform 0.2s ease;
}

.itsc-footer-all-link a:hover .itsc-arrow {
    transform: translateX(4px);
}

/* ========================================
   COLUMN 4: NEWSLETTER
   ======================================== */
.itsc-footer-newsletter-intro {
    color: #c0c5cb;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px;
}

.itsc-newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.itsc-newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.itsc-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.itsc-newsletter-input:focus {
    outline: none;
    border-color: #C9A961;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}

.itsc-newsletter-submit {
    background: linear-gradient(135deg, #C9A961 0%, #b8964a 100%);
    color: #1F3A5F;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.2);
}

.itsc-newsletter-submit:hover,
.itsc-newsletter-submit:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(201, 169, 97, 0.4);
    background: linear-gradient(135deg, #d4b574 0%, #C9A961 100%);
    outline: none;
}

.itsc-newsletter-submit:active {
    transform: translateY(0);
}

/* Newsletter Messages */
.itsc-newsletter-message {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 500;
}

.itsc-newsletter-success {
    background: rgba(45, 106, 79, 0.2);
    border: 1px solid #2D6A4F;
    color: #6ed4a8;
}

.itsc-newsletter-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #ff8b95;
}

.itsc-newsletter-info {
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid #C9A961;
    color: #f0d28e;
}

/* Benefits List */
.itsc-newsletter-benefits {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.itsc-newsletter-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c0c5cb;
    font-size: 13px;
    margin: 0 0 6px;
    padding: 0;
    border: none;
    list-style: none;
}

.itsc-check {
    color: #C9A961;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.itsc-newsletter-privacy {
    margin: 12px 0 0;
}

.itsc-newsletter-privacy small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-style: italic;
}

/* ========================================
   BOTTOM BAR
   ======================================== */
.itsc-footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 30px;
}

.itsc-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.itsc-footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #a0a5ab;
    font-size: 12px;
}

.itsc-copyright {
    color: #c0c5cb;
}

.itsc-bottom-separator {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
}

.itsc-bottom-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.itsc-bottom-nav a {
    color: #a0a5ab;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 12px;
}

.itsc-bottom-nav a:hover,
.itsc-bottom-nav a:focus {
    color: #C9A961;
}

.itsc-footer-bottom-right {
    color: #a0a5ab;
    font-size: 12px;
    font-style: italic;
}

.itsc-footer-bottom-right a {
    color: #C9A961;
    text-decoration: none;
    font-weight: 600;
}

.itsc-footer-bottom-right a:hover {
    color: #d4b574;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.itsc-footer-wrap a:focus-visible {
    outline: 2px solid #C9A961;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .itsc-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .itsc-footer-about,
    .itsc-footer-newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .itsc-footer-inner {
        padding: 40px 20px 30px;
    }

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

    .itsc-footer-about,
    .itsc-footer-newsletter {
        grid-column: span 1;
    }

    .itsc-footer-heading {
        font-size: 14px;
    }

    .itsc-newsletter-form {
        flex-direction: column;
    }

    .itsc-newsletter-input,
    .itsc-newsletter-submit {
        width: 100%;
    }

    .itsc-footer-bottom {
        padding: 14px 20px;
    }

    .itsc-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .itsc-footer-bottom-left {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .itsc-footer-bottom-left {
        flex-direction: column;
        gap: 4px;
    }

    .itsc-bottom-separator {
        display: none;
    }

    .itsc-bottom-nav {
        gap: 12px;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .itsc-social-icon,
    .itsc-newsletter-submit,
    .itsc-footer-links a,
    .itsc-arrow,
    .itsc-footer-links a::before {
        transition: none;
    }

    .itsc-social-icon:hover,
    .itsc-newsletter-submit:hover,
    .itsc-footer-all-link a:hover .itsc-arrow {
        transform: none;
    }
}

/* ========================================
   PRINT
   ======================================== */
@media print {
    .itsc-footer-wrap {
        display: none;
    }
}
