:root {
    --primary: #1a1a1a;
    --secondary: #c5a02e; /* Deeper Gold */
    --accent: #f8f4eb; /* Warm Beige/Gold */
    --white: #ffffff;
    --black: #000000;
    --text-main: #1a1a1a;
    --text-light: #666666;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --header-height: 140px;
}

body {
    background: var(--white);
    color: var(--text-main);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Topbar */
.topbar {
    background: var(--primary);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.topbar-info span {
    margin-right: 20px;
}

.topbar-info i {
    color: var(--secondary);
    margin-right: 8px;
}

.topbar-social a {
    margin-left: 15px;
    opacity: 0.8;
}

.topbar-social a:hover {
    color: var(--secondary);
    opacity: 1;
}

/* Header & Topbar Overlay */
header {
    height: var(--header-height);
    background: transparent;
    display: flex;
    flex-direction: column;
    position: absolute; /* Overlay on hero */
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: var(--accent) !important;
    height: 100px;
    position: fixed;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

header.scrolled nav ul li a {
    color: var(--primary) !important;
    opacity: 1 !important;
}

header.scrolled .logo h1 {
    color: var(--primary) !important;
}

/* ===== LOGO IMAGE VISIBILITY FIXES ===== */
/* Default: header is transparent over dark hero — invert logos to white */
.logo-combined .logo-symbol,
.logo-combined .logo-name {
    filter: invert(1) brightness(10);
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled: header has light beige bg — restore original dark logo */
header.scrolled .logo-combined .logo-symbol,
header.scrolled .logo-combined .logo-name {
    filter: none;
}

/* Combined logo layout */
.logo-combined {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
/* Override global img { display: block; max-width: 100%; } */
.logo-combined img.logo-symbol {
    display: inline-block !important;
    height: 58px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    flex-shrink: 0;
}
.logo-combined img.logo-name {
    display: inline-block !important;
    height: 36px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    margin-left: -6px;
    flex-shrink: 0;
}

/* Scrolled: slightly smaller logo */
header.scrolled .logo-combined img.logo-symbol {
    height: 48px !important;
}
header.scrolled .logo-combined img.logo-name {
    height: 30px !important;
}

.topbar {
    background: var(--primary);
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
    width: 100%;
}

header.scrolled .topbar {
    display: none; /* Hide topbar on scroll for compactness */
}

.nav-row {
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
}

.logo h1 {
    font-size: 24px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--white);
    transition: var(--transition);
}

header.scrolled .logo h1 {
    color: var(--primary);
}

nav ul li a {
    color: var(--white);
    opacity: 0.9;
}

header.scrolled nav ul li a {
    color: var(--primary) !important; /* Dark color on light background */
    opacity: 1 !important;
}

header.scrolled .mobile-toggle {
    color: var(--primary) !important;
}

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--white);
    position: relative;
    opacity: 0.8;
}

nav ul li a:hover,
nav ul li a.active {
    opacity: 1;
    color: var(--secondary);
}

/* Scrolled nav color already handled above */

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.header-btn {
    display: flex;
    align-items: center;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    margin-left: 20px;
    cursor: pointer;
    color: var(--white); /* White by default over dark hero */
    transition: color 0.4s ease;
}

header.scrolled .mobile-toggle {
    color: var(--primary) !important;
}

.btn {
    padding: 15px 35px;
    background: var(--primary);
    color: var(--white);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
}

.btn:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--white); /* Thinner borders for elegance */
    color: var(--white);
}

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

/* Glassmorphism utility */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0px; /* Sharper, modern edges */
}

/* Hero Section */
.hero {
    height: calc(100vh - var(--header-height));
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 72px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 35px;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

/* Sections - More Compact */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.section-title .divider {
    width: 80px;
    height: 3px;
    background: var(--secondary);
    margin: 0 auto 20px;
}

/* About Home */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Architectural Elements */
.line-decor {
    position: absolute;
    background: rgba(184, 150, 80, 0.1);
    z-index: -1;
}

.line-v { width: 1px; height: 100%; top: 0; }
.line-h { height: 1px; width: 100%; left: 0; }

.bg-grain {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/p6.png'); /* Subtle grain */
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

.about-img img {
    border-radius: 0;
    box-shadow: 30px 30px 0px var(--secondary); /* Bold offset shadow */
}

/* Broken Grid Layouts */
.overlap-grid {
    display: flex;
    align-items: center;
    position: relative;
}

.overlap-text {
    background: var(--white);
    padding: 80px;
    width: 60%;
    position: absolute;
    right: 0;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    z-index: 2;
}

.overlap-img {
    width: 60%;
    z-index: 1;
}

.overlap-img img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--accent);
    padding: 40px;
    border-radius: 5px;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    background: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-col p {
    color: #999;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        height: 80px;
    }
    .hero-content h1 {
        font-size: 48px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    #main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary);
        z-index: 999;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    #main-nav.active {
        display: flex;
    }
    #main-nav ul {
        flex-direction: column;
    }
    #main-nav ul li {
        margin: 20px 0;
        margin-left: 0;
    }
    #main-nav ul li a {
        font-size: 24px;
    }
    .mobile-toggle {
        display: block !important;
        position: relative;
        z-index: 1001;
    }
}

.parallax-img {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Carousel & Form Styles */
.reviews-container {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

/* Google Reviews Carousel */
.google-reviews-section {
    background: var(--accent);
    padding: 60px 0;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
}

.reviews-track-container {
    overflow: hidden;
    margin: 0 40px;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
}

.google-review-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    flex: 0 0 calc(33.333% - 14px); /* 3 cards on desktop */
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 992px) {
    .google-review-card { flex: 0 0 calc(50% - 10px); }
}

@media (max-width: 600px) {
    .google-review-card { flex: 0 0 100%; }
    .reviews-track-container { margin: 0; }
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 10;
    border: none;
    transition: var(--transition);
}

.carousel-nav:hover {
    background: var(--secondary);
    color: var(--white);
}

.carousel-nav.prev { left: -20px; }
.carousel-nav.next { right: -20px; }

.google-logo-badge {
    height: 18px;
    vertical-align: middle;
    margin-left: 5px;
}

.review-slide {
    display: none;
    text-align: center;
    padding: 60px;
    animation: fadeIn 0.8s ease;
}

.review-slide.active {
    display: block;
}

.process-step {
    padding: 60px 40px;
    border-right: 1px solid rgba(184, 150, 80, 0.1);
    position: relative;
}

.process-step:last-child {
    border-right: none;
}

.process-number {
    font-size: 80px;
    font-weight: 900;
    color: rgba(184, 150, 80, 0.05);
    position: absolute;
    top: 20px;
    left: 20px;
    line-height: 1;
}

.input-group {
    margin-bottom: 30px;
    position: relative;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    outline: none;
    font-size: 16px;
    transition: var(--transition);
}

.input-group input:focus, 
.input-group textarea:focus {
    border-bottom-color: var(--secondary);
}

.input-label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
}

.input-group input:focus ~ .input-label,
.input-group input:not(:placeholder-shown) ~ .input-label {
    top: -10px;
    font-size: 10px;
    color: var(--secondary);
}

/* Floating Widgets */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: none; /* Shown via JS */
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    transition: var(--transition);
}
.scroll-top.show { display: flex; }

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
    display: flex;
    align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

/* Creative Section Styles */
.creative-reveal {
    background: var(--white);
    position: relative;
    padding: 120px 0;
}
.reveal-circle {
    width: 400px; height: 400px;
    border-radius: 50%;
    background: var(--secondary);
    position: absolute;
    top: 50%; right: 10%;
    transform: translateY(-50%) scale(0.8);
    opacity: 0.1;
    z-index: 0;
    transition: all 1.5s ease;
}
.creative-reveal.revealed .reveal-circle {
    transform: translateY(-50%) scale(1.5);
    opacity: 0.2;
}
.floating-img {
    animation: float 6s ease-in-out infinite;
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s ease-out;
}

.reveal.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
