/*
Theme Name: Specialty Beams
Theme URI: https://example.com/specialty-beams
Author: Specialty Beams Design Team
Author URI: https://example.com
Description: A custom rustic theme for Specialty Beams.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --primary-color: #5d4037; /* Dark Wood */
    --secondary-color: #8d6e63; /* Light Wood */
    --accent-color: #d7ccc8; /* Beige/Tan */
    --background-color: #f4f1ea; /* Off-white/Paper */
    --text-color: #2c241b; /* Very dark brown */
    --header-footer-bg: #3e2723; /* Very dark wood */
    --nav-hover: #a1887f;
    --white: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* WordPress Core Alignments */
.aligncenter {
    display: block;
    margin: 0 auto;
}
.alignleft {
    float: left;
    margin-right: 1.5em;
}
.alignright {
    float: right;
    margin-left: 1.5em;
}

/* Header & Navigation */
header {
    background-color: var(--header-footer-bg);
    color: var(--white);
    padding: 1rem 0;
    border-bottom: 5px solid var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

.branding {
    float: left;
}

.branding h1 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.branding span {
    color: var(--secondary-color);
}

nav {
    float: right;
    margin-top: 10px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-left: 20px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav a:hover, nav .current-menu-item a {
    color: var(--secondary-color);
}

/* Hero Section */
#showcase {
    background-color: var(--primary-color);
    position: relative;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    overflow: hidden; /* Ensure images don't overflow */
}

/* Background Slider container */
#showcase-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Individual slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

#showcase::before {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay for text readability */
    z-index: 1;
}

#showcase > * {
    z-index: 2;
}

#showcase h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

#showcase p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.3s;
    cursor: pointer;
}

.btn:hover {
    background: var(--header-footer-bg);
}

.btn:visited {
    color: var(--white);
}

/* Main Main Content Sections */
.section-title {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: 5px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 10px;
}

.card ul {
    list-style-position: inside;
    list-style-type: square;
}

.card li {
    margin-bottom: 8px;
}

/* Services Page Specific */
.service-item {
    display: flex;
    align-items: center;
    background: var(--white);
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-right: 20px;
    min-width: 60px;
    text-align: center;
}

/* Inventory List */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.inventory-item {
    background: var(--white);
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
}

.inventory-placeholder-img {
    height: 150px;
    background-color: var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-style: italic;
}

/* Projects Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 250px; /* Fixed height for uniformity */
    background-color: #ccc; /* Placeholder */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 36, 27, 0.8);
    color: #fff;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}


/* Form */
.contact-form {
    background: var(--white);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto 40px;
    border-radius: 5px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

/* Footer */
footer {
    background: var(--header-footer-bg);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 5px solid var(--secondary-color);
}

footer p {
    margin: 10px 0;
}

/* Responsive */
@media(max-width: 768px) {
    header {
        padding-bottom: 20px;
    }
    
    .branding, nav {
        float: none;
        text-align: center;
        width: 100%;
    }
    
    .branding {
        margin-bottom: 20px;
    }
    
    nav ul li {
        display: block;
        margin: 10px 0;
        margin-left: 0;
    }
    
    #showcase h1 {
        font-size: 2.5rem;
    }
}
/* Targets any image inside the inventory-item container */
.inventory-item img {
    width: 100%;            /* Forces image to fill the card width */
    height: 220px;          /* Sets a fixed height for alignment */
    object-fit: cover;      /* Crops the image so it doesn't look squished */
    display: block;         /* Removes tiny gap often seen under images */
    margin-bottom: 15px;    /* Adds space between image and the title */
    border-radius: 4px;     /* Optional: Adds slightly rounded corners */
}
