@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --bg-black: #0A1F44; /* Matches --deep-navy */
    --primary-purple: #1E5BFF; /* Matches --royal-blue */
    --accent-gold: #FF8A00; /* Matches --orange */
    --text-white: #FFFFFF;
    --border-gray: #1A1A1A; /* Matches --text-dark */
}

.agency-footer {
    background: radial-gradient(circle at 10% 20%, rgba(10, 31, 68, 1) 0%, rgba(5, 15, 35, 1) 90.2%);
    color: var(--text-white);
    padding: clamp(60px, 10vw, 100px) 0 40px 0;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

/* Subtle background accent */
.agency-footer::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 91, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* --- Hero Section --- */
.footer-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 60px;
    gap: 40px;
}

.footer-logo {
    font-size: clamp(3.5rem, 12vw, 8.5rem); 
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -4px;
    color: var(--accent-gold);
    margin: 0;
    text-shadow: 0 10px 30px rgba(255, 138, 0, 0.2);
}

.footer-logo span {
    font-size: 0.25em;
    vertical-align: top;
    margin-left: 8px;
    opacity: 0.8;
}

.footer-tagline {
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    font-weight: 800;
    text-align: right;
    line-height: 1.05;
    color: var(--primary-purple);
    max-width: 550px;
    text-transform: uppercase;
}

/* --- Grid Lines --- */
.footer-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.1) 20%, rgba(255,255,255,0.1) 80%, rgba(255,255,255,0));
    width: 100%;
}

/* --- Middle Grid --- */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    padding: clamp(50px, 7vw, 80px) 0;
    gap: 80px;
}

.newsletter-col h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.input-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 8px;
    max-width: 480px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper:focus-within {
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(30, 91, 255, 0.15);
    transform: translateY(-2px);
}

.input-wrapper input {
    flex: 1;
    border: none;
    padding: 12px 18px;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
    color: white;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.arrow-btn {
    background: var(--primary-purple);
    color: white;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.arrow-btn:hover {
    background: #4075FF;
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 10px 20px rgba(30, 91, 255, 0.3);
}

.privacy-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 24px;
    line-height: 1.6;
}

.privacy-text a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s;
}

.privacy-text a:hover {
    color: var(--text-white);
    border-color: var(--text-white);
}

/* Links Section */
.links-col {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-left: 1px solid rgba(255,255,255,0.08);
    padding-left: 35px;
    flex: 1;
}

.link-group a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.link-group a:hover {
    color: var(--accent-gold);
    transform: translateX(8px);
    letter-spacing: 2px;
}

/* --- Bottom Area --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

.social-links-center {
    display: flex;
    gap: 20px;
}

.social-links-center a {
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.03);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 1.3rem;
}

.social-links-center a:hover {
    background: var(--accent-gold);
    color: var(--bg-black);
    transform: translateY(-8px) rotate(5deg);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 30px rgba(255, 138, 0, 0.3);
}

.website-by {
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .footer-main-grid { gap: 40px; }
}

@media (max-width: 1024px) {
    .footer-container { padding: 0 30px; }
    .footer-hero { flex-direction: column; align-items: flex-start; gap: 25px; }
    .footer-tagline { text-align: left; max-width: 100%; }
    .footer-main-grid { grid-template-columns: 1fr; gap: 60px; padding: 60px 0; }
    .links-col { flex-wrap: wrap; }
    .link-group { border-left: none; padding-left: 0; min-width: 200px; }
}

@media (max-width: 768px) {
    .footer-container { padding: 0 24px; }
    .footer-logo { letter-spacing: -2px; }
    .links-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 40px; text-align: center; padding-bottom: 20px; }
    .social-links-center { order: -1; }
}

@media (max-width: 480px) {
    .links-col { grid-template-columns: 1fr; gap: 35px; }
    .footer-logo { font-size: 4rem; }
    .input-wrapper { flex-direction: column; padding: 12px; gap: 12px; }
    .arrow-btn { width: 100%; height: 50px; }
}
