/* ========================================
   09-FOOTER.CSS - NK Insurance
   Contact + Footer
   ======================================== */

/* ========================================
   Contact Section - editorial on cream
   ======================================== */
.contact {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-cream);
    position: relative;
}

.contact > .container > .section-header {
    margin-bottom: var(--spacing-3xl);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-top: 0;
}

/* Contact info column (left) */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

.contact-info h3 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

/* Office grid - editorial blocks with gold left bar */
.office-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: 0;
}

.office-card {
    background: transparent;
    padding: 0 0 0 var(--spacing-md);
    border-radius: 0;
    border-left: 2px solid var(--accent-gold);
    box-shadow: none;
    transition: none;
}

.office-card:hover {
    transform: none;
    box-shadow: none;
}

.office-card h4 {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.office-card p {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--text-body);
    margin: 0;
    line-height: 1.55;
}

/* Contact methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(11, 37, 69, 0.12);
}

.method {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    position: relative;
    padding-left: var(--spacing-md);
}

.method::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.method .icon {
    display: none;
}

.method > div {
    flex: 1;
}

.method strong {
    display: block;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-gold);
    margin-bottom: 0.15rem;
    font-weight: 500;
}

.method p {
    margin: 0;
    font-family: var(--font-body);
    color: var(--primary);
    font-size: 0.9375rem;
    line-height: 1.4;
}

/* Contact form wrapper */
.contact-form-wrapper {
    background: var(--bg-white);
    padding: var(--spacing-2xl);
    border-radius: 3px;
    box-shadow: 0 16px 40px rgba(11, 37, 69, 0.08);
}

.contact-form-wrapper h3 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form input,
.contact-form select {
    width: 100%;
    padding: 0.625rem 0;
    border: none;
    border-bottom: 1px solid rgba(11, 37, 69, 0.2);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    background: transparent;
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

.contact-form input:focus,
.contact-form select:focus {
    outline: none;
    border-bottom-color: var(--secondary);
    box-shadow: 0 1px 0 0 var(--secondary);
}

.contact-form input::placeholder {
    color: rgba(26, 26, 46, 0.4);
    font-family: var(--font-body);
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230B2545' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

.contact-form select:invalid {
    color: rgba(26, 26, 46, 0.4);
}

.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(11, 37, 69, 0.18);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg-cream);
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
    min-height: 120px;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 1px var(--secondary);
}

.contact-form textarea::placeholder {
    color: rgba(26, 26, 46, 0.4);
    font-family: var(--font-body);
}

.contact-form .btn-block,
.contact-form button[type="submit"] {
    width: 100%;
    padding: 0.875rem 2rem;
    border-radius: 3px;
    margin-top: var(--spacing-sm);
    background: var(--secondary);
    color: white;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid var(--secondary);
    box-shadow: 0 4px 14px rgba(15, 139, 100, 0.18);
    cursor: pointer;
    transition: var(--transition-all);
    letter-spacing: 0.01em;
}

.contact-form .btn-block:hover,
.contact-form button[type="submit"]:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    box-shadow: 0 6px 18px rgba(15, 139, 100, 0.28);
}

/* Contact responsive */
@media (max-width: 991px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .office-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .contact {
        padding: var(--spacing-3xl) 0;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .office-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .contact-form-wrapper {
        padding: var(--spacing-lg);
    }
}

/* ========================================
   Footer - editorial navy bookend
   ======================================== */
.footer {
    background: var(--primary);
    color: white;
    padding: var(--spacing-4xl) 0 var(--spacing-lg);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(200, 169, 97, 0.12);
}

.footer::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200, 169, 97, 0.05) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

/* ========================================
   Footer columns
   ======================================== */
.footer-content {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

/* About column with logo */
.footer-section.footer-about {
    padding-right: var(--spacing-lg);
}

.footer-section.footer-about h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.footer-section.footer-about h3::before {
    content: '\25C6';
    color: var(--accent-gold);
    margin-right: 0.4em;
    font-size: 0.7em;
    line-height: 1;
}

/* Unify the span color (was teal via global) */
.footer-section.footer-about h3 span {
    color: white;
}

.footer-section.footer-about p {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

/* Social links - editorial circles with gold hover */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 36px;
    height: 36px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: lowercase;
    transition: color 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.social-links a:hover {
    background: transparent;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: none;
}

/* Column headers - gold uppercase eyebrow */
.footer-section h4 {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent-gold);
    margin-bottom: var(--spacing-lg);
}

/* Link lists */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    padding-left: 0;
    line-height: 1.5;
}

.footer-section a::before {
    display: none;
}

.footer-section a:hover {
    color: var(--accent-gold);
    padding-left: 0;
}

/* ========================================
   Footer bottom - editorial closure
   ======================================== */
.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 0.75rem;
    margin: var(--spacing-xs) 0;
    line-height: 1.5;
}

.footer-bottom p:first-child {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.8125rem;
    margin-bottom: 0.4rem;
}

/* ========================================
   Back to top button - gold-bordered circle
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: var(--z-fixed);
    box-shadow: 0 8px 24px rgba(11, 37, 69, 0.25);
    border: 1px solid var(--accent-gold);
    font-size: 1rem;
    font-family: var(--font-body);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-gold);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(200, 169, 97, 0.3);
}

/* ========================================
   Footer responsive
   ======================================== */
@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    .footer-section.footer-about {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .footer {
        padding: var(--spacing-3xl) 0 var(--spacing-lg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   Footer animation
   ======================================== */
@keyframes footerSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: footerSlideUp 0.6s ease-out backwards;
}

.footer-section:nth-child(1) { animation-delay: 0.05s; }
.footer-section:nth-child(2) { animation-delay: 0.10s; }
.footer-section:nth-child(3) { animation-delay: 0.15s; }
.footer-section:nth-child(4) { animation-delay: 0.20s; }
