/* Base Variables */
:root {
    --color-primary: #8E8075;
    /* Warm Taupe */
    --color-secondary: #2C2C2C;
    /* Charcoal */
    --color-bg: #F9F8F6;
    /* Off-White / Cream */
    --color-text: #4A4A4A;
    /* Soft Black */
    --color-accent: #C7B299;
    /* Light Bronze/Gold hint */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --spacing-container: 2rem;
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    /* Clean inputs */
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 300;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Prevent scrolling for the "poster" look */
    position: relative;
    line-height: 1.6;
}

/* Background Image with Overlay */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Dark overlay + Image */
    background: linear-gradient(rgba(249, 248, 246, 0.85), rgba(249, 248, 246, 0.85)), url('bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    filter: blur(2px);
    /* Slight blur for focus on content */
    transform: scale(1.02);
    /* Prevent edge bleeding from blur */
}

a,
button {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

button {
    border: none;
    background: none;
    font-family: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 900px;
    padding: var(--spacing-container);
    text-align: center;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

/* Logo */
.logo-container {
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out forwards;
    opacity: 0;
}

.logo {
    max-width: 300px;
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Typography */
.main-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    /* Restoration: balanced size */
    font-weight: 400;
    color: var(--color-secondary);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .main-title {
        font-size: 4rem;
    }
}

.subtitle {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.divider {
    width: 60px;
    height: 1px;
    background-color: var(--color-accent);
    margin: 0 auto 3rem auto;
}

/* CTA Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    background-color: var(--color-primary);
    /* Changed to Primary (Taupe) */
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--color-primary);
    /* Changed to Primary */
    transition: all 0.4s ease;
    border-radius: 2px;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    /* Changed to Primary */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(142, 128, 117, 0.2);
    /* Colored shadow */
}

.btn-primary i {
    transition: transform 0.4s ease;
    font-size: 1.1rem;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-block {
    width: 100%;
}

/* Contact Info */
.contact-info {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.95rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #999;
}

.info-item .value {
    color: var(--color-secondary);
    font-weight: 500;
}

.info-item .value:hover {
    color: var(--color-primary);
}

/* Socials */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    /* Ensure centering */
    margin-top: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    /* Strict sizing */
    min-height: 44px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
    /* remove any underline defaults */
    font-size: 1.25rem;
    /* Icon size */
}

.social-icon:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: scale(1.05);
}

/* Footer */
footer {
    margin-top: auto;
    padding-top: 3rem;
    font-size: 0.8rem;
    color: #aaa;
}

/* Animations */
.fade-in-down {
    animation: fadeInDown 1s ease-out forwards;
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    animation: fadeIn 1.5s ease 1s forwards;
    opacity: 0;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(44, 44, 44, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 480px;
    padding: 3rem 2.5rem;
    position: relative;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--color-secondary);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-secondary);
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    transition: border-color 0.3s ease;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--color-primary);
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #999;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -12px;
    font-size: 0.75rem;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 1.5rem;
    }

    .modal-content {
        padding: 2rem;
        width: 95%;
    }
}