/*
Theme Name: Ruhi Interiors
Theme URI: 
Author: AI Assistant
Author URI: 
Description: A premium, highly animated, and responsive custom WordPress theme for Ruhi Enterprise & Construction.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ruhi-interiors
*/

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    --hl-red: #D97706; /* Primary Accent (Orange) */
    --hl-red-hover: #b45f02;
    --primary-deep: #1F5B6B; /* Primary Blue */
    --text-dark: #1A202C;
    --text-muted: #4A5568;
    --bg-light: #F7FAFC;
    --surface-container-low: #F1F5F9;
    --surface-container-highest: #E2E8F0;
    --white: #FFFFFF;
    --border-color: transparent; /* No-line rule */
    --green-whatsapp: #25D366;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
nav {
    position: fixed; 
    top: 0; left: 0; right: 0; 
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border-color);
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 0 8%; 
    z-index: 1000;
    transition: var(--transition-smooth);
}

.logo-area { display: flex; align-items: center; gap: 8px; }
.logo-text { font-size: 26px; font-weight: 700; color: var(--text-dark); letter-spacing: -0.5px; }
.logo-text span { color: var(--hl-red); }

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hl-red);
    transition: var(--transition-smooth);
}

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

.nav-cta {
    background: var(--hl-red); 
    color: var(--white) !important; 
    padding: 12px 24px;
    border-radius: 4px; 
    font-size: 14px; 
    font-weight: 700; 
    transition: var(--transition-smooth);
}
.nav-cta:hover { 
    background: var(--hl-red-hover); 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(226, 35, 26, 0.3);
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
    margin-top: 80px; 
    height: calc(100vh - 80px);
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    padding: 0 8%; 
    color: var(--white);
    background-attachment: fixed; /* Parallax effect */
}
.hero-content { max-width: 700px; }
.hero-content h1 { 
    font-size: 54px; 
    text-shadow: 0 4px 15px rgba(0,0,0,0.4); 
    animation-delay: 0.1s;
}
.hero-content p { 
    font-size: 18px; 
    margin-bottom: 32px; 
    color: rgba(255,255,255,0.95); 
    animation-delay: 0.3s;
}
.hero-btn {
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    background: var(--hl-red);
    color: var(--white); 
    padding: 16px 32px; 
    border-radius: 4px; 
    font-weight: 700; 
    font-size: 15px;
    transition: var(--transition-smooth);
    animation-delay: 0.5s;
}
.hero-btn:hover { 
    background: var(--hl-red-hover); 
    transform: translateX(5px);
}

/* ==========================================================================
   PAGE SECTIONS
   ========================================================================== */
.section-container { padding: 90px 8%; text-align: center; }
.section-title { font-size: 36px; margin-bottom: 12px; }
.section-subtitle { font-size: 16px; color: var(--text-muted); margin-bottom: 56px; max-width: 600px; margin-inline: auto; }

/* WHY US GRID */
.why-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 32px; 
    max-width: 1100px; 
    margin: 0 auto 48px; 
}
.why-card { 
    padding: 32px 24px; 
    border-radius: 12px; 
    background: var(--bg-light);
    transition: var(--transition-smooth);
}
.why-card:hover {
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-10px);
}
.why-icon-wrap { 
    width: 64px; height: 64px; 
    margin: 0 auto 20px; 
    display: flex; align-items: center; justify-content: center; 
    background: rgba(226, 35, 26, 0.1);
    border-radius: 50%;
    color: var(--hl-red);
    transition: var(--transition-smooth);
}
.why-card:hover .why-icon-wrap {
    background: var(--hl-red);
    color: var(--white);
    transform: rotateY(180deg);
}

/* PRODUCT CARDS */
.product-row-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 32px; 
    text-align: left; 
}
.product-item-card { 
    background: var(--white); 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.product-img-frame { 
    height: 250px; 
    background-size: cover; 
    background-position: center; 
    transition: transform 0.6s ease;
}
.product-item-card:hover .product-img-frame {
    transform: scale(1.05);
}
.product-info-panel { 
    padding: 24px; 
    background: var(--white);
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.section-red-action-link { 
    display: inline-block; 
    background: var(--hl-red); 
    color: var(--white); 
    padding: 16px 36px; 
    border-radius: 4px; 
    font-weight: 700; 
    font-size: 14px; 
    margin-top: 24px; 
    text-transform: uppercase;
    transition: var(--transition-smooth);
}
.section-red-action-link:hover { 
    background: var(--hl-red-hover); 
    box-shadow: 0 10px 20px rgba(226,35,26,0.3);
    transform: translateY(-3px);
}

/* ==========================================================================
   LEAD GENERATION BLOCK
   ========================================================================== */
.lead-banner-block {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1200&q=80') center/cover fixed;
    padding: 90px 8%; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
    color: var(--white);
}
.inline-capture-box { 
    background: var(--white); 
    padding: 40px; 
    border-radius: 12px; 
    color: var(--text-dark); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); 
}
.input-element { 
    width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 16px; font-size: 15px; transition: border-color 0.3s; 
}
.input-element:focus { border-color: var(--hl-red); outline: none; }
.form-action-btn { 
    width: 100%; padding: 16px; background: var(--hl-red); color: var(--white); border: none; border-radius: 6px; font-weight: 700; cursor: pointer; transition: var(--transition-smooth); text-transform: uppercase; 
}
.form-action-btn:hover { background: var(--hl-red-hover); transform: translateY(-2px); }

/* ==========================================================================
   CUSTOMER STORIES (TESTIMONIALS)
   ========================================================================== */
.customer-stories-block { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: left; }
.story-card { border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.story-img-placeholder { height: 220px; background-size: cover; background-position: center; }
.story-body { padding: 32px 24px; font-size: 15px; font-style: italic; position: relative; }
.story-body::before {
    content: '"';
    font-size: 60px;
    color: rgba(226,35,26,0.1);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

/* ==========================================================================
   MATRIX ICON GRID
   ========================================================================== */
.icon-matrix-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.matrix-item-card { 
    padding: 24px; 
    background: var(--bg-light); 
    border-radius: 12px;
    text-align: center; 
    display: flex; flex-direction: column; align-items: center; 
    transition: var(--transition-smooth);
}
.matrix-item-card:hover {
    background: var(--hl-red);
    color: var(--white) !important;
    transform: translateY(-5px);
}
.matrix-item-card:hover .matrix-svg-holder, .matrix-item-card:hover span {
    color: var(--white) !important;
}
.matrix-svg-holder { width: 48px; height: 48px; margin-bottom: 12px; color: var(--text-dark); transition: color 0.3s; }
.matrix-item-card span { font-size: 13px; font-weight: 700; text-transform: uppercase; transition: color 0.3s; }

/* ==========================================================================
   FOOTER & WHATSAPP
   ========================================================================== */
footer { background: #111111; color: #888888; padding: 60px 8%; font-size: 14px; border-top: 1px solid #222222; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-logo span { color: var(--hl-red); }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 16px; }
.footer-links li { margin-bottom: 10px; list-style: none; }
.footer-links a:hover { color: var(--hl-red); }

.whatsapp-sticky-trigger { 
    position: fixed; bottom: 30px; right: 30px; 
    width: 60px; height: 60px; 
    background: var(--green-whatsapp); 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    color: var(--white); box-shadow: 0 5px 20px rgba(37,211,102,0.4); 
    z-index: 9999; cursor: pointer; transition: transform 0.3s;
}
.whatsapp-sticky-trigger:hover { transform: scale(1.1); }

/* ==========================================================================
   STANDARD PAGES (About, Contact, Blog)
   ========================================================================== */
.page-header {
    background: var(--bg-light);
    padding: 140px 8% 80px;
    text-align: center;
}
.page-header h1 {
    font-size: 48px;
    color: var(--text-dark);
}
.content-area {
    padding: 60px 8%;
    max-width: 1000px;
    margin: 0 auto;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-info-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
}
.contact-info-card p {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .why-grid, .icon-matrix-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-content h1 { font-size: 42px; }
    .lead-banner-block { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    nav { padding: 0 5%; }
    .nav-links { display: none; } /* Add hamburger for mobile in a real scenario */
    .hero-section { padding: 0 5%; text-align: center; align-items: center; }
    .product-row-grid, .customer-stories-block, .why-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .icon-matrix-grid { grid-template-columns: repeat(2, 1fr); }
    .section-container { padding: 60px 5%; }
}
