/* 
 * Biothane Boutique Main Stylesheet
 * Created: 2025-05-24
 * Author: Cascade
 */

/* ---------- Variables ---------- */
:root {
    /* Brand Colors from Logo */
    --primary: #0f3c5d;      /* Navy Blue (from logo background) */
    --secondary: #ffffff;    /* White (from logo text) */
    --accent: #ff8c00;       /* Warm Orange (accent color) */
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --success: #28a745;
    --warning: #ffc107;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

/* ---------- Global Styles ---------- */
body {
    font-family: var(--body-font);
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--primary);
}

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

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

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

.btn-primary:hover {
    background-color: #0a2e48;
    border-color: #0a2e48;
}

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

.btn-secondary:hover {
    background-color: #e67e00;
    border-color: #e67e00;
    color: white;
}

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

.btn-outline-secondary:hover {
    background-color: var(--accent);
    color: white;
}

/* ---------- Header & Navigation ---------- */
header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    background-color: var(--primary);
    padding: 0.5rem 0; /* Reduced padding */
}

/* Text-based logo styling */
.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand .logo-text {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem; /* Smaller logo text */
    color: var(--secondary);
    letter-spacing: 0.5px;
    margin-right: 1rem; /* Add spacing after logo */
}

/* Keep for backward compatibility */
.navbar-brand img.logo {
    max-height: 60px;
    width: auto;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--secondary);
    font-weight: 500;
    padding: 0.5rem 0.6rem; /* Reduced horizontal padding */
    font-size: 0.9rem; /* Slightly smaller font */
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent);
}

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

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

/* ---------- Hero Section ---------- */
.hero {
    padding: 5rem 0;
    background-color: var(--light-gray);
    height: 90.72vh; /* Increased to 1.05 times the previous 86.4vh (1.512 times original) */
    display: flex;
    align-items: center;
    padding-top: 5rem; /* Maintaining extra top padding to prevent header overlap */
}

/* Responsive adjustments for hero section */
@media (max-width: 991px) {
    .hero {
        padding: 3rem 0 5rem; /* Increase bottom padding on smaller screens */
    }
    .hero .row {
        flex-direction: column;
    }
    .hero .col-lg-6:first-child {
        order: 1; /* Text first on mobile */
        margin-bottom: 2rem;
    }
    .hero .col-lg-6:last-child {
        order: 0; /* Image second on mobile */
        margin-bottom: 2rem;
    }
    /* Make sure the hero image doesn't overflow */
    .hero-image {
        max-width: 80%;
        margin: 0 auto 1rem;
        display: block;
    }
}

.hero h1 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

.hero-image {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
    max-height: 100%;
}

.hero-image:hover {
    transform: translateY(-5px);
}

/* Hero section row and columns height adjustment */
.hero .container {
    height: 100%;
}

.hero .row {
    height: 90.72%; /* Increased to 1.05 times the previous 86.4% (1.512 times original) */
    align-items: center;
}

.hero .col-lg-6 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---------- Features Section ---------- */
.features {
    background-color: white;
}

.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    height: 100%;
}

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

.icon-wrapper {
    background-color: var(--light-gray);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

/* ---------- Featured Products Section ---------- */
.featured-products {
    background-color: var(--light-gray);
}

.card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.card-title {
    color: var(--primary);
    font-weight: 600;
}

.price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* ---------- Testimonials Section ---------- */
.testimonials {
    background-color: white;
}

.testimonial-card {
    background-color: var(--light-gray);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(15, 60, 93, 0.1);
    font-family: Georgia, serif;
}

.stars {
    color: var(--warning);
    margin-bottom: 1rem;
}

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

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

/* ---------- Call to Action Section ---------- */
.cta {
    background-color: var(--primary);
    color: white;
}

.cta h2, .cta p {
    color: white;
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--primary);
    color: white;
    position: relative !important; /* Force relative positioning */
    margin-top: 3rem !important; /* Ensure space above footer */
    clear: both; /* Clear any floats */
    width: 100%; /* Full width */
    bottom: 0; /* Align to bottom */
    z-index: 100; /* Ensure footer stays above other content */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow at top */
}

.footer a {
    color: var(--secondary);
}

.footer a:hover {
    color: var(--accent);
    text-decoration: none;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

.footer h5 {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent);
    color: white;
}

hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* ---------- Product Pages ---------- */
.product-header {
    background-color: var(--light-gray);
    padding: 4rem 0;
}

.product-filters {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-heading {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* ---------- Product Detail Page ---------- */
.product-detail {
    padding: 4rem 0;
}

.product-gallery {
    margin-bottom: 2rem;
}

.product-thumbnail {
    border: 2px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--primary);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.color-swatch {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-swatch.active {
    border-color: var(--primary);
}

.size-selector {
    margin-bottom: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    background-color: var(--light-gray);
    border: none;
    font-weight: bold;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--medium-gray);
    height: 32px;
}

/* ---------- About Page ---------- */
.about-section {
    padding: 5rem 0;
}

.about-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ---------- Contact Page ---------- */
.contact-section {
    padding: 5rem 0;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-control {
    border: 1px solid var(--medium-gray);
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(15, 60, 93, 0.25);
}

/* ---------- Media Queries ---------- */
@media (max-width: 992px) {
    .hero {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero .btn-group {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .feature-card, 
    .testimonial-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand img.logo {
        max-height: 50px;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .footer-logo {
        max-width: 150px;
    }
}
