/* Custom CSS for True North Cleaning Co. */

:root {
    --navy-blue: #002147;
    --light-navy: #1a4b7a;
    --primary-blue: #0066cc;
    --light-blue: #e6f3ff;
    --gold-accent: #ffd700;
    --success-green: #28a745;
    --text-dark: #333333;
    --text-light: #666666;
    --border-light: #e9ecef;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 76px; /* Account for fixed navbar */
}

/* Custom Colors */
.bg-navy {
    background-color: var(--navy-blue) !important;
}

.text-navy {
    color: var(--navy-blue) !important;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--light-navy);
    border-color: var(--light-navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 33, 71, 0.3);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--gold-accent) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, #ffffff 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-image-container {
    animation: float 6s ease-in-out infinite;
    position: relative;
}

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

/* Sparkle animations for hero section */
.hero-image-container::before,
.hero-image-container::after {
    content: '✨';
    position: absolute;
    font-size: 1.5rem;
    color: var(--primary-blue);
    animation: sparkle 3s ease-in-out infinite;
    opacity: 0;
}

.hero-image-container::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-image-container::after {
    top: 70%;
    right: 15%;
    animation-delay: 1.5s;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.5) rotate(0deg); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2) rotate(180deg); 
    }
}

/* Additional sparkles for maple leaf elements */
.sparkles {
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Home icon bouncing animation with maple leaf effects */
.home-icon-container {
    position: relative;
    display: inline-block;
}

.bouncing-home {
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bouncing-home:hover {
    transform: scale(1.1);
    color: var(--navy-blue) !important;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Maple leaf sparkles animation */
.maple-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.maple-leaf {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0;
    animation: leafFloat 3s ease-in-out infinite;
}

.maple-leaf:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.maple-leaf:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.maple-leaf:nth-child(3) {
    bottom: 25%;
    left: 25%;
    animation-delay: 2s;
}

@keyframes leafFloat {
    0% {
        opacity: 0;
        transform: translateY(20px) rotate(0deg) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translateY(10px) rotate(45deg) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) rotate(90deg) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-20px) rotate(135deg) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) rotate(180deg) scale(0.5);
    }
}

/* Maximized white star logo for ultimate prominence */
.logo-star-maximized {
    filter: brightness(1.1) contrast(1.2) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    transform: scale(1.4);
}

.logo-star-maximized:hover {
    transform: scale(1.5) rotate(12deg);
    filter: brightness(1.2) contrast(1.3) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
}

/* Enhanced navbar brand styling */
.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
}

/* Gallery Section Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 33, 71, 0.2);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 33, 71, 0.9));
    padding: 30px 20px 20px 20px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Navigation Pills */
.nav-pills .nav-link {
    background-color: transparent;
    color: #002147;
    border: 2px solid #002147;
    border-radius: 25px;
    padding: 12px 24px;
    margin: 0 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background-color: #002147;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 33, 71, 0.3);
}

.nav-pills .nav-link.active {
    background-color: #002147;
    color: white;
    border-color: #002147;
    box-shadow: 0 8px 20px rgba(0, 33, 71, 0.3);
}

/* Gallery tab content fade effects */
.tab-pane {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.tab-pane.show.active {
    opacity: 1;
}

/* Mobile responsiveness for gallery */
@media (max-width: 768px) {
    .gallery-item img {
        height: 250px !important;
    }
    
    .nav-pills .nav-link {
        padding: 8px 16px;
        margin: 4px;
        font-size: 0.9rem;
    }
    
    .gallery-overlay {
        padding: 20px 15px 15px 15px;
    }
    
    .gallery-overlay h5 {
        font-size: 1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.85rem;
    }
}

/* Review Star Rating Styles */
.star-display {
    font-size: 2.5rem;
    color: #ddd;
    cursor: pointer;
}

.star-display .star {
    transition: all 0.2s ease;
    margin: 0 2px;
}

.star-display .star:hover,
.star-display .star.hover {
    color: #ffd700;
    transform: scale(1.1);
}

.star-display .star.selected {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.star-rating {
    color: #ffd700;
    font-size: 1.2rem;
}

/* Review Card Text Clarity */
.card-body .card-text {
    color: #2c3e50 !important;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.blockquote-footer {
    background: linear-gradient(135deg, #002147 0%, #1a3a5c 100%) !important;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 0 !important;
}

.blockquote-footer cite {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
}

.blockquote-footer .text-muted {
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Enhanced review card background for better contrast */
.reviews .card {
    background-color: #ffffff !important;
    border: 1px solid #e9ecef;
}

.reviews .card-body {
    background-color: #ffffff !important;
    padding: 20px;
}

.google-reviews-container {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.google-reviews-container:hover {
    border-color: #002147;
    box-shadow: 0 8px 25px rgba(0, 33, 71, 0.15);
}

.stat-item h2 {
    margin-bottom: 0.5rem;
}

.stat-item p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Floating Review Button */
.floating-review-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-review-btn .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.floating-review-btn .btn:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 33, 71, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 33, 71, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 33, 71, 0);
    }
}

@media (max-width: 768px) {
    .floating-review-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-review-btn .btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

.navbar-brand:hover {
    transform: translateY(-3px);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
}

/* Navigation bar height adjustment for maximized logo */
.navbar {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

/* Adjust main content top margin for taller navbar */
main {
    margin-top: 95px;
}

/* Falcon background for hero section */
.falcon-hero-bg {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
                url('../images/falcon-background.jpg') center/cover no-repeat;
    backdrop-filter: blur(1px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
}

.falcon-hero-bg::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--light-blue), rgba(255, 255, 255, 0.1));
    border-radius: inherit;
    z-index: -1;
}

/* Brilliant Golden Star Rating Styles */
.star-rating {
    display: inline-flex;
    gap: 2px;
}

.golden-star {
    color: #B8860B;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 
        0 0 3px rgba(184, 134, 11, 0.8),
        0 0 6px rgba(218, 165, 32, 0.6),
        1px 1px 1px rgba(139, 69, 19, 0.4);
    filter: drop-shadow(0 1px 2px rgba(184, 134, 11, 0.3));
    display: inline-block;
    margin-right: 2px;
}

/* Removed blinking animation */

.golden-star:hover {
    transform: scale(1.05);
    color: #DAA520;
}

/* Removed all blinking animations for constant bright appearance */

/* Broom background for left hero section */
.broom-hero-bg {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.85)), 
                url('../images/broom-background.png') right center/contain no-repeat;
    position: relative;
    padding: 2rem;
    border-radius: 1rem;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 33, 71, 0.15) !important;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-icon-large {
    text-align: center;
}

/* Feature Items */
.feature-item {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Timeline Styles */
.timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.timeline-number {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

/* Pricing Styles */
.pricing-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.pricing-item:last-child {
    border-bottom: none;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 2px solid var(--border-light);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-label {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Contact Page Styles */
.contact-item {
    padding: 1rem 0;
}

.contact-icon {
    width: 40px;
    text-align: center;
}

.sticky-top {
    top: 100px !important;
}

/* Accordion Styles */
.accordion-button {
    background-color: var(--light-blue);
    color: var(--navy-blue);
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-blue);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

/* Alert Styles */
.alert {
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--light-navy) 100%);
}

footer .text-light {
    opacity: 0.9;
}

footer a.text-light:hover {
    opacity: 1;
    color: var(--gold-accent) !important;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-blue) !important;
}

.border-light {
    border-color: var(--border-light) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .sticky-top {
        position: relative !important;
        top: auto !important;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy-blue);
}
