* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-400: #a8a29e;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-900: #1c1917;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--stone-50);
    color: var(--stone-900);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero-text, .section-title, .logo, .blog-title, .newsletter-title {
    font-family: 'Cormorant Garamond', serif;
    font-feature-settings: "liga", "kern";
    line-height: 1.2;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(250, 250, 249, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

nav.scrolled {
    background: rgba(250, 250, 249, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-container {
    padding: 1rem 1rem;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--stone-900);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Poiret One', sans-serif;
}

.logo-image {
    height: 24px;
    width: auto;
    display: block;
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding-right: 1rem;
}

.nav-link {
    position: relative;
    color: var(--stone-900);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 300;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    background: var(--stone-50);
    border-top: 1px solid var(--stone-200);
    padding: 1rem 1.5rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--stone-900);
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&h=1080&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1024px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--stone-900);
}

.btn-primary:hover {
    background: var(--stone-100);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-light {
    background: white;
    color: var(--stone-900);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Sections */
.section {
    padding: 6rem 1.5rem;
}

.section-alt {
    background: var(--stone-100);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--stone-600);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #d4c5b0 50%, transparent 100%);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 250px));
    gap: 1.5rem;
    justify-content: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    background: var(--stone-200);
    width: 100%;
    height: auto;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
}

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

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    color: white;
}

.gallery-item:hover .gallery-item-content {
    transform: translateY(0);
    opacity: 1;
}

.gallery-type {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.gallery-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.gallery-location {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 250px));
    gap: 1.5rem;
    justify-content: center;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.tab-btn {
    padding: 0.75rem 2rem;
    background: white;
    border: none;
    color: var(--stone-600);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--stone-900);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: var(--stone-200);
}

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

.about-content {
    padding-right: 2rem;
}

.about-content-full {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    color: var(--stone-700);
    font-size: 1.125rem;
    line-height: 1.8;
    margin: 2rem 0;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-image {
    height: 600px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--stone-900);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--stone-700);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding-right: 0;
    }

    .about-image {
        height: 400px;
    }
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.blog-date {
    font-size: 0.875rem;
    color: var(--stone-400);
    margin-bottom: 1rem;
}

.blog-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--stone-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.blog-link {
    color: var(--stone-900);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.blog-link:hover {
    gap: 0.5rem;
}

/* Newsletter */
.newsletter {
    padding: 6rem 1.5rem;
    background: var(--stone-900);
    color: white;
    text-align: center;
}

.newsletter-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.newsletter-text {
    color: var(--stone-400);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: var(--stone-400);
}

.newsletter-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Main Content Wrapper */
main {
    flex: 1 0 auto;
}

/* Footer */
.footer {
    background: var(--stone-900);
    color: white;
    padding: 1rem 1rem;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 500;
}

.footer-copyright {
    color: var(--stone-400);
    font-size: 0.65rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-left {
        align-items: center;
    }
}

.footer-link {
    color: white;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--stone-400);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border: 12px solid white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
}

.lightbox-info {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
}

/* Page Header */
.page-header {
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    background: var(--stone-100);
    margin-top: 4rem;
}

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.page-subtitle {
    color: var(--stone-600);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Preview Grid (for homepage) */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--stone-600);
}

.empty-state p {
    font-size: 1.125rem;
}

/* Active Nav Link */
.nav-link.active {
    color: var(--stone-900);
    font-weight: 500;
}

.nav-link.active::after {
    width: 100%;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Animations */
.fade-in {
    animation: fadeIn 1.2s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
    animation-delay: 0.2s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--stone-200) 25%, var(--stone-100) 50%, var(--stone-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--stone-900);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--stone-200);
    background: var(--stone-50);
    color: var(--stone-900);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--stone-900);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1400px) {
    .preview-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
