/* ==========================================================================
   Variables & Theme
   ========================================================================== */
:root {
    /* Color Palette: "Stainless Steel" & Military Accents */
    --color-steel-light: #e0e5ec;
    --color-steel-mid: #b8c1cc;
    --color-steel-dark: #2a3138;
    --color-steel-darker: #151a1e;
    
    --color-olive: #4b5320; /* Military matte olive */
    --color-olive-light: #677132;
    --color-olive-dark: #313615;
    
    --color-accent: #d4af37; /* Subtle metallic gold for premium feel */
    --color-text: #e0e5ec;
    --color-text-muted: #8b96a5;
    
    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-steel-darker);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Texture Overlay */
.bg-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use a subtle repeating linear gradient to simulate brushed steel if image fails */
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
                linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.pt-100 { padding-top: 100px; }
.pb-100 { padding-bottom: 100px; }
.pb-50 { padding-bottom: 50px; }
.text-center { text-align: center; }

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-steel-light);
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.title-underline {
    height: 4px;
    width: 60px;
    background-color: var(--color-olive);
    margin-bottom: 2rem;
}

.title-underline.center {
    margin: 0 auto 2rem auto;
}

.highlight-steel {
    color: var(--color-steel-mid);
    text-shadow: 0 0 10px rgba(184, 193, 204, 0.3);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-olive-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(75, 83, 32, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-steel-mid);
    color: var(--color-steel-light);
}

.btn-secondary:hover {
    background-color: rgba(184, 193, 204, 0.1);
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background-color: rgba(21, 26, 30, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: padding var(--transition-speed) ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo-reinsch {
    color: var(--color-steel-light);
}

.logo-metall {
    color: var(--color-olive);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-olive);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Offset for navbar */
    background: radial-gradient(circle at center, rgba(42, 49, 56, 0.8) 0%, rgba(21, 26, 30, 1) 100%);
    overflow: hidden;
}

/* Adding a subtle metallic sheen effect to the hero */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 55%
    );
    transform: rotate(30deg);
    animation: shine 15s infinite linear;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-50%) translateY(-50%) rotate(30deg); }
    100% { transform: translateX(50%) translateY(50%) rotate(30deg); }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-badges {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-steel-mid);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge svg {
    width: 24px;
    height: 24px;
    color: var(--color-olive);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.about-features ul {
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-features svg {
    color: var(--color-olive);
}

.steel-plate {
    background: linear-gradient(135deg, #3a424a, #2a3138);
    border: 2px solid #4a545e;
    border-radius: 8px;
    padding: 3rem;
    position: relative;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.5),
        0 20px 40px rgba(0,0,0,0.4);
}

.rivets {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
}

.rivet {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #8b96a5, #2a3138);
    border-radius: 50%;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.8), inset -1px -1px 2px rgba(255,255,255,0.3);
}

.rivet.tl { top: 15px; left: 15px; }
.rivet.tr { top: 15px; right: 15px; }
.rivet.bl { bottom: 15px; left: 15px; }
.rivet.br { bottom: 15px; right: 15px; }

.plate-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.plate-content p {
    color: var(--color-steel-mid);
    margin-bottom: 2rem;
}

.main-shop-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-olive-light);
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.main-shop-link:hover {
    color: var(--color-olive);
    border-bottom-color: var(--color-olive);
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--color-steel-darker);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--color-olive-dark);
}

.product-image-placeholder {
    height: 200px;
    background-color: #1e2429;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Abstract representations since we don't have actual images */
.product-image-placeholder::before {
    content: '';
    position: absolute;
    background: rgba(0,0,0,0.3); /* Dark overlay */
    width: 100%;
    height: 100%;
}

.product-image-placeholder.schrank {
    background-image: url('https://www.edelstahlshop.de/media/mf_webp/jpg/media/catalog/product/cache/9acef7d1ef9b6ecea35dddea8ea8fdff/e/d/edelstahlflugelturenschrank01_2_6_1.webp');
}

.product-image-placeholder.zuschnitt {
    background-image: url('https://www.edelstahlshop.de/media/mf_webp/jpg/media/catalog/product/cache/9acef7d1ef9b6ecea35dddea8ea8fdff/f/o/fotolia_82596459_s.webp');
}

.product-image-placeholder.kante {
    background-image: url('https://www.edelstahlshop.de/media/mf_webp/png/media/catalog/product/cache/9acef7d1ef9b6ecea35dddea8ea8fdff/e/i/einfach_gekantet.webp');
    background-position: top center;
    background-size: contain;
    background-color: #fff;
}

/* Adding dark overlay specifically for the white background image, while allowing the others to just be darkened slightly */
.product-image-placeholder.kante::before {
    background: rgba(0,0,0,0.5); 
}

.product-image-placeholder.tafel {
    background-image: url('https://www.edelstahlshop.de/media/mf_webp/jpg/media/catalog/product/cache/9acef7d1ef9b6ecea35dddea8ea8fdff/e/d/edelstahlmagnettafema04vs_2.webp');
}

.product-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-info p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.shop-link-text {
    color: var(--color-olive-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.product-card:hover .shop-link-text {
    transform: translateX(5px);
    color: var(--color-olive);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-steel-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--color-text-muted);
    max-width: 300px;
}

.footer h3 {
    font-family: var(--font-heading);
    color: var(--color-steel-light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer ul li {
    margin-bottom: 0.8rem;
    color: var(--color-text-muted);
}

.footer ul li a:hover {
    color: var(--color-olive-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-section {
    background-color: var(--color-steel-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    flex: 1 1 300px;
    max-width: calc(33.333% - 1.35rem);
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-speed) ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-olive);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(21, 26, 30, 0.95) 0%, transparent 100%);
    color: var(--color-steel-light);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .gallery-item {
        max-width: calc(50% - 1rem);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        max-width: 100%;
    }
    
    .nav-links {
        display: none; /* In a real app, add a hamburger menu */
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-badges {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
