/* Custom Styles for Rowan Reynolds Website */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #2c3e50;
    --text-muted: #6c757d;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.main-content {
    padding-top: 76px; /* Account for fixed navbar */
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1a252f;
    border-color: #1a252f;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.btn-warning {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
    position: relative;
    z-index: 10;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    background-color: #e67e22 !important;
    border-color: #e67e22 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: white !important;
    background: transparent !important;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
    position: relative;
    z-index: 10;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: white !important;
    color: white !important;
    transform: translateY(-2px);
}

.text-warning {
    color: var(--accent-color) !important;
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-link.active {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-icon-container {
    position: relative;
    z-index: 1;
}

/* Page Header */
.page-header {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
}

.breadcrumb-item a {
    text-decoration: none;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Feature Icons */
.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon i {
    transition: transform 0.3s ease;
}

.card:hover .feature-icon i {
    transform: scale(1.1);
}

/* Service Icons */
.service-icon {
    flex-shrink: 0;
}

.service-icon i {
    transition: color 0.3s ease;
}

.card:hover .service-icon i {
    color: var(--accent-color) !important;
}

/* Process Steps */
.process-step {
    position: relative;
}

.step-number {
    font-size: 1.25rem;
    font-weight: bold;
}

/* Industry Items */
.industry-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.industry-item:hover {
    background-color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Contact Form */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

/* Contact Info */
.contact-info .info-item {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.contact-info h6 {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-info a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* Business Hours */
.business-hours {
    font-size: 0.95rem;
}

/* Footer */
footer {
    margin-top: auto;
}

.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color) !important;
}

/* Accordion */
.accordion-button {
    font-weight: 600;
    color: var(--primary-color);
}

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

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .page-header {
        padding: 80px 0 40px;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .hero-section .row > div:last-child {
        margin-top: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .social-links,
    footer {
        display: none !important;
    }
    
    .main-content {
        padding-top: 0 !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--dark-color);
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Cookie Banner */
.cookie-banner {
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    border-top: 3px solid var(--accent-color);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-banner .btn {
    transition: all 0.3s ease;
}

.cookie-banner .btn:hover {
    transform: translateY(-2px);
}

/* Image Enhancements */
.hero-icon-container img,
.about-illustration img,
.services-illustration img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-icon-container .hero-chart {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
    padding: 20px;
}

.hero-icon-container img:hover {
    transform: scale(1.05);
}

.about-illustration img:hover,
.services-illustration img:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.hero-fallback {
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-fallback h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-fallback p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cookie-banner {
        animation: none;
    }
}
