/* 
   MODULHOUSE - Premium Modular Housing Style Sheet
   Design Style: Modern Minimalism / Luxury High-End
*/

:root {
    /* Color Palette */
    --primary-color: #D4AF37;       /* Signature Gold/Sand */
    --primary-hover: #C09A30;
    --bg-dark: #121212;             /* Deep Black */
    --bg-card: #1A1A1A;             /* Slightly Lighter Surface */
    --text-white: #FFFFFF;          /* Headings */
    --text-muted: #A0A0A0;          /* Body Text */
    --text-dark: #121212;           /* Text on Gold Buttons */
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-serif: "Playfair Display", serif;
    --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
    
    /* Spacing & Sizing */
    --section-padding: 120px;
    --container-width: 1440px;
    --transition-base: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 1. Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
    font-family: var(--font-serif);
    color: var(--text-white);
    font-weight: 400;
    line-height: 1.1;
}

h1 { font-size: 5rem; letter-spacing: -0.02em; }
h2 { font-size: 3.5rem; margin-bottom: 2rem; }

em, .italic {
    font-style: italic;
}

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

ul { list-style: none; }

img {
    max-width: 100%;
    display: block;
}

/* 2. Layout Components */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: var(--section-padding) 0;
}

/* 3. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(18, 18, 18, 0.95);
    padding: 20px 0;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    color: var(--text-white);
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-white);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* 4. Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

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

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 3rem;
}

/* 5. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 18px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
}

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

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

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

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

.btn-group {
    display: flex;
    gap: 20px;
}

/* 6. Product Grid (The Collection) */
.grid-asymmetric {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.product-card {
    grid-column: span 6;
    position: relative;
    margin-bottom: 40px;
}

.product-card.large { grid-column: span 8; }
.product-card.small { grid-column: span 4; }

.card-image-wrapper {
    overflow: hidden;
    margin-bottom: 20px;
    background: #222;
}

.card-image-wrapper img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.card-title {
    font-size: 1.5rem;
    color: var(--text-white);
}

.card-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 7. Philosophy & Stats */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.stat-item {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* 8. Forms (Allocation/Booking) */
.booking-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    position: relative;
    margin-bottom: 40px;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    color: var(--text-white);
    font-family: var(--font-sans);
    outline: none;
    transition: var(--transition-base);
}

.form-input:focus {
    border-color: var(--primary-color);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 9. Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.footer-logo {
    font-size: 2rem;
    color: var(--text-white);
}

.footer-heading {
    color: var(--text-white);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 25px;
}

.footer-link {
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 10. Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.mt-20 { margin-top: 20px; }
.mb-40 { margin-bottom: 40px; }
.spacer { height: 100px; }

/* 11. Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 12. Responsive Design */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    .philosophy-grid { grid-template-columns: 1fr; gap: 40px; }
    .product-card.large, .product-card.small { grid-column: span 6; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    .nav-menu { display: none; } /* Mobile menu would need JS toggle */
    
    .hero-content { text-align: center; margin: 0 auto; }
    .hero-description { margin: 0 auto 2.5rem; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }

    .grid-asymmetric { grid-template-columns: 1fr; }
    .product-card, .product-card.large, .product-card.small { grid-column: span 1; }
    
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    
    .card-info { flex-direction: column; align-items: flex-start; gap: 10px; }
}