/* Design Tokens */
:root {
    --color-bg: #3c3028; /* Earthy brown matching the screenshots */
    --color-bg-dark: #2a201a;
    --color-bg-light: #4f4137;
    --color-text: #fdfbf7; /* Soft creamy white */
    --color-text-muted: #d5d1c9;
    --color-accent: #c4a17a; /* Warm gold/tan accent */
    --color-surface: rgba(253, 251, 247, 0.05);
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
}

.subheading {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.divider {
    height: 1px;
    width: 60px;
    background-color: var(--color-accent);
    margin: 1.5rem 0;
    transition: width var(--transition-slow);
}

.divider:hover {
    width: 100px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-text);
    color: var(--color-bg-dark);
    padding: 1rem 2rem;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--color-text);
    color: var(--color-text);
    padding: 1rem 2rem;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

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

.btn-text {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
}
.btn-text:hover {
    color: var(--color-text);
    transform: translateX(5px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    background-color: rgba(42, 32, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.brand-logo {
    max-height: 80px;
    width: auto;
    display: block;
    mix-blend-mode: screen;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-fast);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}
.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

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

.hero .heading {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero .hero-desc {
    font-size: 1.125rem;
    letter-spacing: 0.1em;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(42,32,26,0.2) 0%, rgba(42,32,26,0.8) 100%);
    z-index: 1;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 10s ease-out;
    transform: scale(1.05);
}

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

/* Sections Base */
section {
    padding: 8rem 0;
}

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

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

.about-image {
    width: 100%;
    height: 650px;
    overflow: hidden;
    border-radius: 4px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Portfolio Section */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border-radius: 4px;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.8s ease;
}

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

.masonry-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(60, 48, 40, 0.2);
    opacity: 0;
    transition: var(--transition-fast);
}

.masonry-item:hover::after {
    opacity: 1;
}

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

.service-card {
    background-color: var(--color-bg-dark);
    padding: 3.5rem 2.5rem;
    border: 1px solid var(--color-surface);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-image-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, margin-top 0.4s ease;
}

.service-image-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.service-card:hover .service-image-container {
    max-height: 300px;
    opacity: 1;
    margin-top: 2rem;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--color-text);
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

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

.contact-info p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

.contact-details {
    padding-top: 2rem;
    border-top: 1px solid var(--color-surface);
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--color-text);
}

.contact-form .form-group {
    margin-bottom: 2rem;
}

.contact-form label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(213, 209, 201, 0.3);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

.reveal-image {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease-out, transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-image.visible {
    opacity: 1;
    transform: scale(1);
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: var(--color-bg-dark);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Multi-Page Additions */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg-dark);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    list-style: none;
    padding: 1rem 0;
    border-top: 2px solid var(--color-accent);
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li a {
    padding: 0.8rem 1.5rem;
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}
.dropdown-menu li a::after {
    display: none; /* No underline on dropdown */
}
.dropdown-menu li a:hover {
    background-color: var(--color-bg);
    color: var(--color-text);
}
.page-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background-size: cover;
    background-position: center;
    margin-top: 0;
}
.page-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(42,32,26,0.6);
    z-index: 1;
}
.page-hero-content {
    position: relative;
    z-index: 2;
}
.page-hero .heading {
    font-size: 4rem;
    font-style: italic;
    margin-top: 0.5rem;
    color: var(--color-text);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .hero .heading { font-size: 4rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem;}
    .masonry-grid { column-count: 2; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    section { padding: 5rem 0; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--color-bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }
    
    .nav-links.active { right: 0; }
    .hamburger { display: block; z-index: 1001; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    
    .nav-cta { display: none; }
    
    .hero .heading { font-size: 3rem; }
    .hero .subheading { font-size: 0.875rem; }
    .masonry-grid { column-count: 1; }
    .services-grid { grid-template-columns: 1fr; }
}
