@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@400;600;800&display=swap');

:root {
    --bg-color: #12100e;
    --surface-color: #1c1815;
    --surface-hover: #2a241f;
    --primary-color: #a66a38;
    --primary-hover: #c98b55;
    --text-main: #fcf9f5;
    --text-muted: #bdaea1;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-family: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 12px;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-hover);
}

/* Layout */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Header */
header {
    background-color: rgba(28, 24, 21, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease-in-out;
}

header.header--hidden {
    transform: translateY(-100%);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo-container img {
    max-height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav ul li a {
    display: block;
    color: var(--text-main);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--surface-hover);
    color: var(--primary-color);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(166, 106, 56, 0.3);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background-color: rgba(230, 32, 32, 0.1);
}

/* Sections & Cards */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    border-color: rgba(166, 106, 56, 0.4);
}

/* Footer */
footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem auto;
    margin-top: auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    display: flex;
    justify-content: center;
}

.footer-section:first-child {
    justify-content: flex-start;
}

.footer-section:last-child {
    justify-content: flex-end;
}

.socials a {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.socials a:hover {
    color: var(--primary-color);
}

/* Reusable Wide Banner for Images */
.wide-banner {
    width: 100%;
    height: 400px;
    margin: 2rem auto 4rem auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 6px solid rgba(166, 106, 56, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.wide-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-speed), transform 0.5s ease;
}

.wide-banner:hover img {
    transform: scale(1.04);
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
}

input,
textarea,
select {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    transition: border-color var(--transition-speed);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 820px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--surface-color);
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .logo-container img {
        max-height: 90px;
    }

    header .logo-container {
        margin-left: 0;
    }

    footer .logo-container {
        margin-bottom: 1.5rem;
    }

    nav ul.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        justify-content: center !important;
    }
}

/* Grid Layouts for Specific Pages */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Secondary Footer (CTA Container) */
.cta-container {
    text-align: center;
    padding: 2rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border-top: 3px solid var(--border-color);
    border-bottom: 3px solid var(--border-color);
}

.cta-container h2 {
    margin-bottom: 2rem;
}

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

/* Page Loader */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.8, 0, 0.2, 1), visibility 0.6s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    filter: drop-shadow(0 0 10px rgba(166, 106, 56, 0.2));
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

body.loaded #page-loader {
    opacity: 0;
    visibility: hidden;
}