:root {
    --bg-paper: #f5f5f4;
    --bg-card: #ffffff;
    --text-main: #0c0a09;
    --text-body: #44403c;
    --accent: #c2410c;
    --border-color: #e7e5e4;
}

body {
    background-color: var(--bg-paper);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.75;
}

h1, h2, h3, h4 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.2;
}

.text-label {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
}

.content-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    border-color: #d6d3d1;
}

.btn-primary {
    background-color: #1c1917;
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.2s;
    border: 1px solid #1c1917;
}

.btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: #1c1917;
    padding: 1rem 2.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.2s;
    border: 1px solid #d6d3d1;
}

.btn-outline:hover {
    border-color: #1c1917;
    background-color: #ffffff;
}

.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

#top-bar {
    height: 40px;
}

#top-bar.hidden {
    transform: translateY(-100%);
}

#main-header {
    height: 100px;
    top: 40px;
}

#main-header.scrolled {
    top: 0;
}

#mobile-menu {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#mobile-menu > .flex-1 {
    min-height: min-content;
}

body.has-topbar {
    padding-top: 140px;
}

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

.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

.leading-tight-custom {
    line-height: 1.1;
}

.max-h-landing-portrait {
    max-height: 620px;
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

@media (max-width: 640px) {
    section,
    section > div,
    section > div > div,
    section > div > div > div {
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .grid > div {
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-height: 720px) {
    #mobile-menu > .flex-1 {
        justify-content: flex-start;
        padding-top: 5rem;
        padding-bottom: 2rem;
    }
}

#contact-form {
    max-width: 100%;
    overflow: hidden;
}

#contact-form .g-recaptcha {
    transform-origin: left center;
    max-width: 100%;
}

@media (max-width: 400px) {
    #contact-form .g-recaptcha {
        transform: scale(0.85);
    }
}

@media (max-width: 340px) {
    #contact-form .g-recaptcha {
        transform: scale(0.75);
    }
}

#lightbox {
    z-index: 100;
}

.lightbox-container {
    max-height: 90vh;
}

.lightbox-img {
    max-height: 80vh;
}
