/* Custom styles for East Wake Hauling & Junk Removal */

:root {
    --hero-height: 100vh;
}

/* Improved text spacing and mobile typography */
body {
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: -0.003em;
    word-spacing: -0.01em;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.01em;
    word-spacing: -0.02em;
    line-height: 1.25;
    font-weight: 600;
    margin-bottom: 1rem;
}

p, span, div {
    letter-spacing: -0.005em;
    word-spacing: -0.02em;
}

/* Tighter spacing for headings */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    letter-spacing: -0.02em;
    word-spacing: -0.03em;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.display-3 {
    font-size: 3.2rem;
    line-height: 1.1;
}

.display-5 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Body padding for fixed navbar */
body {
    padding-top: 76px;
    background-color: #ffffff;
}

/* Hero section */
.hero-section {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
}

.hero-section .container {
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    opacity: 0.9;
}

/* Navbar customization */
.navbar-brand {
    font-size: 1.5rem;
    padding: 0.5rem 0;
    letter-spacing: -0.01em;
    word-spacing: -0.03em;
}

.navbar-brand img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    padding: 2px;
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

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

/* Button hover effects */
.btn {
    transition: all 0.3s ease-in-out;
}

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

/* Service icons */
.fas {
    transition: all 0.3s ease-in-out;
}

/* Service cards typography */
.service-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.005em;
}

.service-card .card-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.service-card .card-body {
    padding: 2rem 1.5rem;
}

/* Contact form styling */
#contactForm .form-control {
    border-radius: 8px;
    border: 1px solid var(--bs-border-color);
    padding: 12px 16px;
}

#contactForm .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Pricing cards */
.card-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Flash messages */
.alert {
    border-radius: 8px;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.65;
    }
    
    .hero-section {
        min-height: calc(100vh - 76px);
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-content {
        margin-bottom: 3rem;
        padding: 0 0.5rem;
    }
    
    .hero-logo {
        max-width: 200px;
        margin-top: 2rem;
    }
    
    .display-3 {
        font-size: 2.5rem !important;
        line-height: 1.15;
        margin-bottom: 1.5rem;
    }
    
    .display-5 {
        font-size: 1.9rem;
        line-height: 1.25;
        margin-bottom: 1.25rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .lead {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .fs-5 {
        font-size: 1.05rem !important;
        line-height: 1.55;
    }
    
    .card-title {
        font-size: 1.15rem !important;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-3 {
        font-size: 2rem !important;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .display-5 {
        font-size: 1.6rem;
        line-height: 1.25;
        margin-bottom: 1rem;
    }
    
    .display-6 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .lead {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 2rem;
    }
    
    .fs-5 {
        font-size: 1rem !important;
        line-height: 1.6;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        min-height: 50px;
        font-weight: 500;
    }
    
    .btn-lg {
        padding: 1.125rem 2rem;
        font-size: 1.05rem;
        min-height: 54px;
    }
    
    /* Better card text sizing */
    .service-card .card-body {
        padding: 1.75rem 1.25rem;
    }
    
    .service-card .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 1rem;
    }
    
    .service-card .card-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Navigation improvements */
    .navbar-brand {
        font-size: 1.25rem;
        font-weight: 600;
    }
    
    .navbar-nav .nav-link {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        font-weight: 500;
    }
    
    /* Pricing cards mobile optimization */
    #pricing .display-6 {
        font-size: 1.4rem !important;
        font-weight: 800;
    }
    
    .text-center.mb-5 {
        margin-bottom: 3rem !important;
    }
    
    section {
        padding: 3.5rem 0;
    }
}

/* Loading animation for form submission */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility improvements */
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Interactive service cards */
.service-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.3) !important;
    border: 2px solid var(--bs-primary);
    background: linear-gradient(135deg, var(--bs-dark) 0%, var(--bs-secondary) 100%) !important;
}

.service-card:hover .card-title {
    color: var(--bs-primary) !important;
}

.service-card:hover .fas {
    transform: scale(1.1);
    color: var(--bs-success) !important;
}

.service-card .fas {
    transition: all 0.3s ease;
}

/* Improved sections spacing and typography */
.section-title {
    margin-bottom: 3.5rem;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.55;
    margin-bottom: 2.5rem;
    letter-spacing: -0.003em;
    word-spacing: -0.01em;
    font-weight: 400;
    color: #6c757d;
}

/* Better paragraph spacing */
p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.fs-5 {
    font-size: 1.15rem !important;
    line-height: 1.5;
    font-weight: 400;
}

/* Better pricing card layout */
#pricing .card {
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#pricing .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#pricing .display-6 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

/* Pricing card list improvements */
#pricing .list-unstyled li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

#pricing .card-body {
    padding: 1.75rem 1.5rem;
}

/* Better responsive layout for pricing */
@media (max-width: 1400px) {
    #pricing .col-xl-2 {
        flex: 0 0 auto;
        width: 20%;
    }
}

@media (max-width: 1200px) {
    #pricing .col-xl-2 {
        width: 33.333333%;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    #pricing .col-xl-2 {
        width: 50%;
    }
}

@media (max-width: 576px) {
    #pricing .col-xl-2 {
        width: 100%;
    }
}

/* Button styling handled in earlier section */

/* Better focus states for accessibility */
.btn:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    outline: none;
}

.service-card:focus {
    outline: 3px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Improved section spacing */
section {
    padding: 5rem 0;
}

.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Section header improvements */
.text-center.mb-5 {
    margin-bottom: 4rem !important;
}

.text-center.mb-5 h2 {
    margin-bottom: 1.5rem;
}

.text-center.mb-5 .lead {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile-first approach for better text readability */
@media (max-width: 480px) {
    body {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .display-3 {
        font-size: 1.8rem !important;
        line-height: 1.1;
        margin-bottom: 1.25rem;
    }
    
    .display-5 {
        font-size: 1.5rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .lead {
        font-size: 0.95rem !important;
        line-height: 1.65;
        margin-bottom: 1.75rem;
    }
    
    .fs-5 {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 1rem 1.75rem;
        border-radius: 10px;
        font-weight: 500;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 1.125rem 2rem;
    }
    
    .service-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .service-card .card-title {
        font-size: 1.05rem !important;
    }
    
    .service-card .card-text {
        font-size: 0.9rem;
    }
    
    .alert {
        font-size: 0.9rem;
        padding: 1rem 1.25rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .text-center.mb-5 {
        margin-bottom: 2.5rem !important;
    }
}

/* Better hero section */
.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

.hero-content p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-weight: 400;
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* About Us section specific styles */
.about-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
    letter-spacing: -0.015em;
}

.about-content p.fs-5 {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #495057;
    font-weight: 400;
    margin-bottom: 2rem;
}

.about-content p:not(.fs-5) {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #6c757d;
    margin-bottom: 1.75rem;
}

.about-content .d-flex h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.about-content .d-flex small {
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .about-content h3 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .about-content p.fs-5 {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 1.75rem;
    }
    
    .about-content p:not(.fs-5) {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .about-content h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .about-content p.fs-5 {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }
    
    .about-content p:not(.fs-5) {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
}

/* Button refinements */
.btn {
    font-weight: 500;
    letter-spacing: 0.025em;
    text-transform: none;
}

.btn-lg {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Navbar brand typography improvement */
.navbar-brand span {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Dropdown menu improvements */
.dropdown-item {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    font-weight: 400;
}

.dropdown-header {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Card header typography */
.card-header h6 {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Print styles */
@media print {
    .navbar,
    footer,
    #contact {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
    
    .hero-section,
    section {
        min-height: auto;
        page-break-inside: avoid;
    }
}
