/* ========================================
   HAMM Mount - Dark Premium Industrial Design
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-darkest: #0a0a0f;
    --bg-dark: #111118;
    --bg-card: #1a1a24;
    --bg-card-hover: #22222e;
    --bg-elevated: #252530;
    --bg-input: #1e1e2a;

    --accent-orange: #ff6b2b;
    --accent-orange-hover: #ff8c55;
    --accent-blue: #4a90ff;
    --accent-blue-light: #6ba8ff;
    --accent-gold: #ffb547;
    --accent-green: #34d399;
    --accent-red: #ef4444;

    --text-white: #ffffff;
    --text-primary: #e4e4eb;
    --text-secondary: #a0a0b2;
    --text-muted: #6b6b80;

    --border-color: #2a2a38;
    --border-hover: #3a3a4a;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(255, 107, 43, 0.15);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-darkest);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-white);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    color: var(--accent-blue-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-orange);
}

ul, ol {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ====== HEADER ====== */
header {
    background: var(--bg-dark);
    padding: 0.8rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-img {
    width: 48px;
    height: 48px;
}

.logo-text-wrapper h1 {
    color: var(--text-white);
    font-size: 1.3rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 0.5px;
}

.logo-text-wrapper p {
    color: var(--accent-orange);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0.15rem 0 0 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav { display: flex; }

.nav-list {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-white);
    background: var(--bg-card);
}

.nav-dropdown { position: relative; }

.nav-dropdown > .nav-link::after {
    content: '\25BE';
    margin-left: 0.4rem;
    font-size: 0.7rem;
    opacity: 0.6;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    list-style: none;
    border: 1px solid var(--border-color);
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
    color: var(--text-secondary);
    padding: 0.65rem 1.2rem;
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-elevated);
    color: var(--accent-orange);
}

.header-contact {
    display: flex;
    gap: 0.5rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--accent-orange);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}

.contact-btn:hover {
    background: var(--accent-orange-hover);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ====== HERO ====== */
.hero {
    background: var(--bg-darkest);
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 107, 43, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    line-height: 1.15;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-primary {
    padding: 0.9rem 2.2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-orange);
    color: var(--text-white);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-primary:hover {
    background: var(--accent-orange-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.cta-secondary {
    padding: 0.9rem 2.2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.cta-secondary:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

/* Search */
.search-container { position: relative; }

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 0.9rem 1.5rem 0.9rem 3.2rem;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.15);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* ====== FEATURES ====== */
.features {
    padding: 4rem 1.5rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(135deg, rgba(255, 107, 43, 0.15), rgba(255, 181, 71, 0.1));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 1px solid rgba(255, 107, 43, 0.2);
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ====== PRODUCTS SECTION ====== */
.products {
    padding: 4rem 1.5rem;
    background: var(--bg-darkest);
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-white);
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 0 30px rgba(255, 107, 43, 0.1);
    transform: translateY(-4px);
}

.product-card a {
    display: block;
    padding: 1.5rem;
    color: inherit;
    text-decoration: none;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 107, 43, 0.08) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.product-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    opacity: 0.6;
    position: relative;
    z-index: 1;
}

.product-card h3 {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.product-link {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Image wrappers for product listing */
.product-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-code {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 0.4rem;
}

.product-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.product-category {
    display: inline-block;
    background: rgba(255, 107, 43, 0.1);
    color: var(--accent-orange);
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 43, 0.2);
}

/* Filters */
.filter-section {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.88rem;
}

.filter-btn:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.filter-btn.active {
    background: var(--accent-orange);
    color: var(--text-white);
    border-color: var(--accent-orange);
}

/* ====== BREADCRUMB ====== */
.breadcrumb {
    background: var(--bg-dark);
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    font-size: 0.88rem;
}

.breadcrumb-list a {
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb-list a:hover {
    color: var(--accent-orange);
}

.breadcrumb-list strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

/* ====== PAGE HEADER ====== */
.page-header {
    background: var(--bg-dark);
    padding: 3rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 107, 43, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.page-header h1,
.page-header h2 {
    font-size: 2.4rem;
    color: var(--text-white);
    position: relative;
}

.page-header p {
    color: var(--text-muted);
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

/* ====== CONTENT SECTION ====== */
.content-section {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.content-section h2 {
    font-size: 1.8rem;
    color: var(--text-white);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.content-section h2:first-child { margin-top: 0; }

.content-section h3 {
    font-size: 1.4rem;
    color: var(--text-white);
    margin: 2rem 0 0.8rem;
}

.content-section h3:first-child { margin-top: 0; }

.content-section h4 {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin: 1.5rem 0 0.6rem;
}

/* Tables */
.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}

.content-section table th,
.content-section table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.content-section table th {
    background: var(--bg-elevated);
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-section table tr:hover td {
    background: rgba(255, 107, 43, 0.03);
}

.content-section table td strong {
    color: var(--text-primary);
}

/* Product Detail Image */
.product-detail-image {
    max-width: 500px;
    margin: 2rem auto;
    text-align: center;
    background: var(--bg-elevated);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* Category section */
.category-section {
    margin-bottom: 3rem;
}

.category-section h3 {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-orange);
}

/* ====== FOOTER ====== */
footer {
    background: var(--bg-dark);
    color: var(--text-secondary);
    padding: 3rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    color: var(--accent-orange);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent-orange); }

/* ====== CTA BOX (used in product pages) ====== */
.cta-box {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 3rem 0;
    border: 1px solid var(--accent-orange);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 107, 43, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h3 {
    color: var(--text-white);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    position: relative;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    position: relative;
}

.cta-box .btn {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--text-white);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
}

.cta-box .btn:hover {
    background: var(--accent-orange-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Info box */
.info-box {
    background: var(--bg-elevated);
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--accent-orange);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 2rem 0;
}

.info-box h4 {
    color: var(--accent-orange);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.info-box p {
    margin-bottom: 0.5rem;
}

.info-box a {
    color: var(--accent-orange);
    font-weight: 700;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .main-nav { display: none; }
    .header-contact { display: none; }
    .hero h2 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .hero h2 { font-size: 2rem; }
    .hero { padding: 3rem 1rem; }
    .content-section { padding: 1.5rem; }
    .page-header h1, .page-header h2 { font-size: 1.8rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .product-detail-image {
        max-width: 100%;
        padding: 1rem;
    }

    .cta-box { padding: 2rem 1.5rem; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h2 { font-size: 1.6rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .logo-text-wrapper h1 { font-size: 1.1rem; }
}
