/* ==========================================
   2.2. CSS RESET & BASE STYLES
   ========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --bg-primary: #0f111a;
    --bg-secondary: #1a1d2e;
    --accent-fire: #ff4500;
    --accent-gold: #ffb700;
    --text-primary: #e6e6e6;
    --text-muted: #a0a0a0;
    --card-bg: #22263d;
    --border-color: #2e3454;
    
    /* Typography Scale (rem) */
    --font-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-body: 1rem;
    --fs-md: 1.25rem;
    --fs-lg: 1.75rem;
    --fs-xl: 2.5rem;
    --lh-body: 1.6;
    --lh-heading: 1.2;
}

html {
    font-size: 100%; /* 16px default */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================
   2.3. TYPOGRAPHY STYLES
   ========================================== */
h1, h2, h3, h4 {
    line-height: var(--lh-heading);
    color: #ffffff;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }

p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-fire);
}

/* ==========================================
   2.4 & 2.5. LAYOUT & VISUAL STYLES (DESKTOP)
   ========================================== */
header {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--accent-fire);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

nav a:focus,
nav a:active {
    outline: 2px solid var(--accent-gold);
}

/* Global Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: cover;
}

/* Card & Content Aspect Ratios */
.card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 1rem;
}

/* Hero Banner Container */
.hero {
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    object-position: center;
}

/* Background Image Utility Classes (Updated Folder Paths & Extensions) */
.hero-banner-bg {
    background-image: url('images/hero-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-bg-1 {
    background-image: url('images/home1.jpg');
    background-size: cover;
    background-position: center;
}

.home-bg-2 {
    background-image: url('images/home2.jpg');
    background-size: cover;
    background-position: center;
}

.about-bg-1 {
    background-image: url('images/about1.jpg');
    background-size: cover;
    background-position: center;
}

.about-bg-2 {
    background-image: url('images/about2.jpg');
    background-size: cover;
    background-position: center;
}

.enquiry-bg-1 {
    background-image: url('images/enquiry1.jpg');
    background-size: cover;
    background-position: center;
}

.enquiry-bg-2 {
    background-image: url('images/enquiry2.jpg');
    background-size: cover;
    background-position: center;
}

/* Main Container Layout */
main {
    flex: 1;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}

/* Multi-Column Layout Grid for Desktop */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Product & Feature Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.25);
}

/* Form Styling */
form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

input, textarea, select, button {
    font-family: inherit;
    font-size: var(--fs-body);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 5px rgba(255, 183, 0, 0.5);
}

button {
    background-color: var(--accent-fire);
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #d03800;
}

button:active {
    transform: scale(0.98);
}

/* Footer Styling */
footer {
    background-color: var(--bg-secondary);
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* ==========================================
   3. RESPONSIVE DESIGN & BREAKPOINTS
   ========================================== */

/* 3.1. Tablet Breakpoint (max-width: 992px) */
@media screen and (max-width: 992px) {
    :root {
        --fs-xl: 2rem;
        --fs-lg: 1.5rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    main {
        width: 92%;
    }
}

/* 3.1. Mobile Breakpoint (max-width: 600px) */
@media screen and (max-width: 600px) {
    :root {
        --fs-xl: 1.75rem;
        --fs-lg: 1.25rem;
        --fs-body: 0.9375rem;
    }

    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Single-column layout on smaller screens */
    .grid-container {
        grid-template-columns: 1fr;
    }

    main {
        width: 95%;
        margin: 1rem auto;
    }

    form {
        padding: 1.25rem;
    }
}