/* ==========================================================================
   Home Solution - Interior Decoration Portfolio Styles
   ========================================================================== */

:root {
    /* Color Palette - Light, Elegant, Airy */
    --primary: #8a735a; /* Warm taupe/gold */
    --primary-dark: #6e5c48;
    --secondary: #2c3e50; /* Deep navy/slate for contrast */
    --accent: #d4af37; /* Gold accent */
    
    --bg-main: #ffffff;
    --bg-light: #f8f9fa;
    --bg-surface: #ffffff;
    
    --text-main: #333333;
    --text-muted: #6c757d;
    --text-light: #ffffff;

    --border-color: #e9ecef;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing & Layout */
    --section-pad: 5rem 0;
    --container-width: 1200px;
    --radius: 8px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: var(--section-pad);
}

.bg-light {
    background-color: var(--bg-light);
}

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

.w-100 {
    width: 100%;
}

/* --- Typography Utilities --- */
.section-subtitle {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.section-header {
    margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-primary-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}

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

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

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #1a252f;
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-primary-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.logo-icon {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary);
    position: relative;
}

.nav-links a:not(.btn-primary-outline)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-outline):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--bg-main);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    color: var(--secondary);
    font-weight: 500;
}

.mobile-link.btn-primary {
    margin-top: 1rem;
    border: none;
    color: white;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('images/hero_background.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding-top: 80px; /* Offset for navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

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

.hero .subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--accent);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.about-features {
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.check-icon {
    color: var(--primary);
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    height: 100%;
    object-fit: cover;
}

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

.service-card {
    background-color: var(--bg-surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--text-light);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

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

.portfolio-overlay h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    color: var(--primary);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-item p {
    margin: 0;
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background-color: var(--bg-surface);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-main);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(138, 115, 90, 0.1);
}

.form-message {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    color: #2e7d32;
}

.form-message.error {
    color: #d32f2f;
}

/* --- Footer --- */
.footer {
    background-color: var(--secondary);
    color: var(--text-light);
    padding: 4rem 0 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #aeb6bf;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-brand .logo {
    color: var(--text-light);
}

.footer h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #aeb6bf;
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-light);
}

.social-icons a:hover {
    background-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: #aeb6bf;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-image {
        order: -1;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper {
        padding: 2rem;
    }
}


/* --- Service Detail Page --- */
.service-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Offset for navbar */
    overflow: hidden;
}

#serviceHeroImg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

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

.service-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.service-hero h1 {
    font-size: 3.5rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.service-details-content {
    background-color: var(--bg-main);
}

.service-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2.5rem;
    }
}


/* --- WhatsApp Button --- */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

.mobile-link.btn-whatsapp {
    margin-top: 0.5rem;
    border: none;
    color: white;
}
/* =========================================
   Reviews Section
   ========================================= */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .reviews-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.star-rating svg {
    transition: all 0.2s ease;
}
.star-rating svg:hover,
.star-rating svg.hovered {
    color: #f59e0b;
    transform: scale(1.1);
}
.star-rating svg.active {
    color: #f59e0b;
    fill: #f59e0b;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-name {
    font-weight: 600;
    font-size: 0.95rem; /* Much smaller, like Google Play */
    color: var(--text-main);
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-stars {
    display: flex;
    gap: 0.15rem; /* Stars closer together */
    margin-top: 0.1rem;
}

/* Target SVG instead of i to force the size */
.review-stars svg {
    width: 14px; 
    height: 14px;
}

.review-stars svg.active {
    color: #0f9d58; /* Google Green */
    fill: #0f9d58;
}

.review-stars svg:not(.active) {
    color: #ccc;
    fill: transparent;
}

.review-text {
    color: var(--text-main);
    line-height: 1.4;
    font-size: 0.9rem; /* Smaller review text */
    margin-top: 0.2rem;
}

/* --- Aggregate Rating Summary --- */
.rating-summary-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0 auto 3rem auto;
    max-width: 800px;
    padding: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.rating-summary-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.rating-average {
    font-size: 4rem;
    font-weight: 400;
    line-height: 1;
    color: var(--secondary);
    font-family: var(--font-body);
}

.rating-stars-display {
    display: flex;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.rating-stars-display svg {
    width: 20px;
    height: 20px;
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.rating-summary-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 100%;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-bar-row span {
    font-weight: 600;
    color: var(--text-muted);
    width: 15px;
}

.rating-bar-bg {
    flex-grow: 1;
    height: 8px; /* Thinner bars */
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background-color: #0f9d58; /* Google Green */
    width: 0%; /* Starts at 0 for animation */
    border-radius: 10px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Flat Review Cards (Google Play Style) --- */
.review-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color); /* Just a minimal separator line */
    padding: 1.5rem 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-card:hover {
    transform: none; /* No hover effect for flat Google play style */
    box-shadow: none;
}

/* --- Logo Sizing --- */
.header-logo, .footer-logo {
    height: 130px;
    width: auto;
}

/* Smart Mobile Adjustments */
@media (max-width: 768px) {
    .header-logo {
        height: 70px; /* Automatically shrinks the logo on phones */
    }
    .navbar {
        padding: 0.2rem 0; /* Makes the white bar much thinner on phones */
    }
}
