/* Custom styles for Kavanaugh Upholstery */

/* Color Variables */
:root {
    --primary-color: #C8D7E0;
    --primary-dark: #A8C7D0;
    --text-dark: #333;
    --text-light: #666;
}

/* General styles */
body {
    font-family: 'Abyssinica SIL', serif;
    font-weight: 400;
    line-height: 1.6;
    background-image: url('assets/images/bg-pattern.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Heading styles */
h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Header Container */
.header-container {
    margin-bottom: 3rem;
}

/* Logo */
.logo-container {
    margin-bottom: 0;
}

.logo-img {
    max-height: 60px;
    width: auto;
}

/* Hero Navigation */
.hero-nav {
    margin-bottom: 0;
}

.hero-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
}

.hero-nav .nav-link:hover,
.hero-nav .nav-link.active {
    color: #000 !important;
    border-bottom-color: #000;
    text-decoration: underline;
}

/* Hero Content */
.hero-content {
    padding: 2rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Text Container */
.hero-text-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-text p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Hero Image */
.hero-image-full {
    height: 100vh;
    overflow: hidden;
}

.hero-image-full img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Mobile Hero Section */
.hero-section-mobile {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.mobile-header {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1001;
}

.mobile-nav .navbar-toggler {
    padding: 0.5rem;
    background: transparent;
}

.mobile-nav .navbar-toggler:focus {
    box-shadow: none;
}

.mobile-nav .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(0, 0, 0, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

.mobile-nav .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0 0 8px 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 0;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
}

.mobile-nav .nav-link:hover {
    color: #000 !important;
    border-bottom-color: #000;
    text-decoration: underline;
}

.mobile-hero-image {
    height: 40vh;
    min-height: 300px;
    overflow: hidden;
}

.mobile-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-hero-text {
    padding: 2rem 1rem;
    text-align: center;
}

.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="floral" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23e9ecef" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23floral)"/></svg>');
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

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

.hero-image {
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    background: rgba(0,123,255,0.1);
    border-radius: 8px;
    z-index: -1;
}

/* Section Titles */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    text-align: center;
    width: auto;
}

.section-title::before {
    content: attr(data-first-letter);
    position: absolute;
    left: -10px;
    top: -10px;
    font-size: 45px;
    color: #ccc;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    z-index: -1;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

/* Services Section */
.service-card {
    background: var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid var(--primary-dark);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    background: var(--primary-dark);
}

.service-card h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
}

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

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

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

/* Testimonials Section */
.testimonial-container {
    background: transparent;
    padding: 3rem;
    position: relative;
}

.testimonial-icon {
    color: var(--primary-color);
}

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

.testimonial-author {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.testimonial-content {
    position: relative;
}

.testimonial-nav-left {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.testimonial-nav-right {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.testimonial-nav-left button,
.testimonial-nav-right button {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

.testimonial-nav-left button:hover,
.testimonial-nav-right button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-dark);
}

/* Mobile Testimonial Navigation */
.testimonial-nav-mobile {
    text-align: center;
}

.testimonial-nav-mobile button {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

.testimonial-nav-mobile button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-dark);
}

/* Separator */
.separator {
    text-align: center;
    padding: 2rem 0;
}

.separator img {
    max-width: 200px;
    height: auto;
}

/* Footer */
.footer-custom {
    background: var(--primary-color);
    color: var(--text-dark) !important;
}

.footer-logo-img {
    max-height: 50px;
    width: auto;
}

.social-link {
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #333 !important;
}

/* Footer Contact Items */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.contact-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.contact-content {
    flex: 1;
}

.contact-title {
    font-weight: normal;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    min-height: 18px;
}

.contact-detail {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.4;
}

.contact-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    text-decoration: underline;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        padding: 1rem;
        height: auto;
        min-height: 50vh;
    }
    
    .hero-text-container {
        min-height: 30vh;
    }
    
    .hero-image-full {
        height: 40vh;
        min-height: 300px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .header-container .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Mobile Navigation */
    .hero-nav .navbar-toggler {
        border: 1px solid var(--text-dark);
        padding: 0.25rem 0.5rem;
    }
    
    .hero-nav .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .hero-nav .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .hero-nav .nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-nav .nav-link {
        padding: 0.5rem 0;
        text-align: center;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .testimonial-container {
        padding: 2rem 1.5rem;
    }
    
    /* Mobile Testimonial Arrows */
    .testimonial-nav-left {
        position: static;
        transform: none;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .testimonial-nav-right {
        position: static;
        transform: none;
        margin-top: 1rem;
        text-align: center;
    }
    
    .testimonial-nav-left button,
    .testimonial-nav-right button {
        margin: 0 0.5rem;
    }
    
    .about-content {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-title::before {
        font-size: 36px;
        left: -10px;
        top: -3px;
    }
    
    /* Footer Mobile Spacing */
    .footer-custom .row > div {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .mobile-hero-image {
        height: 35vh;
        min-height: 250px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .testimonial-container {
        padding: 1.5rem 1rem;
    }
    
    .footer-custom .row > div {
        margin-bottom: 1.5rem;
    }
}

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

/* Button hover effects */
.btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--text-dark);
    padding: 0.75rem 2rem;
    font-weight: normal;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 215, 224, 0.4);
    text-decoration: underline;
}

/* Section transitions */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
} 