/* =========================================== Weltkit - Premium Diesel Components Version: 2.0.0 | Last Updated: 2025-09-12 Theme: Single Page Modern Layout ============================================ */ /* 1. GLOBAL VARIABLES */ :root { /* Colors - Elegant Red & Black Theme */ --primary: #C62828; /* Deep, rich red (slightly brighter) */ --primary-light: #FF5F52; /* Softer red for accents */ --primary-dark: #8E0000; /* Darker red for hover states */ --secondary: #1A1A1A; /* Soft black */ --secondary-light: #333333; --secondary-dark: #000000; --accent: #E53935; /* Vibrant red for highlights */ --accent-light: #FF6E60; --accent-dark: #AB000D; /* Neutral colors */ --white: #ffffff; --off-white: #f5f5f5; --gray-light: #e0e0e0; --gray: #9e9e9e; --gray-dark: #424242; --black: #121212; /* Backgrounds */ --background: #FAFAFA; --card-bg: #FFFFFF; --footer-bg: #0A0A0A; --section-bg: #FFFFFF; --section-alt-bg: #F5F5F5; /* Typography */ --font-primary: 'Montserrat', sans-serif; --font-secondary: 'Open Sans', sans-serif; /* Spacing */ --spacing-xs: 0.25rem; --spacing-sm: 0.5rem; --spacing-md: 1rem; --spacing-lg: 2rem; --spacing-xl: 4rem; /* Border radius */ --border-radius-sm: 4px; --border-radius-md: 8px; --border-radius-lg: 16px; /* Shadows */ --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05); --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05); /* Transitions */ --transition-fast: 0.2s ease; --transition-normal: 0.3s ease; --transition-slow: 0.5s ease; } /* 2. BASE STYLES */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; height: 100%; } body { font-family: var(--font-primary); line-height: 1.6; color: var(--gray-dark); background-color: var(--background); padding-top: 70px; /* Match header height */ overflow-x: hidden; } .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; position: relative; z-index: 2; } /* Section Styling */ section { padding: 8rem 0; position: relative; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); background-color: var(--section-bg); overflow: hidden; } section:not(:last-child) { margin-bottom: 0; } /* Alternate section background */ section:nth-child(even), .bg-alt { background-color: var(--section-alt-bg); position: relative; } /* Gradient accent for section dividers */ section:not(:first-child)::before { content: ''; position: absolute; top: -2px; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary)); opacity: 0.1; } /* Hero section specific */ .hero { background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%); color: #FFFFFF; position: relative; padding: 14rem 0 10rem; margin-top: -70px; /* Offset the fixed header */ overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%); margin-bottom: -6rem; z-index: 1; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); } .hero h1 { color: #ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.3); } .hero p { color: rgba(255,255,255,0.9); max-width: 700px; margin: 0 auto 2.5rem; } .hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgwLDAsMCwwLjAxKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==') center/cover no-repeat; opacity: 0.3; z-index: 1; } .hero .container { position: relative; z-index: 2; } /* Footer styling */ .footer { background: var(--footer-bg); color: rgba(255, 255, 255, 0.9); padding: 12rem 0 4rem; position: relative; clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%); margin-top: -4rem; z-index: 0; border-top: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2); } .footer a { color: rgba(255,255,255,0.8); transition: color 0.3s ease; } .footer a:hover { color: var(--primary-light); text-decoration: none; } .footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary)); z-index: 1; } /* Smooth transition between sections */ section + section { margin-top: 0; padding-top: 0; } /* Add subtle pattern to alternate sections */ section:nth-child(even)::after, .bg-alt::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgwLDAsMCwwLjAyKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==') center/cover no-repeat; opacity: 0.3; pointer-events: none; } /* Add gradient overlay to footer */ .footer::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(26,26,26,0.95) 0%, rgba(13,13,13,0.95) 100%); z-index: 0; } .footer .container { position: relative; z-index: 1; } /* Ensure content flows smoothly into the footer */ .contact-section { position: relative; z-index: 2; background: var(--white); padding-bottom: 8rem; margin-bottom: -4rem; } .contact-section::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4rem; background: linear-gradient(to bottom, var(--white) 0%, rgba(255,255,255,0) 100%); z-index: 1; pointer-events: none; } section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--gray-dark); position: relative; padding-bottom: 1rem; } section h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--primary); border-radius: 2px; } :target { scroll-margin-top: 90px; /* Account for fixed header */ } h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; color: var(--gray-dark); } h1 { font-size: 3.5rem; font-weight: 800; } h2 { font-size: 2.5rem; margin-bottom: 2rem; position: relative; display: inline-block; } h2::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 100%; height: 3px; background-color: var(--primary); } p { margin-bottom: 1.5rem; color: var(--gray); font-size: 1.1rem; line-height: 1.7; } a { color: var(--primary); text-decoration: none; transition: var(--transition-fast); } a:hover { color: var(--primary-dark); } img { max-width: 100%; height: auto; display: block; } section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--gray-dark); position: relative; padding-bottom: 1rem; } section h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--primary); border-radius: 2px; } :target { scroll-margin-top: 90px; /* Account for fixed header */ } /* Responsive Design */ @media (max-width: 1200px) { html { font-size: 15px; } } @media (max-width: 992px) { section { padding: 5rem 0; } } @media (max-width: 768px) { .hero { text-align: center; padding: 0 1rem; padding-top: 140px; } } @media (max-width: 576px) { h2 { font-size: 2rem; } } .main-nav a.active::after { content: ''; position: absolute; bottom: 0; left: 1rem; right: 1rem; height: 2px; background: var(--red); border-radius: 2px; } /* Base defaults to keep desktop tidy */ .mobile-menu-overlay { display: none; } .main-nav i { display: none; } /* Responsive Styles (mobile) */ @media (max-width: 767px) { .mobile-menu-btn { display: flex; } .main-nav { position: fixed; top: 70px; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.98); padding: 1.5rem 1rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); transform: translateY(-100%); opacity: 0; visibility: hidden; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; max-height: calc(100vh - 70px); overflow-y: auto; z-index: 999; -webkit-overflow-scrolling: touch; will-change: transform, opacity; } .main-nav::before { content: ''; position: fixed; top: 70px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent); opacity: 0; transition: opacity 0.3s ease; } .main-nav.active::before { opacity: 1; } .main-nav.active { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } /* Add a subtle overlay when menu is open */ .mobile-menu-overlay { position: fixed; top: 70px; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 998; } .mobile-menu-overlay.active { opacity: 1; visibility: visible; } .main-nav ul { flex-direction: column; gap: 0.5rem; padding: 0.5rem 0; } .main-nav a { padding: 0.75rem 1rem; display: flex; align-items: center; border-radius: 6px; transition: all 0.2s ease; } .main-nav a:hover, .main-nav a:focus, .main-nav a.active { background: rgba(230, 0, 0, 0.05); color: var(--red); transform: translateX(4px); } .main-nav a::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--red); border-radius: 50%; margin-right: 12px; opacity: 0; transform: translateX(-8px); transition: all 0.3s ease; } .main-nav a:hover::before, .main-nav a:focus::before, .main-nav a.active::before { opacity: 1; transform: translateX(0); } .main-nav a.active::after { display: none; } } /* Base mobile styles (<=767px) */ @media (max-width: 767px) { /* Header & Navigation */ .header { height: auto; min-height: 70px; padding: 0.5rem 0; } .header-container { flex-wrap: wrap; padding: 0.5rem var(--spacing); } .logo { font-size: 1.5rem; margin-right: auto; } .mobile-menu-btn { order: 2; } .main-nav { order: 3; flex: 0 0 100%; margin-top: 0.5rem; } .main-menu { flex-direction: column; width: 100%; gap: 0.25rem; } .menu-item { width: 100%; text-align: left; } .menu-item a { padding: 1rem 1.25rem; font-size: 1.1rem; border-radius: 6px; } /* Hero Section */ .hero { padding: 6rem 1rem 3rem; min-height: 70vh; } .hero h1 { font-size: 2rem; margin-bottom: 1rem; } .hero p { font-size: 1.1rem; } /* Layout Adjustments */ .features-grid, .cards-grid { grid-template-columns: 1fr; gap: 2rem; } .product-card { margin-bottom: 2rem; } .about-content { flex-direction: column; } .about-text, .about-image { width: 100%; } .footer-content { flex-direction: column; text-align: center; } .footer-links { margin: 1.5rem 0; } /* Typography Adjustments */ h1 { font-size: 2.25rem; } h2 { font-size: 1.75rem; } h3 { font-size: 1.5rem; } /* Buttons */ .button { display: block; width: 100%; margin-bottom: 0.75rem; } .button + .button { margin-left: 0; } } /* Tablet Styles (768px - 1023px) */ @media (min-width: 768px) and (max-width: 991px) { .hero { padding: 9rem 2rem 5rem; } .features-grid, .products-grid { grid-template-columns: repeat(2, 1fr); padding: 0 2rem; } .features-grid, .cards-grid { grid-template-columns: repeat(2, 1fr); } .hero h1 { font-size: 2.5rem; } .about-content { gap: 2rem; } .about-text, .about-image { flex: 1; } } /* Tablet and up (>=768px): ensure inline nav, hide hamburger, remove overlay/dots */ @media (min-width: 768px) { .mobile-menu-btn { display: none !important; } .main-nav { position: static !important; transform: none !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; background: transparent !important; box-shadow: none !important; max-height: none !important; overflow: visible !important; } .main-nav ul { flex-direction: row !important; gap: 1.25rem; align-items: center; } .main-nav i { display: none !important; } .main-nav a { padding: 0.5rem 0.75rem !important; background: transparent !important; } .main-nav a::before { content: none !important; } .mobile-menu-overlay { display: none !important; opacity: 0 !important; visibility: hidden !important; } } /* Desktop overrides to guarantee clean layout */ @media (min-width: 992px) { /* Hide hamburger on desktop */ .mobile-menu-btn { display: none !important; } /* Ensure nav is inline and visible */ .main-nav { position: static !important; transform: none !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; background: transparent !important; box-shadow: none !important; max-height: none !important; overflow: visible !important; } .main-nav ul { flex-direction: row !important; gap: 1.25rem; } /* Clean desktop nav appearance */ .main-nav i { display: none !important; } .main-nav a { padding: 0.5rem 0.75rem !important; background: transparent !important; } .main-nav a:hover, .main-nav a.active { background: var(--background) !important; color: var(--red) !important; } /* Remove mobile dot indicators */ .main-nav a::before { content: none !important; } /* Never show overlay on desktop */ .mobile-menu-overlay { display: none !important; opacity: 0 !important; visibility: hidden !important; } } .grid { display: grid; } .hidden { display: none; }