/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== COLORS — Marble Aesthetic ===== */
:root {
    --bg: #faf8f6;
    --bg-alt: #f3f0ec;
    --surface: #ffffff;
    --text: #2c2a28;
    --text-light: #8a8682;
    --accent: #a8a09a;
    --accent-hover: #8a827a;
    --accent-light: rgba(168, 160, 154, 0.15);
    --border: #e5e1dc;
    --gold: #c9b99a;
    --gold-light: rgba(201, 185, 154, 0.2);
    --shadow: 0 4px 30px rgba(0,0,0,0.04);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.08);
    --radius: 12px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-title: 'Playfair Display', serif;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed; inset: 0;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.loader-logo {
    font-family: var(--font-title);
    font-size: 2rem;
    letter-spacing: 8px;
    color: var(--text);
    margin-bottom: 24px;
}
.loader-bar {
    width: 200px; height: 2px;
    background: var(--border);
    border-radius: 2px; overflow: hidden;
}
.loader-fill {
    width: 0; height: 100%;
    background: var(--accent);
    animation: loaderFill 1.8s ease forwards;
}
@keyframes loaderFill {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(250, 248, 246, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 1px 20px rgba(0,0,0,0.04);
}
.nav-container {
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-family: var(--font-title);
    font-size: 1.3rem;
    letter-spacing: 5px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}
.nav-links { display: flex; list-style: none; gap: 36px; }
.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--text);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 5px;
}
.nav-toggle span {
    width: 24px; height: 1.5px;
    background: var(--text);
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #faf8f6 0%, #f0ece7 50%, #e8e2db 100%);
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 185, 154, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 160, 154, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(201, 185, 154, 0.08) 0%, transparent 50%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}
.hero-badge {
    display: inline-block;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 20px;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.hero-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 16px; margin-bottom: 60px; }
.btn {
    display: inline-flex; align-items: center;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.btn-primary {
    background: var(--text);
    color: var(--bg);
}
.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--text);
}
.btn-secondary:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-2px);
}
.hero-stats {
    display: flex; gap: 48px;
}
.stat-item { text-align: left; }
.stat-num {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text);
    display: block;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-light);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bob 2s ease-in-out infinite;
}
.scroll-arrow {
    width: 1px; height: 24px;
    background: var(--accent);
    margin: 8px auto 0;
}
@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== SECTIONS ===== */
.section {
    padding: 120px 0;
}
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}
.section-badge {
    display: inline-block;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 5px 18px;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.section-title {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.3;
}
.section-desc {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.image-frame {
    position: relative;
    padding: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.placeholder-img {
    width: 100%; aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
}
.placeholder-icon {
    font-size: 3rem;
    color: var(--text-light);
    opacity: 0.4;
}
.about-features { display: flex; flex-direction: column; gap: 32px; }
.feature-item {
    display: flex; gap: 16px; align-items: flex-start;
}
.feature-icon {
    font-size: 1.2rem;
    color: var(--gold);
    margin-top: 2px;
    flex-shrink: 0;
}
.feature-item h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text);
}
.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== SERVICES ===== */
.services { background: var(--bg-alt); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--surface);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: default;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.s-card-img {
    width: calc(100% + 64px);
    margin: -40px -32px 20px -32px;
    height: 160px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.s-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.service-card:hover .s-card-img img {
    transform: scale(1.08);
}
.s-card-icon {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 16px;
}
.s-card-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text);
}
.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}
.s-card-price {
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 1px;
    font-weight: 400;
}

/* ===== PORTFOLIO ===== */
.portfolio-filters {
    display: flex; justify-content: center;
    gap: 12px; margin-bottom: 40px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 8px 24px;
    background: transparent;
    border: 1px solid var(--border);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.p-item-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.6s ease;
    overflow: hidden;
}
.p-item-placeholder {
    color: rgba(44, 42, 40, 0.3);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.portfolio-item:hover .p-item-img { transform: scale(1.05); }
.p-item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(44,42,40,0.8) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}
.portfolio-item:hover .p-item-overlay { opacity: 1; }
.p-item-overlay h3 {
    color: #fff;
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 500;
}
.p-item-overlay p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--bg-alt); }
.testimonial-slider {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.testimonial-track { overflow: hidden; }
.testimonial-card { padding: 20px 0; }
.t-stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 16px; letter-spacing: 4px; }
.t-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 24px;
    font-style: italic;
}
.t-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.t-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.t-avatar span { color: #fff; font-size: 0.9rem; font-weight: 400; letter-spacing: 1px; }
.t-name { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.t-role { font-size: 0.8rem; color: var(--text-light); }
.testimonial-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; margin-top: 32px;
}
.t-btn {
    width: 44px; height: 44px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
}
.t-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.t-dots { display: flex; gap: 8px; }
.t-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.t-dot.active { background: var(--text); }

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, #2c2a28 0%, #3a3633 100%);
    color: #fff;
}
.cta-content { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-title {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 16px;
}
.cta-text {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin-bottom: 36px;
    line-height: 1.8;
}
.cta-form { max-width: 500px; margin: 0 auto; }
.form-row {
    display: flex; gap: 12px; margin-bottom: 12px;
}
.form-row input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}
.form-row input::placeholder { color: rgba(255,255,255,0.4); }
.form-row input:focus { border-color: var(--accent); background: rgba(255,255,255,0.12); }
.form-row .btn { flex-shrink: 0; background: var(--accent); color: var(--text); }
.form-row .btn:hover { background: var(--accent-hover); }
.form-note {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-top: 12px;
}

/* ===== FOOTER ===== */
.footer {
    background: #1c1a18;
    color: rgba(255,255,255,0.6);
    padding: 80px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo {
    font-family: var(--font-title);
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: #fff;
    margin-bottom: 16px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.8; }
.footer h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 70%; height: 100vh;
        background: var(--surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: var(--transition);
        box-shadow: -10px 0 40px rgba(0,0,0,0.06);
    }
    .nav-links.open { right: 0; }
    .nav-toggle { display: flex; z-index: 1001; }
    .hero-buttons { flex-direction: column; }
    .hero-stats { gap: 32px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .section { padding: 80px 0; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-item { text-align: center; }
    .container { padding: 0 16px; }
}
