/* Unified Footer Styles - Clean White Design Matching Reference */

.footer-unified {
    background: #ffffff;
    margin-top: 0; /* Remove white space above */
    position: relative;
    overflow: hidden;
}

/* Hero Demo Section - White background, reduced padding */
.footer-hero {
    background: #ffffff;
    padding: 42px 0; /* Reduced by 30% from 60px */
    position: relative;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
}

.footer-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(74, 144, 226, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.footer-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* Reduced gap by 30% */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-hero-text {
    max-width: 500px;
}

.footer-hero-title {
    font-size: clamp(20px, 2.5vw, 28px); /* Reduced by 30% */
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 12px; /* Reduced margin */
    line-height: 1.1;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.footer-hero-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #4a90e2 100%);
    transition: width 0.6s ease;
}

.footer-hero:hover .footer-hero-title::after {
    width: 100%;
}

.footer-hero-subtitle {
    font-size: 14px; /* Reduced by 30% */
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 20px; /* Reduced margin */
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-hero:hover .footer-hero-subtitle {
    opacity: 1;
}

.footer-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #0993fa;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(9, 147, 250, 0.3);
    position: relative;
    overflow: hidden;
}

.footer-hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.footer-hero-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(9, 147, 250, 0.4);
    background: #0882e0;
}

.footer-hero-btn:hover::before {
    left: 100%;
}

.footer-hero-btn svg {
    transition: transform 0.3s ease;
}

.footer-hero-btn:hover svg {
    transform: translateX(4px);
}

/* Demo Calendar Visual */
.footer-hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px; /* Reduced by 30% */
    position: relative;
}

.footer-hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.05) 0%, transparent 50%);
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.demo-calendar {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px; /* Reduced by 30% */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.08);
    transition: all 0.3s ease;
    max-width: 200px; /* Reduced by 30% */
    width: 100%;
    position: relative;
    overflow: hidden;
}

.demo-calendar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.03) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
}

.demo-calendar:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(74, 144, 226, 0.2);
}

.calendar-header {
    text-align: center;
    margin-bottom: 14px; /* Reduced by 30% */
    position: relative;
    z-index: 1;
}

.calendar-month {
    font-size: 14px; /* Reduced by 30% */
    font-weight: 600;
    color: #2d3748;
    transition: color 0.3s ease;
}

.demo-calendar:hover .calendar-month {
    color: #4a90e2;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px; /* Reduced by 30% */
    margin-bottom: 12px; /* Reduced by 30% */
    position: relative;
    z-index: 1;
}

.calendar-day-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.calendar-day-name {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    color: #a0aec0;
    transition: all 0.2s ease;
    width: 100%;
}

.calendar-day.available {
    background: #e6f2ff;
    color: #87CEEB; /* Light blue for non-today dates */
    cursor: pointer;
}

.calendar-day.available.today {
    color: white; /* White for today's date */
    background: #4a90e2;
}

.calendar-day.available:hover {
    background: #4a90e2;
    color: white;
    transform: scale(1.1);
}

.calendar-time {
    text-align: center;
    font-size: 12px; /* Reduced by 30% */
    color: #718096;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.demo-calendar:hover .calendar-time {
    color: #4a90e2;
}

/* Main Footer Content - White background with subtle pattern */
.footer-main-content {
    background: #ffffff;
    padding: 80px 0;
    position: relative;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(74, 144, 226, 0.01) 35px, rgba(74, 144, 226, 0.01) 70px),
        radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.02) 0%, transparent 50%);
}

.footer-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

/* Newsletter Section - Left Side */
.footer-newsletter {
    max-width: 400px;
}

.footer-newsletter h3 {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #4a90e2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.4;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(74, 144, 226, 0.1);
    transition: all 0.3s ease;
}

.newsletter-form:focus-within {
    box-shadow: 0 6px 30px rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.3);
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 14px;
    background: white;
    color: #2d3748;
}

.newsletter-form input::placeholder {
    color: #a0aec0;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #4a90e2 100%);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 50px 50px 0;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.2);
}

.newsletter-form button svg {
    stroke: white;
}

.newsletter-disclaimer {
    font-size: 12px;
    color: #718096;
    line-height: 1.5;
}

/* Footer Links Section - Right Side */
.footer-links-section {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 60px;
}

.footer-column h4,
.footer-contact-column h4 {
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #4a90e2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
}

.footer-column h4::after,
.footer-contact-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2 0%, transparent 100%);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #2d3748;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #667eea;
    padding-left: 4px;
    transition: all 0.2s ease;
}

/* Contact Column */
.contact-offices {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.office-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.office {
    position: relative;
    padding-left: 20px;
    transition: transform 0.3s ease;
}

.office:hover {
    transform: translateY(-2px);
}

.office strong {
    display: block;
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.office p {
    color: #718096;
    font-size: 13px;
    margin: 0 0 4px 0;
}

/* Footer Bottom */
.footer-bottom {
    background: linear-gradient(135deg, #667eea 0%, #4a90e2 100%);
    padding: 24px 0;
    position: relative;
    overflow: hidden;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    gap: auto;
}

.footer-logo-social {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    margin-right: auto;
}

.footer-logo img {
    height: 36px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.footer-social a:hover {
    transform: translateY(-3px) rotate(5deg);
}

.footer-legal-links {
    display: flex;
    gap: 24px;
    margin-right: 32px;
}

.footer-legal-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-legal-links a:hover {
    opacity: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Floating animation for footer elements */
@keyframes float-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Add subtle floating to newsletter section */
.footer-newsletter {
    animation: float-subtle 6s ease-in-out infinite;
    animation-delay: 0s;
}

/* Add staggered floating to footer columns */
.footer-column:nth-child(1) {
    animation: float-subtle 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

.footer-column:nth-child(2) {
    animation: float-subtle 6s ease-in-out infinite;
    animation-delay: 1s;
}

.footer-contact-column {
    animation: float-subtle 6s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .footer-hero-text {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .footer-content-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-links-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-hero {
        padding: 60px 20px;
    }
    
    .footer-hero-title {
        font-size: 28px;
    }
    
    .footer-hero-subtitle {
        font-size: 16px;
    }
    
    .demo-calendar {
        padding: 24px;
    }
    
    .footer-links-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .office-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-logo-social {
        flex-direction: column;
    }
    
    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Subtle hover effect for calendar */
.demo-calendar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}