/*
 * KDTR PTY LTD - HIGH-END INDUSTRIAL ARCHITECTURE
 * CSS Theme: Deep Carbon, Angular Shapes, Blueprint Grid
 */

:root {
    --bg-dark: #070707;
    --surface: #111111;
    --surface-hover: #161616;
    --primary: #D61C1C;
    --primary-hover: #E82424;
    --secondary: #D4AF37;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-heavy: rgba(255, 255, 255, 0.15);
    
    --text-white: #FFFFFF;
    --text-primary: #EAEAEA;
    --text-muted: #888888;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & FOUNDATION
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background-color: var(--primary);
    color: var(--text-white);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; letter-spacing: -1px; color: var(--text-muted); }
h3 { font-size: 1.5rem; font-weight: 600; }
a { color: var(--text-white); text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Structural Grid Utility */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

header, section, footer {
    border-bottom: 1px solid var(--border-color);
}

.section {
    padding: 120px 0;
    position: relative;
}

/* Vertical Grid Lines (Background decor to look like blueprints) */
.blueprint-lines {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1440px;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 0;
}
.blueprint-line {
    width: 1px;
    height: 100%;
    background-color: var(--border-color);
}

/* Layout Utilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.gap-lg { gap: 60px; }
.gap-md { gap: 30px; }
.relative { position: relative; z-index: 2; }
.z-2 { z-index: 2; position: relative; }

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateX(5px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-heavy);
    color: var(--text-white);
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--bg-dark);
}

/* Badges & Tags */
.badge, .tag {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    background-color: var(--surface);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
}

.tag:hover, .badge:hover {
    border-color: var(--primary);
    color: var(--text-white);
    background-color: var(--surface-hover);
}

.hero-badge {
    background-color: rgba(214, 28, 28, 0.1);
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding: 10px 20px;
    display: inline-block;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

/* High-End Image Hover Effects */
.img-kinetic {
    overflow: hidden;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-color);
}

.img-kinetic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.img-kinetic:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.header {
    background-color: rgba(7, 7, 7, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo::after {
    content: '';
    display: block;
    width: 15px;
    height: 15px;
    background-color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 10px 0;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--text-white);
}

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

.nav-links a.active {
    color: var(--text-white);
}

/* Mobile Menu Toggle */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 6px; }
.menu-toggle .bar { width: 30px; height: 2px; background-color: var(--text-white); transition: var(--transition); }

/* ==========================================================================
   SPECIFIC SECTIONS
   ========================================================================== */

/* Split Typography Titles */
.section-header {
    margin-bottom: 80px;
    max-width: 800px;
    position: relative;
    z-index: 2;
}
.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: 20px;
}
.text-center { text-align: center; margin-left: auto; margin-right: auto; }

/* Page Header (Internal Pages) */
.page-header {
    padding: 150px 0 100px;
    background-color: var(--surface);
    position: relative;
    border-bottom: 1px solid var(--border-heavy);
    text-align: center;
}
.page-header h1 { margin-bottom: 20px; color: var(--text-white); }
.page-header p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}
.header-bg-texture {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--border-heavy) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 1;
}

/* Service / Feature Cards */
.card {
    border: 1px solid var(--border-color);
    background-color: var(--surface);
    padding: 50px 40px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card:hover {
    background-color: var(--surface-hover);
    border-color: var(--border-heavy);
    transform: translateY(-5px);
}

.card-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-muted);
    margin-bottom: 40px;
    line-height: 0.8;
    transition: var(--transition);
}

.card:hover .card-number {
    -webkit-text-stroke: 1px var(--primary);
    color: rgba(214, 28, 28, 0.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-white);
}

.card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.card-line {
    width: 0;
    height: 3px;
    background-color: var(--primary);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.4s ease;
}

.card:hover .card-line {
    width: 100%;
}

/* Brands Grid */
.brands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Why Choose Us Redesign */
.why-feature-item {
    padding: 30px;
    border-left: 1px solid var(--border-color);
    transition: var(--transition);
}
.why-feature-item:hover {
    border-left-color: var(--primary);
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, transparent 100%);
}

.feature-number {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.why-feature-item h3 { font-size: 1.3rem; }
.why-feature-item p { color: var(--text-muted); font-size: 1rem; margin-bottom: 0; }

.structural-img {
    position: relative;
    padding: 20px;
}
.structural-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 60%; height: 60%;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    z-index: 1;
}

/* Bullet list override */
.bullet-list li {
    padding-left: 20px;
    position: relative;
    color: var(--text-primary);
    margin-bottom: 15px;
}
.bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
}
.bullet-list.check-marks li::before {
    content: '→';
    background: none;
    color: var(--primary);
    font-weight: 900;
    top: 0;
    font-size: 1.2rem;
}

/* Contact Block */
.contact-info-block {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    padding: 40px;
    margin-bottom: 20px;
}
.contact-info-block h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}
.person-contact {
    margin-bottom: 25px;
}
.person-contact strong { color: var(--text-white); font-size: 1.2rem; display: block; margin-bottom: 5px; }
.person-contact a { color: var(--text-muted); display: block; margin-bottom: 3px; }
.person-contact a:hover { color: var(--primary); }

.contact-form {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    padding: 50px;
}
.form-group { margin-bottom: 25px; }
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    font-family: var(--font-body);
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(214, 28, 28, 0.05);
}

/* Footer */
.footer {
    padding: 60px 0;
    background-color: var(--bg-dark);
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.footer p { color: var(--text-muted); font-size: 0.9rem; margin: 0; text-transform: uppercase; letter-spacing: 1px;}

/* Utils */
.mb-4 { margin-bottom: 40px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .container { padding: 0 30px; }
    h1 { font-size: clamp(3rem, 6vw, 5rem); }
}

@media (max-width: 991px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 40px; }
    .section { padding: 80px 0; }
    .page-header { padding: 120px 0 80px; }
    .structural-img::before { display: none; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background-color: var(--surface);
        flex-direction: column;
        padding: 30px;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: flex; }
    .contact-form { padding: 30px; }
}
