/* 
 * Alfred Interior Designs - 2026 Design System
 * Modern, Classic, Smooth
 * alfredinteriors.org
 */

:root {
    /* Color Palette */
    --color-primary: #1a1a1a;
    /* Deep Charcoal */
    --color-secondary: #d4af37;
    /* Muted Gold */
    --color-bg: #fdfbf7;
    /* Cream / Off-white */
    --color-text: #333333;
    /* Dark Grey */
    --color-text-light: #666666;
    /* Medium Grey */
    --color-white: #ffffff;
    --color-black: #000000;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadows */
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

ul {
    list-style: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
}

h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
}

h3 {
    font-size: clamp(2rem, 3vw, 3rem);
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

/* Container */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

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

.btn-primary:hover {
    background: transparent;
    color: var(--color-primary);
}

/* Utility Classes */
.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Project Specific Components */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: rgba(253, 251, 247, 0.8);
    /* Glassmorphism base */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-secondary);
    transition: var(--transition-smooth);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

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

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-size: clamp(3.5rem, 6vw, 6rem);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Services Grid */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
    padding: var(--spacing-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    background: var(--color-white);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-secondary);
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

/* Gallery / Projects */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 300px;
    gap: var(--spacing-sm);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    grid-column: span 4;
}

.gallery-item.large {
    grid-column: span 8;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 60%, transparent 100%);
    color: var(--color-white);
    opacity: 0.85;
    transform: translateY(5px);
    transition: var(--transition-smooth);
}

.gallery-overlay h3 {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    color: var(--color-white);
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer a:hover {
    color: var(--color-secondary);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 250px;
    }

    .gallery-item {
        grid-column: span 3;
    }

    .gallery-item.large {
        grid-column: span 6;
    }

    .gallery-item.tall {
        grid-row: span 2;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 2.5rem;
    }

    h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    h2 {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    h3 {
        font-size: clamp(1.4rem, 4vw, 2rem);
    }

    .header {
        padding: var(--spacing-sm) 0;
    }

    .nav-links {
        gap: var(--spacing-sm);
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .d-flex.justify-between.align-center {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero {
        height: 70vh !important;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero p {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .gallery-item,
    .gallery-item.large {
        grid-column: span 1;
    }

    .gallery-item.tall {
        grid-row: span 1;
    }

    .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid .d-flex {
        justify-content: center;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    .d-flex.justify-between {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 var(--spacing-xs);
    }

    .hero {
        height: 60vh !important;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .nav-links {
        gap: 0.6rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }
}