/* assets/css/style.css */
/* Luxury Architectural Design System & Brand Palette for RS Design Studio */

/* Modern Typography Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette - Premium Emerald Gold Brand Identity (Based on Logo styling) */
    --primary-color: #0b3d2c;      /* Deep luxurious forest green / gold metallic base */
    --accent-color: #d4af37;       /* Refined Metallic Architectural Gold */
    --accent-hover: #b8972e;
    
    /* Light Mode Variables (Default) */
    --bg-color: #fcfbf9;           /* Pure premium off-white */
    --card-bg: #ffffff;
    --text-primary: #1c2621;       /* Deep obsidian green-gray text */
    --text-secondary: #57655d;
    --border-color: #eae7e0;
    --light-tint: #f3f0e9;
    --hero-overlay: rgba(11, 61, 44, 0.4);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

/* Dark Mode Tokens Override */
[data-theme="dark"] {
    --bg-color: #0d1411;           /* Deep obsidian-emerald */
    --card-bg: #141f1a;
    --text-primary: #f5f7f6;
    --text-secondary: #a3b2ab;
    --border-color: #24352e;
    --light-tint: #182821;
    --hero-overlay: rgba(10, 18, 15, 0.65);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Reset & Core Styling */
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    transition: var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Premium Custom Buttons */
.btn-premium {
    background-color: var(--primary-color);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.9rem 2.2rem;
    border: 1px solid var(--primary-color);
    border-radius: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-smooth);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-premium:hover {
    color: #000000;
    border-color: var(--accent-color);
}

.btn-premium:hover::before {
    width: 100%;
}

.btn-premium-outline {
    background-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.9rem 2.2rem;
    border: 1px solid var(--text-primary);
    border-radius: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-smooth);
}

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

/* Header & Sticky Navigation */
.navbar-rsd {
    background-color: rgba(252, 251, 249, 0.95);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
    padding: 1rem 0;
}

[data-theme="dark"] .navbar-rsd {
    background-color: rgba(13, 20, 17, 0.95);
}

.navbar-rsd.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand img {
    height: 48px;
    width: auto;
    transition: var(--transition-smooth);
}

.navbar-rsd.scrolled .navbar-brand img {
    height: 40px;
}

.nav-link-rsd {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary) !important;
    padding: 0.5rem 1.2rem !important;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link-rsd::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-link-rsd:hover::after,
.nav-link-rsd.active::after {
    width: calc(100% - 2.4rem);
}

/* Luxury Hero Section */
.hero-slider {
    position: relative;
    height: 90vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    transform: scale(1.15);
    opacity: 0;
    transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s ease-in-out;
}

.hero-slide.active {
    transform: scale(1);
    opacity: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--hero-overlay), rgba(13, 20, 17, 0.8));
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-body);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: block;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 2rem;
    transform: translateY(40px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

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

.hero-cta {
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
}

.hero-slide.active .hero-subtitle,
.hero-slide.active .hero-title,
.hero-slide.active .hero-cta {
    transform: translateY(0);
    opacity: 1;
}

/* Page Section Standard Header */
.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Info Cards & Architecture Grid Items */
.rsd-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 0;
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
}

.rsd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

.rsd-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.rsd-card:hover::before {
    height: 100%;
}

.rsd-card-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.rsd-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.rsd-card:hover .rsd-card-img img {
    transform: scale(1.08);
}

/* Portfolio Gallery Showcase */
.gallery-filter-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    padding: 0.6rem 1.5rem;
    transition: var(--transition-fast);
    position: relative;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    color: var(--accent-color);
}

.gallery-filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    width: calc(100% - 3rem);
    height: 2px;
    background-color: var(--accent-color);
}

.gallery-item-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 61, 44, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

.gallery-item-wrapper:hover img {
    transform: scale(1.1);
}

.gallery-item-wrapper:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-item-cat {
    color: var(--accent-color);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Lightbox Modal custom styled for Architect minimal layout */
.lightbox-modal .modal-content {
    background-color: rgba(13, 20, 17, 0.95) !important;
    border: none;
    border-radius: 0;
}

.lightbox-modal .modal-body {
    position: relative;
    padding: 0;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    z-index: 99;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Architectural process/timeline steps */
.process-step {
    position: relative;
    padding-left: 3rem;
    border-left: 2px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    left: -17px;
    top: 0;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: 3px solid var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.process-step:hover::before {
    background-color: var(--accent-color);
    color: #000000;
}

/* Floating Actions & Widgets */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: 1px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: #000000;
    transform: translateY(-5px);
}

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    z-index: 999;
    text-decoration: none;
    font-size: 1.5rem;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
    color: #ffffff;
}

/* Dark mode slider custom styling */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 48px;
}

.theme-switch input {
    display: none;
}

.slider-toggle {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider-toggle::before {
    background-color: white;
    bottom: 3px;
    content: "";
    height: 18px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 18px;
    border-radius: 50%;
}

input:checked + .slider-toggle {
    background-color: var(--primary-color);
}

input:checked + .slider-toggle::before {
    transform: translateX(22px);
    background-color: var(--accent-color);
}

/* Footer Section styling */
footer {
    background-color: #0d1411;
    color: #a3b2ab;
    border-top: 1px solid #1a2c24;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

footer h5 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

footer a {
    color: #a3b2ab;
    text-decoration: none;
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--accent-color);
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    background-color: #141f1a;
    border: 1px solid #24352e;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: var(--transition-smooth);
}

.footer-social-icon:hover {
    background-color: var(--accent-color);
    color: #000000;
}
