/*
 * Main Stylesheet for Dekor54 Website
 * This CSS file contains styles for the entire website, inspired by forwooddesign.com
 */

/* 
 * Variables 
 */
:root {
    /* Color palette */
    --primary-color: #8B5A2B;        /* Wood brown */
    --primary-dark: #6B4423;          /* Darker brown */
    --primary-light: #A67C52;         /* Lighter brown */
    --secondary-color: #2B3A42;       /* Deep blue-gray */
    --accent-color: #D4A76A;          /* Gold accent */
    --text-color: #333333;            /* Main text color */
    --text-light: #777777;            /* Light text color */
    --background-light: #F7F7F7;      /* Light background */
    --white: #FFFFFF;
    --black: #000000;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    
    /* Fonts */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Raleway', sans-serif;
    
    /* Spacing */
    --section-spacing: 6rem;
    --heading-spacing: 2rem;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

/*
 * Base Styles
 */
html, body {
    font-family: var(--body-font);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: var(--section-spacing) 0;
}

.bg-light {
    background-color: var(--background-light);
}

.btn {
    font-family: var(--body-font);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    transition: all var(--transition-speed) ease;
}

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

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

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

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

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

.btn-light:hover, .btn-light:focus {
    background-color: var(--gray-100);
    border-color: var(--gray-100);
    color: var(--primary-dark);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.btn-link:hover {
    color: var(--primary-dark);
}

.icon-small {
    width: 18px;
    height: 18px;
    margin-left: 0.5rem;
}

.icon-large {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}

.section-heading {
    margin-bottom: var(--heading-spacing);
}

.section-heading h2 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-heading h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 0;
}

.text-center .section-heading h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subheading {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/*
 * Header & Navigation
 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.navbar {
    padding: 1.5rem 0;
    transition: all var(--transition-speed) ease;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-light .navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    transition: width var(--transition-speed) ease;
}

.navbar-light .navbar-nav .nav-link:hover:after,
.navbar-light .navbar-nav .nav-link.active:after {
    width: 80%;
}

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

.language-form {
    margin-top: 0.25rem;
}

/*
 * Hero Section
 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
    margin-top: -97px; /* Adjust based on navbar height */
    padding-top: 97px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero-btn {
    font-size: 1rem;
    padding: 1rem 2rem;
}

/*
 * About Section
 */
.about-section {
    position: relative;
}

.about-img {
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-content {
    padding: 1rem 0;
}

/*
 * Products Section
 */
.product-card {
    margin-bottom: 2rem;
    background-color: var(--white);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.product-image {
    overflow: hidden;
    position: relative;
}

.product-image img {
    transition: transform var(--transition-speed) ease;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

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

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

.product-title a:hover {
    color: var(--primary-color);
}

.product-category {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/*
 * Projects Section
 */
.project-card {
    margin-bottom: 2rem;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.project-image {
    overflow: hidden;
}

.project-image img {
    transition: transform var(--transition-speed) ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

.project-title a:hover {
    color: var(--primary-color);
}

.project-client {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/*
 * Testimonials Section
 */
.testimonials-section {
    padding: var(--section-spacing) 0;
}

.testimonial-item {
    padding: 2rem;
    text-align: center;
}

.quote-icon {
    width: 40px;
    height: 40px;
    stroke: var(--accent-color);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.author-info h5 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.author-info p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.carousel-control-prev, .carousel-control-next {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.carousel-control-prev {
    left: -1.5rem;
}

.carousel-control-next {
    right: -1.5rem;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/*
 * CTA Section
 */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0;
}

.cta-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/*
 * Page Header
 */
.page-header {
    background-color: var(--background-light);
    padding: 9rem 0 3rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.breadcrumb {
    justify-content: center;
    background-color: transparent;
    margin-bottom: 0;
}

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

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

/*
 * About Page Styles
 */
.about-main {
    padding-top: 4rem;
}

.about-main-img {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-section + .about-section {
    margin-top: 2rem;
}

.values-section {
    padding: 5rem 0;
}

.value-card {
    padding: 2rem;
    background-color: var(--white);
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.team-section {
    padding: 5rem 0;
}

.team-card {
    margin-bottom: 2rem;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
}

.team-position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/*
 * Products Page Styles
 */
.category-filter {
    padding: 2rem 0;
}

.category-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    margin: 0.25rem;
    color: var(--text-color);
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    transition: all var(--transition-speed) ease;
}

.category-link:hover, .category-link.active {
    color: var(--white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.category-description {
    color: var(--text-light);
    font-size: 1.1rem;
}

.pagination-wrapper {
    margin-top: 3rem;
}

.pagination .page-item .page-link {
    color: var(--primary-color);
    border-color: var(--gray-300);
    padding: 0.5rem 1rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

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

.product-gallery {
    position: relative;
}

.main-image {
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-speed) ease;
}

.thumbnail-images .thumbnail {
    display: block;
    border: 1px solid var(--gray-200);
    opacity: 0.7;
    transition: all var(--transition-speed) ease;
}

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

.product-info-detail {
    padding: 0 0 0 2rem;
}

.product-info-detail .product-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.product-info-detail .product-category {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.product-info-detail .product-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.product-description h3, .product-features h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.meta-list li {
    margin-bottom: 0.5rem;
    display: flex;
}

.meta-label {
    font-weight: 600;
    min-width: 100px;
}

.related-products {
    padding: 4rem 0;
}

/*
 * FAQ Page Styles
 */
.faq-section {
    padding: 60px 0;
}

.accordion-item {
    margin-bottom: 15px;
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    padding: 20px 25px;
    background-color: #f9f9f9;
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
}

.accordion-button:not(.collapsed) {
    background-color: #e9e9e9;
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(139, 90, 43, 0.25);
}

.accordion-button::after {
    transition: all var(--transition-speed) ease;
}

.accordion-body {
    padding: 20px 25px;
    background-color: var(--white);
    line-height: 1.7;
}

.contact-cta {
    background-color: #f5f5f5;
    padding: 60px 0;
    margin-top: 20px;
    border-top: 1px solid #e9e9e9;
}

html[dir="rtl"] .accordion-button::after {
    margin-right: auto;
    margin-left: 0;
}

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

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2.5rem;
    height: 100%;
}

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

.contact-subtitle {
    margin-bottom: 2rem;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-icon {
    margin-right: 1rem;
    min-width: 24px;
}

.contact-details h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact-details p, .contact-details a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.contact-details a:hover {
    color: var(--white);
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 2.5rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper h3 {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
}

.map-wrapper {
    height: 450px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/*
 * Social Links
 */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    color: var(--white);
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/*
 * Footer
 */
.footer {
    background-color: var(--secondary-color);
    color: var(--gray-300);
    padding: 5rem 0 2rem;
}

.footer-heading {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-heading:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 0;
}

.footer-text {
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: var(--gray-300);
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--white);
}

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

.footer-contact li {
    display: flex;
    margin-bottom: 1rem;
}

.contact-icon {
    margin-right: 0.8rem;
    color: var(--accent-color);
}

.footer .social-link {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer .social-link:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.copyright p {
    margin-bottom: 0;
    font-size: 0.9rem;
}
