/* Sunset Homes Painting - Custom Styles */

:root {
    --sunset-orange: #D62828;
    --sunset-yellow: #F77F00;
    --sunset-blue: #8B1538;
    --sunset-cream: #FFF8E7;
    --text-dark: #333;
    --text-light: #666;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--sunset-cream);
    line-height: 1.6;
}

/* Navbar Styling */
.navbar {
    background: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.navbar-brand .logo-img {
    display: block;
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 40px;
        max-width: 150px;
    }
    
    .navbar-brand span {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 35px;
        max-width: 120px;
    }
    
    .navbar-brand span {
        font-size: 1rem;
    }
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.navbar-nav .nav-link:hover {
    color: var(--sunset-yellow) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--sunset-yellow) !important;
    font-weight: bold;
}

.navbar-toggler {
    border-color: var(--white);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--sunset-yellow) 50%, var(--sunset-blue) 100%);
    padding: 1rem 0.75rem;
    text-align: center;
    margin-top: 76px; /* Account for fixed navbar */
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-quote {
    font-size: 2rem;
    font-weight: bold;
    font-style: italic;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
    margin-bottom: 1rem;
}

.hero-author {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 1rem;
    opacity: 0.95;
}

/* Home Image Section */
.home-image-section {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.home-image-section img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
}

@media (max-width: 768px) {
    .home-image-section img {
        max-height: 400px;
    }
}

/* Welcome Section */
.welcome-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--white);
}

.welcome-section h1 {
    color: var(--sunset-orange);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.welcome-section p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--sunset-yellow) 100%);
    border: none;
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(214, 40, 40, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(214, 40, 40, 0.4);
    color: var(--white);
}

.btn-secondary-custom {
    background: linear-gradient(135deg, var(--sunset-blue) 0%, #A01D3D 100%);
    border: none;
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
    color: var(--white);
}

/* Page Sections */
.page-section {
    padding: 4rem 2rem;
    background-color: var(--white);
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-section h2 {
    color: var(--sunset-orange);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--white);
}

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

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.gallery-caption {
    padding: 1rem;
    background-color: var(--white);
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
}

/* Review Cards */
.review-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--sunset-orange);
}

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

.review-stars {
    color: var(--sunset-yellow);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-style: italic;
}

.review-author {
    font-size: 1.1rem;
    color: var(--sunset-orange);
    font-weight: 600;
    text-align: right;
}

/* Contact Form */
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

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

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--sunset-orange);
    box-shadow: 0 0 0 0.2rem rgba(214, 40, 40, 0.25);
    outline: none;
}

.btn-submit {
    background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--sunset-yellow) 100%);
    border: none;
    color: var(--white);
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(214, 40, 40, 0.3);
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 40, 40, 0.4);
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Contact Info */
.contact-info {
    background-color: #1e1e1e;
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 3rem;
    border-left: 4px solid var(--sunset-orange);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--white);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.contact-info a {
    color: var(--sunset-yellow);
    font-weight: 600;
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--sunset-orange);
    text-decoration: underline;
}

.contact-info i {
    margin-right: 0.5rem;
    color: var(--sunset-orange);
}

/* Calendly Section */
.calendly-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
}

.calendly-section h3 {
    color: var(--sunset-orange);
    margin-bottom: 1.5rem;
    text-align: center;
}

.calendly-embed {
    min-height: 700px;
    border: none;
    border-radius: 10px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: var(--sunset-yellow);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--sunset-yellow);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--sunset-yellow);
    transform: translateY(-3px);
}

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

/* Modal Styling */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--sunset-yellow) 100%);
    color: var(--white);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    font-weight: bold;
}

.btn-close {
    filter: invert(1);
}

.modal-body img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-quote {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-quote {
        font-size: 1.3rem;
    }

    .hero-section {
        padding: 0.75rem 0.5rem;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .page-section h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-quote {
        font-size: 1.1rem;
    }

    .review-text {
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Accessibility */
.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;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--sunset-blue);
    outline-offset: 2px;
}

/* Sticky CTA Button */
.sticky-cta-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--sunset-yellow) 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.sticky-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    color: var(--white);
}

.sticky-cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

@media (max-width: 768px) {
    .sticky-cta-button {
        bottom: 15px;
        right: 15px;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .sticky-cta-button {
        bottom: 10px;
        right: 10px;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        border-radius: 40px;
    }
}
