/* Global Styles */
/* Import Google Fonts for consistent rendering across all devices */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --primary-color: #3a5a40;
    --secondary-color: #a3b18a;
    --accent-color: #588157;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.section-title {
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.logo h1 {
    font-family: 'Open Sans', sans-serif;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.brand-logo {
    height: 112px;
    width: auto;
    object-fit: contain;
}

.brand-title .line1,
.brand-title .line2,
.brand-title .line3 {
    display: block;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.brand-title .line2 {
    font-weight: inherit;
}

.brand-title .line3 {
    font-weight: inherit;
    white-space: nowrap;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 10px;
}

nav ul li:first-child {
    margin-left: 320px;
}

nav ul li a {
    font-weight: 600;
    position: relative;
    padding: 8px 16px;
    border-radius: 4px;
    transition: var(--transition);
    display: inline-block;
    line-height: 1.2;
    border-bottom: 2px solid transparent;
    min-width: 120px;
    height: 40px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add background color for horizontal view (desktop/laptop) */
@media (min-width: 768px) {
    nav ul li a {
        background-color: rgba(163, 177, 138, 0.32);
        margin: 0 2px;
    }
}

nav ul li a:hover,
nav ul li a.active {
    border-bottom-color: var(--accent-color);
}

/* Page-specific button hiding */
body.home-page nav ul li a[href="index.html"] {
    display: none;
}

body.products-page nav ul li a[href="products.html"] {
    display: none;
}

body.projects-page nav ul li a[href="projects.html"] {
    display: none;
}

body.materials-page nav ul li a[href="materials.html"] {
    display: none;
}

body.about-page nav ul li a[href="about.html"] {
    display: none;
}

body.contact-page nav ul li a[href="contact.html"] {
    display: none;
}

body.admin-page nav ul li a[href="admin.html"] {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 0;
    text-align: center;
    overflow: hidden;
    height: 40.5vh; /* increased by an additional 20% (was 33.75vh) */
    min-height: 360px;
}

/* Animated Background Container */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    animation: backgroundMove 20s linear infinite;
}

.hero-background-layer.active {
    opacity: 1;
}

.hero-background-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

/* Background movement animations */
@keyframes backgroundMove {
    0% {
        transform: scale(1.1) translate(-5%, -5%);
    }
    25% {
        transform: scale(1.15) translate(5%, -3%);
    }
    50% {
        transform: scale(1.2) translate(3%, 5%);
    }
    75% {
        transform: scale(1.15) translate(-3%, 3%);
    }
    100% {
        transform: scale(1.1) translate(-5%, -5%);
    }
}

/* Alternative animation for variety */
@keyframes backgroundMoveAlt {
    0% {
        transform: scale(1.2) translate(3%, 3%);
    }
    25% {
        transform: scale(1.1) translate(-5%, 5%);
    }
    50% {
        transform: scale(1.15) translate(-3%, -5%);
    }
    75% {
        transform: scale(1.2) translate(5%, -3%);
    }
    100% {
        transform: scale(1.2) translate(3%, 3%);
    }
}

.hero-background-layer:nth-child(even) {
    animation: backgroundMoveAlt 25s linear infinite;
}

/* Hero content positioning */
.hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Featured Categories */
.featured-categories {
    padding: 80px 0;
    background-color: white;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.category-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.category-card h3 {
    padding: 15px;
    text-align: center;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.category-card .btn-small {
    display: block;
    margin: 0 15px 15px;
    text-align: center;
    background-color: var(--secondary-color);
}

.category-card .btn-small:hover {
    background-color: var(--accent-color);
}

/* Featured Products */
.featured-products {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.product-grid,
.items-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: var(--shadow);
    transition: var(--transition);
}

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

.product-image {
    position: relative;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: white;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
}

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

/* CTA Section */
.cta {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1524758631624-e2822e304c36');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 10px;
    color: #aaa;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    position: relative;
    color: white;
    padding: 0;
    text-align: center;
    overflow: hidden;
    height: 26.325vh; /* 35% shorter than index hero (40.5vh * 0.65) */
    min-height: 234px; /* 35% shorter than index min-height (360px * 0.65) */
}

/* Align page header content similar to .hero */
.page-header .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Admin page specific adjustment to move "Admin Dashboard" text 10% lower */
body[class*="admin"] .page-header .container,
.admin-page .page-header .container {
    transform: translateY(10%);
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


/* Product Category */
.product-category {
    padding: 60px 0;
}

.product-category:nth-child(odd) {
    background-color: #f9f9f9;
}

.product-category:nth-child(even) {
    background-color: white;
}

/* Pagination */
.pagination {
    padding: 40px 0;
    background-color: white;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

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

.page-link:hover:not(.active) {
    background-color: var(--secondary-color);
    color: white;
}

.page-link.next {
    width: auto;
    padding: 0 15px;
}

.page-link.next i {
    margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
    }

    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        justify-content: space-between;
    }
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #999;
}

.breadcrumb-list li:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

/* Product Detail */
.product-detail {
    padding: 60px 0;
    background-color: white;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover {
    border-color: var(--secondary-color);
}

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

/* Product Info Detail */
.product-info-detail h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-id {
    color: #777;
    font-size: 0.9rem;
}

.product-rating {
    display: flex;
    align-items: center;
}

.rating-count {
    margin-left: 5px;
    color: #777;
}

.price-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.availability {
    margin-bottom: 20px;
    font-weight: 600;
}

.in-stock {
    color: #28a745;
}

.product-description {
    margin-bottom: 25px;
    line-height: 1.7;
}

.product-description p {
    margin-bottom: 10px;
}

.product-detailed-description {
    margin-bottom: 30px;
}

.product-detailed-description h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-detailed-description .description-content {
    line-height: 1.8;
    font-size: 1rem;
    color: var(--text-color);
}

.product-detailed-description .description-content p {
    margin-bottom: 16px;
    text-align: justify;
}

.product-detailed-description .description-content p:last-child {
    margin-bottom: 0;
}

.product-detailed-description .description-content strong,
.product-detailed-description .description-content b {
    color: var(--primary-color);
    font-weight: 700;
}

.product-detailed-description .description-content .highlight-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.product-features {
    margin-top: 20px;
    margin-bottom: 25px;
}

.product-features h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.product-features ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.product-features ul li i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Product Options */
.product-options {
    margin-bottom: 25px;
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.color-options {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.color-option.beige {
    background-color: #e8d4b9;
}

.color-option.gray {
    background-color: #a0a0a0;
}

.color-option.blue {
    background-color: #6e8faf;
}

.color-option.green {
    background-color: #7fa67f;
}

.selected-option {
    font-size: 0.9rem;
    color: #666;
}


/* Product Actions */
.product-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.btn-primary {
    background-color: var(--primary-color);
    flex-grow: 1;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

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

.delivery-info {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.delivery-info p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.delivery-info p i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Product Tabs */
.product-tabs {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
}

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

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Specifications Tab */
.specs-table, .dimensions-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th, .specs-table td,
.dimensions-table th, .dimensions-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th, .dimensions-table th {
    width: 30%;
    font-weight: 600;
    color: var(--primary-color);
}

/* Dimensions Tab */
.dimensions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.dimensions-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Reviews Tab */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-stars {
    color: #ffc107;
    margin: 5px 0;
}

.rating-count {
    color: #777;
    font-size: 0.9rem;
}

.review-list {
    margin-bottom: 30px;
}

.review-item {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 600;
}

.review-date {
    color: #777;
    font-size: 0.9rem;
}

.review-rating {
    color: #ffc107;
    margin-bottom: 10px;
}

.review-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.write-review {
    text-align: center;
    margin-top: 30px;
}

/* Shipping Tab */
.shipping-info h4 {
    margin: 25px 0 15px;
    color: var(--primary-color);
}

.shipping-info h4:first-child {
    margin-top: 0;
}

.shipping-info ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.shipping-info ul li {
    margin-bottom: 10px;
}

.shipping-info p {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Related Products */
.related-products {
    padding: 60px 0;
    background-color: white;
}

/* Contact Page */
.contact-info {
    padding: 60px 0;
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-details h2,
.contact-form-container h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-details > p {
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-method .icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.contact-method .details h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-method .details p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.contact-method .hours,
.contact-method .response-time {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.social-connect {
    margin-top: 30px;
}

.social-connect h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Larger social media icons specifically for the contact page */
.contact-page #contact-social-media.social-icons a {
    width: 60px;
    height: 60px;
}

.contact-page #contact-social-media.social-icons a i {
    font-size: 1.5rem;
}

/* Contact Form */
.contact-form-container {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(88, 129, 87, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.form-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
}

.faq-icon {
    color: var(--accent-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 20px 0;
    line-height: 1.7;
}

.faq-question.active {
    background-color: #f0f0f0;
    border-bottom: 1px solid var(--border-color);
}

/* About Page */
.about-intro {
    padding: 60px 0;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: center;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.founder-quote {
    margin-top: 30px;
    padding-left: 20px;
    border-left: 4px solid var(--secondary-color);
}

.founder-quote blockquote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.founder-quote cite {
    font-style: normal;
    font-weight: 600;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Our Values */
.our-values {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.value-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-card p {
    line-height: 1.7;
}

/* Our Process */
.our-process {
    padding: 60px 0;
    background-color: white;
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 35px;
    width: 4px;
    background-color: var(--secondary-color);
}

.process-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    z-index: 1;
    margin-right: 30px;
}

.step-content {
    flex: 1;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.step-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step-content p {
    line-height: 1.7;
}

/* Team Section */
.team-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
}

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

.member-info {
    padding: 20px;
}

.member-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.member-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.member-bio {
    line-height: 1.7;
    color: #666;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px; /* larger touch target */
    position: relative; /* ensure z-index takes effect */
    z-index: 2001; /* above sticky header contents */
    touch-action: manipulation; /* better mobile tap handling */
}
.mobile-menu-toggle i { pointer-events: none; }

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Media Queries */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    header .container {
        flex-wrap: wrap;
    }

    nav.desktop-menu {
        display: none;
        width: 100%;
        margin-top: 20px;
    }

    nav.desktop-menu.active {
        display: block;
    }

    nav.desktop-menu ul {
        flex-direction: column;
        align-items: center;
    }

    nav.desktop-menu ul li {
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .category-grid, 
    .product-grid,
    .items-grid, 
    .testimonial-slider {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .dimensions-container {
        grid-template-columns: 1fr;
    }

    .reviews-header {
        flex-direction: column;
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline::before {
        left: 30px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}


/* Responsive Map: make embedded map adapt to device */
.map-container .map-responsive {
    position: relative;
    width: 100%;
    border-radius: 8px; /* inherit same rounding as container */
    overflow: hidden;
}

/* Default to 16:9 ratio */
.map-container .map-responsive::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.map-container .map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Phones: give a taller ratio for better usability */
@media (max-width: 600px) {
    .map-container .map-responsive::before {
        padding-top: 70%;
    }
}

/* Laptops/desktops: slightly shorter map height */
@media (min-width: 992px) {
    .map-container .map-responsive::before {
        padding-top: 45%;
    }
}


/* Recent Creations Reel */
.recent-reel {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.recent-reel .reel-nav {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.recent-reel .reel-nav:hover { background: var(--accent-color); }
.recent-reel .reel-viewport {
    position: relative;
    overflow: hidden;
    flex: 1;
}
.recent-reel .reel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.6s ease;
    will-change: transform;
    padding: 10px 0;
}
.recent-reel .reel-slide {
    flex: 0 0 60%;
    position: relative;
    opacity: 0.85;
    transform: scale(0.94);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
@media (min-width: 900px) { .recent-reel .reel-slide { flex-basis: 50%; } }
@media (min-width: 1200px) { .recent-reel .reel-slide { flex-basis: 40%; } }
.recent-reel .reel-slide img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.recent-reel .reel-slide.active {
  transform: scale(1.3);
  opacity: 1;
}
.recent-reel .reel-fade {
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}
.recent-reel .reel-fade.left {
    left: 0;
    background: linear-gradient(to right, rgba(248,249,250,1), rgba(248,249,250,0));
}
.recent-reel .reel-fade.right {
    right: 0;
    background: linear-gradient(to left, rgba(248,249,250,1), rgba(248,249,250,0));
}

/* Checkbox overlay for selecting items for the reel */
.product-image .reel-select-wrap {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}
.reel-select-wrap input[type="checkbox"] {
    display: none;
}
.reel-select-box {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid #fff;
    background: rgba(0,0,0,0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: var(--transition);
}
.reel-select-wrap input[type="checkbox"]:checked + .reel-select-box {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}
.reel-select-box i { pointer-events: none; }


/* Responsive scaling for company logo and name */
@media (max-width: 1024px) {
    .brand-logo { height: 88px; }
    .logo h1 { font-size: 2.4rem; }
    .site-brand { gap: 12px; }
    .brand-title { min-width: 180px; }
}
@media (max-width: 768px) {
    .brand-logo { height: 72px; }
    .logo h1 { font-size: 2rem; }
    .site-brand { gap: 10px; }
    .brand-title { min-width: 160px; }
}
@media (max-width: 480px) {
    .brand-logo { height: 56px; }
    .logo h1 { font-size: 1.6rem; }
    header .container { padding: 12px 15px; }
    .brand-title { min-width: 140px; }
}


/* Portrait phones/tablets: move reel arrows below the photo reel for more space */
@media (orientation: portrait) {
  .recent-reel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "viewport viewport"
      "prev next";
    align-items: center;
    gap: 10px 14px;
    margin-top: 10px;
  }
  .recent-reel .reel-viewport { grid-area: viewport; }
  .recent-reel .reel-nav.prev { grid-area: prev; justify-self: end; }
  .recent-reel .reel-nav.next { grid-area: next; justify-self: start; }
}

/* Phones portrait: show company name in 3 lines beside smaller logo */
@media (max-width: 600px) and (orientation: portrait) {
  .site-brand {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    text-align: left;
  }
  
  .brand-logo {
    height: 60px !important;
    width: auto;
    flex-shrink: 0;
  }
  
  .brand-title {
    display: block !important;
    margin-top: 0;
    font-size: 1rem;
    line-height: 1.1;
    text-align: left;
    flex: 1;
  }
  
  .brand-title .line1,
  .brand-title .line2,
  .brand-title .line3 {
    display: block;
  }
  
  .mobile-menu-toggle {
    position: absolute;
    right: 15px;
    top: 105px;
    transform: none;
  }
}


/* Mobile-specific header adjustments: full-width logo and spacing */
@media (max-width: 768px) and (orientation: landscape), 
       (min-width: 601px) and (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: stretch;
    }

    .site-brand {
        display: block;
        width: 100%;
    }

    .brand-logo {
        width: 100%;
        height: auto;
    }

    .mobile-menu-toggle {
        align-self: flex-end;
        margin-top: 10px; /* space between logo and menu icon */
    }
}


/* Fix: Disable sticky elements on small screens to allow normal scrolling */
@media (max-width: 992px) {
    .product-gallery,
    header {
        position: static;
        top: auto;
    }
}



/* Dark mode adjustments: lighten background/header images */
@media (prefers-color-scheme: dark) {
  /* Reduce dark overlay on all hero backgrounds */
  .hero-background-layer::before {
    background: linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22));
  }

  /* Page headers get an even lighter overlay for better visibility */
  .page-header .hero-background .hero-background-layer::before {
    background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15));
  }

  /* Ensure headings remain readable without over-darkening the image */
  .page-header h1, .page-header p,
  .hero .container h1, .hero .container p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
  }
}
