/* General Styles */
:root {
    --primary-color: #4682B4; /* Steel Blue as primary color */
    --secondary-color: #8B4513; /* SaddleBrown for accents */
    --light-color: #f5f5f5;
    --dark-color: #333;
    --gray-color: #f0f0f0;
    --text-color: #444;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Top Bar Styles */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
}

.top-bar .contact-info {
    display: flex;
    gap: 20px;
}

.top-bar .contact-info a {
    color: white;
}

.top-bar .contact-info a:hover {
    color: var(--light-color);
}

.top-bar .contact-info i {
    margin-right: 5px;
}

/* Main Header Styles */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo img {
    max-height: 50px;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
}

/* Footer Styles */
.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    max-height: 70px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-style: italic;
    color: #ccc;
}

.footer-links h3,
.footer-products h3,
.footer-contact h3 {
    font-family: var(--heading-font);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-products h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li,
.footer-products ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-products ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-products ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: #ccc;
}

.footer-contact p i {
    margin-right: 10px;
    margin-top: 5px;
    color: var(--primary-color);
}

.main-footer .social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.main-footer .social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.main-footer .social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #ccc;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #ccc;
    font-size: 14px;
}

.footer-legal a:hover {
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 20px;
        transition: var(--transition);
        z-index: 101;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 102;
    }
    
    .mobile-menu-toggle.active i::before {
        content: "\f00d";
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .top-bar .container {
        justify-content: center;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

/* 
   Main CSS for SDJ Glassware Home Page
   This file contains styles for all home page sections
*/

/* General Section Styles */
.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 40px 0;
    }
}

.bg-light {
    background-color: #f8f9fa;
}

.bg-primary {
    background-color: var(--primary-color);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: var(--heading-font);
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #777;
}

.title-underline {
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #3a6d90;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: #f0f0f0;
    color: var(--primary-color);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 18px;
}

/* Hero Section Styles */
.hero-section {
    background-image: url('/images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: var(--heading-font);
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
}

/* About Section Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text {
        order: 1;
    }
    
    .about-image {
        order: 0;
    }
}

/* Why Choose Us Section Styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: rgba(70, 130, 180, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.feature-item h3 {
    font-family: var(--heading-font);
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-item p {
    color: #777;
    line-height: 1.6;
}

/* Product Categories Styles */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.category-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-item:hover .category-image img {
    transform: scale(1.1);
}

.category-item h3 {
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
}

.category-link {
    display: block;
    padding: 10px;
    background-color: rgba(70, 130, 180, 0.1);
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.category-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Featured Products Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-family: var(--heading-font);
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-info p {
    color: #777;
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.view-all-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
}

/* Craftsmanship Section Styles */
.craftsmanship-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.craftsmanship-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.craftsmanship-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

@media (max-width: 991px) {
    .craftsmanship-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Heritage Section Styles */
.heritage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.heritage-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.heritage-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .heritage-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Testimonials Section Styles */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    color: #FFD700;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
}

.author-location {
    font-size: 14px;
    color: #777;
}

/* Shop CTA Section Styles */
.shop-cta-section {
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--heading-font);
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
}

/* Contact Section Styles */
.contact-container {
    /* display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px; */
    margin-bottom: 50px;
    max-width: 600px;
    margin: auto;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item > i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.contact-item p {
    color: #555;
}

.contact-item a {
    color: #555;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-social h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.contact-social .social-links {
    display: flex;
    gap: 10px;
}

.contact-social .social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(70, 130, 180, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-social .social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-family: var(--heading-font);
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 16px;
    color: #555;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Newsletter Section Styles */
.newsletter-section {
    padding: 60px 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-family: var(--heading-font);
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.newsletter-content p {
    margin-bottom: 25px;
    color: #777;
}

.newsletter-form .form-group {
    display: flex;
    margin-bottom: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.newsletter-form button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

@media (max-width: 576px) {
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 4px;
    }
}