/* Custom styles for G-interior home designs */

:root {
    --primary-color: #2C2C2C;        /* Charcoal - main text and headings */
    --primary-dark: #1A1A1A;         /* Deeper charcoal - accents */
    --secondary-color: #C9A961;      /* Warm gold - subtle luxury accent */
    --accent-color: #B8935A;         /* Darker gold - hover states */
    --dark-bg: #2C2C2C;              /* Dark charcoal background */
    --light-bg: #FAFAFA;             /* Off-white background */
    --text-dark: #2C2C2C;            /* Primary text */
    --text-light: #6B6B6B;           /* Secondary text */
    --border-color: #E8E8E8;         /* Subtle borders */
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Clean Hero Background */
.hero-animated-bg {
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
    position: relative;
}

/* Subtle accent overlay for hero */
.hero-animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

/* Custom font smoothing and typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Headings use Playfair Display */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
    letter-spacing: -0.015em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.875rem;
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }
}

/* Sections don't grow */
section {
    flex-shrink: 0;
}

/* Footer sticks to bottom */
footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* Minimal button styles */
.btn-primary {
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: white !important;
    border: 2px solid var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.15);
    color: white !important;
    text-decoration: none !important;
}

/* Gold accent button - minimal style */
.btn-gold {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    padding: 0.75rem 2rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.btn-gold:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.15);
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Minimal card hover */
.card-hover {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background: white;
}

.card-hover:hover {
    box-shadow: 0 8px 24px rgba(44, 44, 44, 0.08);
    transform: translateY(-4px);
    border-color: var(--secondary-color);
}

/* Clean product card */
.product-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(44, 44, 44, 0.08);
    transform: translateY(-4px);
}

/* Navigation sticky behavior */
nav {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
}

/* Navigation link hover effects */
nav a:hover {
    color: var(--secondary-color) !important;
}

/* Form input focus styles */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Button animations */
button {
    transition: all 0.3s ease;
}

button:active {
    transform: scale(0.98);
}

/* Fade in animation for page load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Scale up animation */
@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-up {
    animation: scaleUp 0.6s ease-out;
}

/* Subtle float animation for WhatsApp button only */
@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Elegant accent text */
.gradient-text {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Shadow utilities */
.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Product image sizing */
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Image containers with aspect ratios */
.img-container-square {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f3f4f6;
}

.img-container-landscape {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f3f4f6;
}

.img-container-portrait {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #f3f4f6;
}

/* Product card image */
.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.3s ease;
}

.product-card:hover img {
    opacity: 0.95;
}

/* Link styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Footer link styles */
footer a {
    color: inherit;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Product grid responsive */
@media (max-width: 768px) {
    .grid {
        grid-auto-rows: auto;
    }
}

/* Print styles */
@media print {
    nav,
    footer {
        display: none;
    }
}

/* Loading spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Accessibility - skip to main content */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    border-radius: 0 0 4px 0;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Smooth transitions for theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

button,
input,
textarea,
select {
    transition: all 0.3s ease;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: subtleFloat 4s ease-in-out infinite;
}

.whatsapp-float:hover {
    background: #20BA5F;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Responsive for mobile */
@media (max-width: 640px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}
