/* 
 * Custom Party Favors & Crafts Styles
 * Main Stylesheet
 */

/* Custom CSS for Noble Tonova */

:root {
    --primary: #41BFC7;      /* Teal from logo */
    --secondary: #FB619A;    /* Pink from logo */
    --accent: #FDCF33;       /* Yellow from logo */
    --dark: #333333;         /* Dark gray */
    --light: #f8f9fa;        /* Light gray */
    --white: #ffffff;        /* White */
    --success: #7CC576;      /* Green */
    --info: #65B1E4;         /* Blue */
    --warning: #FFA726;      /* Orange */
    --danger: #F44336;       /* Red */
    --body-color: #212529;
    --body-bg: #ffffff;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-display: 'Segoe UI', Arial, sans-serif;
    --border-radius: 0.25rem;
    --box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

/* Global Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--body-bg);
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-display);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin-top: 0.5rem;
}

.text-center .section-title:after {
    margin-left: auto;
    margin-right: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #39A8B0;
    border-color: #39A8B0;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #E05588;
    border-color: #E05588;
}

/* Header & Navigation */
.top-bar {
    background-color: var(--primary) !important;
    color: white;
    padding: 0.5rem 0;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.navbar {
    padding: 1rem 0;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

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

.navbar-brand img {
    max-height: 60px;
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--primary);
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(65, 191, 199, 0.1);
    color: var(--primary);
}

.dropdown-menu {
    margin-top: 0.5rem;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

/* Hero Section */
.hero-section .carousel-item {
    height: 70vh;
    min-height: 400px;
}

.hero-section .carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.hero-section .carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 5px;
    max-width: 600px;
    margin: 0 auto;
}

.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Featured Image */
.featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* Welcome Section */
.welcome-section {
    padding: 4rem 0;
    text-align: center;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.welcome-section p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* Product Cards */
.product-card {
    height: 100%;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.product-card .price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.service-card {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.service-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-section {
    padding: 4rem 0;
}

.testimonial-card {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.star-rating {
    color: #ffc107;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.customer-name {
    font-weight: 700;
    color: var(--primary);
}

/* Footer */
footer {
    margin-top: auto;
    background-color: var(--dark) !important;
    color: white;
    padding: 2rem 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

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

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

.footer h3 {
    color: var(--white);
    margin-bottom: 1.2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    padding: 0.4rem 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Page Header */
.page-header {
    background-color: var(--light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-title {
    color: var(--dark);
    font-weight: 700;
}

.breadcrumb-item.active {
    color: var(--primary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* About Page */
.owner-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.story-icon, .value-icon {
    color: var(--primary);
}

.team-member img {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Page */
.contact-icon {
    color: var(--primary);
}

.business-hours {
    border-left: 4px solid var(--primary);
}

/* Media Queries */
@media (max-width: 991.98px) {
    .hero-section .carousel-caption {
        padding: 1.5rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .navbar .form-control, .navbar .btn {
        font-size: 0.875rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section .carousel-item {
        height: 60vh;
    }
    
    .hero-section .carousel-caption {
        bottom: 0;
        transform: none;
        max-width: 100%;
        border-radius: 0;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section .carousel-item {
        height: 50vh;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .welcome-section {
        padding: 2rem 0;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .product-card img {
        height: 150px;
    }
}

/* Image Styles */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    background-color: #f8f9fa;
    transition: opacity 0.3s ease;
}

.values-image {
    position: relative;
    min-height: 400px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.values-image img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Remove the placeholder-specific styling since we'll use local images */
img {
    opacity: 1 !important;
    transition: opacity 0.3s ease;
}

/* Column spacing fixes */
.col-lg-6 {
    padding: 15px;
}

@media (max-width: 991.98px) {
    .mt-lg-0 {
        margin-top: 2rem !important;
    }
}

/* Category Filter */
.form-select {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Product Image Placeholder */
.product-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    background: #f8f9fa;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image img.loading {
    opacity: 0.5;
}

.product-image img.error {
    display: none;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f8f9fa 25%, #e9ecef 25%, #e9ecef 50%, #f8f9fa 50%, #f8f9fa 75%, #e9ecef 75%, #e9ecef 100%);
    background-size: 20px 20px;
    opacity: 0.5;
}

.product-image.error::after {
    content: '\f03e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #6c757d;
} 