/* Custom styles that work with Bootstrap 5 */
/* These override Bootstrap defaults where needed */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Navigation */
.navbar {
    background-color: #fff;
    padding: 0.75rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: 2px solid #1a3a4a;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    flex-shrink: 0;
}

.navbar-brand a {
    color: #1a3a4a;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.navbar-brand .logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-brand .logo-link:hover {
    transform: scale(1.05);
}

.navbar-logo {
    height: 80px;
    width: auto;
    max-width: 320px;
    display: block;
}

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

.navbar-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a3a4a;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    align-items: center;
}

.navbar-menu li {
    position: relative;
}

.navbar-menu a {
    color: #1a3a4a;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: all 0.3s;
    font-weight: 500;
}

.navbar-menu a:hover {
    background-color: #f0f4f8;
    color: #c9a961;
    border-radius: 4px;
}

/* Dropdown Menu */
.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 4px;
    border: 1px solid #e0e4e8;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f4f8;
    color: #1a3a4a;
    font-weight: 400;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #c9a961;
}

/* Main Content */
main {
    min-height: calc(100vh - 400px);
    padding: 2rem 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Paragraphs and Lists */
p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #3498db;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-success {
    background-color: #27ae60;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Service Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s;
}

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

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-logo-img:hover {
    opacity: 1;
}

/* Testimonials */
.testimonial {
    background: #f8f9fa;
    padding: 1.5rem;
    border-left: 4px solid #3498db;
    margin: 1.5rem 0;
}

.testimonial blockquote {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    text-align: right;
    color: #666;
    font-weight: 500;
}

/* Case Studies */
.case-study {
    border: 1px solid #e1e4e8;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.case-study h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Blog */
.blog-post {
    border-bottom: 1px solid #e1e4e8;
    padding: 2rem 0;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-tag {
    background: #e1e4e8;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
}

.category-tag:hover {
    background: #3498db;
    color: #fff;
}

/* Tools */
.tool-calculator {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.calculator-results {
    background: #fff;
    padding: 1.5rem;
    border: 2px solid #27ae60;
    border-radius: 8px;
    margin-top: 2rem;
}

.calculator-results h3 {
    color: #27ae60;
    margin-bottom: 1rem;
}

/* Alerts and Messages */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar-logo {
        height: 60px;
        max-width: 240px;
    }
    
    .navbar-menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar-logo {
        height: 50px;
        max-width: 200px;
    }
    
    .navbar-menu {
        font-size: 0.9rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

/* City Page Specific Styles */
.hero-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-section h1 {
    color: #1a3a4a;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: #495057;
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.content-section {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.content-section h2 {
    color: #1a3a4a;
    border-bottom: 2px solid #c9a961;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-box {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    height: 100%;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature-box h4 {
    color: #1a3a4a;
    margin-bottom: 0.75rem;
}

.feature-box i {
    color: #c9a961;
    margin-right: 0.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #c9a961;
    border-radius: 4px;
}

.faq-item h4 {
    color: #1a3a4a;
    margin-bottom: 0.75rem;
}

.nearby-cities {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.nearby-cities h2 {
    color: #1a3a4a;
    margin-bottom: 1.5rem;
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 3rem 0;
    border-radius: 8px;
    margin-top: 3rem;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section .lead {
    color: #f8f9fa;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Bootstrap Button Overrides for consistency */
.btn-warning {
    background-color: #c9a961;
    border-color: #c9a961;
    color: #fff;
}

.btn-warning:hover {
    background-color: #b39551;
    border-color: #b39551;
    color: #fff;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Sticky sidebar card */
.sticky-top {
    position: sticky;
    top: 20px;
}

/* Breadcrumb styling */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

/* Card overrides */
.card {
    border: 1px solid #e1e4e8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-body {
    padding: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .sticky-top {
        position: relative;
        top: 0;
    }
}