/* CSS Variables for Minimalist Luxury Theme */
:root {
    --bg-color: #fcfbf9;
    /* Soft off-white */
    --text-color: #1a1a1a;
    /* Deep charcoal */
    --accent-color: #8c6b4a;
    /* Leather brown (muted) */
    --light-gray: #e5e5e5;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --spacing-unit: 2rem;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-unit);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: calc(var(--spacing-unit) * 2);
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    color: #555;
    font-weight: 300;
}

/* Layout Utilities */
.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: calc(var(--spacing-unit) * 4) 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color 0.3s ease;
    mix-blend-mode: difference;
    color: white;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.logo span {
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Subtle dark overlay */
}

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 1;
    opacity: 0;
    animation: fadeUp 1s ease-out forwards 0.5s;
}

.subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-scroll {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 5px;
    transition: all 0.3s;
}

.btn-scroll:hover {
    border-color: #fff;
    letter-spacing: 0.05em;
}

/* Expertise Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.card {
    display: flex;
    flex-direction: column;
}

.card-image {
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 4/3;
}

.card-image img {
    width: 100%;
    height: 100%;
    transition: transform 1s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

/* Products Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.product-item {
    text-align: center;
}

.product-image {
    aspect-ratio: 1;
    margin-bottom: 1.5rem;
    background-color: #f4f4f4;
}

/* Ensure product images fill a square container consistently */
.product-image {
    overflow: hidden;
    display: block;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-text-only {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--light-gray);
    padding: 2rem;
    background: #fff;
}

.product-text-only .description {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: #111;
    color: #fff;
    padding: 5rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #fff;
}

/* Footer contact layout and phone styling */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.95rem;
}

.footer-contact p {
    color: #ccc;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.footer-contact a[href^="tel:"] {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.footer-contact a[href^="tel:"]::before {
    content: "📞 ";
    margin-right: 0.35rem;
    opacity: 0.95;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem;
    }

    .nav-links {
        display: none;
        /* Simplify for MVP, ideal: added hamburger menu */
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    h1 {
        font-size: 3rem;
    }
}