/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Color Variables */
:root {
    --primary-color: #8B4513;
    --secondary-color: #A0522D;
    --accent-color: #D2B48C;
    --dark-color: #2c2c2c;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: #555;
}

/* Navigation */
.navbar {
    background-color: #FFFFFF;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand .brand-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
}

/* Mobile responsive logo styling */
@media (max-width: 768px) {
    .navbar-brand .brand-logo {
        height: 35px;
        margin-right: 8px;
    }
    
    .navbar-brand .brand-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand .brand-logo {
        height: 32px;
        margin-right: 6px;
    }
    
    .navbar-brand .brand-text {
        font-size: 1.2rem;
    }
}

.navbar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

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

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

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-furniture.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
    z-index: 1;
    transition: var(--transition);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(44, 44, 44, 0.6));
    z-index: 2;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-hero {
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(139, 69, 19, 0.3);
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 2rem;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Global Image Hover Effects */
.about-image img,
.history-image img,
.supplier-image img {
    transition: var(--transition);
    object-fit: cover;
    width: 100%;
    height: auto;
}

/* Hover effects only on devices that support hover */
@media (hover: hover) {
    .about-image img:hover,
    .history-image img:hover,
    .supplier-image img:hover {
        transform: scale(1.02);
    }
    
    .hero-section:hover .hero-background {
        transform: scale(1.02);
    }
}

/* History Section */
.bg-light {
    background-color: var(--light-color) !important;
}

.year-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item span {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Supplier Gallery */
.supplier-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 2rem;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

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

.supplier-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.supplier-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 8px;
}

.supplier-info {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.supplier-link {
    text-align: center;
}

.supplier-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    white-space: nowrap;
}

.supplier-link a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Contact Section */
.contact-info {
    padding: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 30px;
}

.contact-item h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    margin: 0;
    color: #666;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.7rem;
}

/* Form validation styles */
.form-control.is-valid {
    border-color: #28a745;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Form messages */
#form-messages {
    margin-bottom: 1.5rem;
}

.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: #d1edff;
    color: #0c5460;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Math captcha styling */
.math-captcha {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.math-captcha label {
    margin-bottom: 0.5rem;
}

.math-captcha #captcha-question {
    font-weight: 700;
    color: var(--primary-color);
}

/* Privacy notice */
.privacy-notice {
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Button loading state */
#submit-btn {
    min-width: 150px;
    position: relative;
}

#submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
    }
    
    .contact-form {
        margin-top: 2rem;
    }
    
    /* Supplier gallery responsive adjustments */
    .supplier-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .supplier-image {
        width: 180px;
        height: 135px;
    }
    
    .supplier-info {
        justify-content: center;
    }
    
    .supplier-link a {
        font-size: 1rem;
        white-space: normal;
    }
    
    /* History section mobile fixes */
    .history-image {
        margin-bottom: 2rem;
    }
    
    .year-badge {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-hero {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile supplier gallery adjustments */
    .supplier-card {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
        gap: 0.8rem;
    }
    
    .supplier-image {
        width: 160px;
        height: 120px;
        align-self: center;
    }
    
    .supplier-info {
        justify-content: center;
    }
    
    .supplier-link a {
        font-size: 0.9rem;
        white-space: normal;
        word-break: break-word;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        min-height: 600px;
    }
    
    .hero-background {
        background-attachment: scroll; /* Better performance on mobile */
        background-position: center center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-hero {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-color);
    color: var(--white);
    z-index: 1000;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner-content {
    padding: 1.5rem 0;
}

.cookie-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--light-color);
}

.cookie-link {
    color: var(--accent-color);
    text-decoration: underline;
    transition: var(--transition);
}

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

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-cookie {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    min-width: 80px;
}

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

.btn-outline-light:hover {
    background-color: var(--light-color);
    border-color: var(--light-color);
    color: var(--dark-color);
}

/* Responsive adjustments for cookie banner */
@media (max-width: 768px) {
    .cookie-banner-content {
        padding: 1rem 0;
    }
    
    .cookie-text {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-cookie {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 576px) {
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.1s ease;
}
