/* --- Root Variables --- */
:root {
    --primary: #3E2723;
    --accent: #C8A97E;
    --bg: #FAF7F2;
    --text: #1A1A1A;
    --white: #FFFFFF;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --fade-speed: 0.6s;
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.btn-primary, .btn-secondary, .btn-primary-sm {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.btn-secondary {
    border: 1px solid var(--white);
    color: var(--white);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-primary-sm {
    background: var(--accent);
    color: var(--white);
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--primary);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: var(--white);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

/* --- Hero --- */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1622372738946-6297a5071d3e?auto=format&fit=crop&q=80&w=2000') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* --- Metrics --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.metric-item h2 {
    font-size: 3rem;
    color: var(--primary);
}

.metric-item p {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* --- Services --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.subtitle {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
}

.service-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* --- Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.portfolio-item.large {
    grid-row: span 2;
    height: auto;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(62, 39, 35, 0.9));
    color: var(--white);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    bottom: 0;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* --- Process --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.step {
    position: relative;
    padding-top: 40px;
}

.step-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 0;
}

.step h3 {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* --- Quote Form --- */
.quote-box {
    background: var(--primary);
    color: var(--white);
    padding: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.quote-form .form-group {
    margin-bottom: 20px;
}

.quote-form input, .quote-form select {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    outline: none;
    transition: var(--transition);
}

.quote-form input:focus {
    border-color: var(--accent);
}

.hidden {
    display: none;
    margin-top: 20px;
    color: var(--accent);
}

/* --- Footer --- */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    line-height: 2.5;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* --- WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
}

.whatsapp-float img {
    width: 35px;
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp var(--fade-speed) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .quote-box { grid-template-columns: 1fr; padding: 40px; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-item.large { height: 400px; }
}