:root {
    --gold-bright: #b8860b;
    --gold-dark: #805d08;
    --gold-dark-border: rgba(184, 134, 11, 0.6);
    --gold-dark-hover: rgba(184, 134, 11, 0.8);
    --font-gray: #b8b8b8;
    --card-background: rgba(255, 255, 255, 0.05);
}

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

html {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100%;
    background-color: #1a1a1a;
    color: #e5e5e5;
    display: flex;
    justify-content: center;
}

a { color: inherit; text-decoration: none; }

/* === Page layout === */
.page {
    width: 100%;
    max-width: 960px;
    padding: 1.5rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* === Language switcher (top-right) === */
.lang-nav {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

#lang-switcher {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold-bright);
    border: 1px solid var(--gold-dark-border);
    border-radius: 6px;
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c4a050' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
}

#lang-switcher:hover,
#lang-switcher:focus {
    border-color: var(--gold-dark-hover);
    background-color: rgba(255, 255, 255, 0.12);
}

#lang-switcher option {
    background: #2a2a2a;
    color: var(--font-gray);
}

/* === Logo === */
.logo-header {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.logo {
    width: min(280px, 60vw);
    height: auto;
}

/* === Headings === */
.page-caption {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold-bright);
    letter-spacing: 0.04em;
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-subtitle {
    font-size: 1rem;
    line-height: 1.45;
    color: var(--font-gray);
    text-align: center;
    margin-bottom: 1.5rem;
    max-width: 480px;
}

/* === Featured image section === */
.featured-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2.5rem;
}

.featured-img-wrap {
    width: 360px;
    height: 240px;
    border-radius: 12px;
    border: 1px solid var(--gold-dark-border);
    overflow: hidden;
    margin: 1.5rem auto;
    flex-shrink: 0;
}

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

.featured-text {
    width: 100%;
    background: var(--card-background);
    border: 1px solid var(--gold-dark-border);
    border-radius: 12px;
    text-align: center;
    color: var(--font-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.featured-text:hover {
    border-color: var(--gold-dark-hover);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.featured-summary {
    padding: 1.25rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold-bright);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.featured-summary::-webkit-details-marker {
    display: none;
}

.featured-summary::after {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--gold-bright);
    border-bottom: 2px solid var(--gold-bright);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.featured-text[open] > .featured-summary::after {
    transform: rotate(-135deg);
}

.featured-content {
    padding: 0 1.5rem 1.25rem;
}

/* === Cards grid === */
.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    width: 100%;
}

.card {
    background: var(--card-background);
    border: 1px solid var(--gold-dark-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-dark-hover);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Card image area */
.card-img-wrap {
    width: 100%;
    height: 140px;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    overflow: hidden;
}

.card-img {
    max-width: 80%;
    max-height: 90px;
    object-fit: contain;
}

.card-img-cover {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Card text area */
.card-body {
    padding: 1rem 1.15rem 1.25rem;
    flex: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-bright);
    margin-bottom: 0.35rem;
}

.card-desc {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--font-gray);
}

/* === Contact form === */
.contact-section {
    width: 100%;
    max-width: 640px;
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-background);
    border: 1px solid var(--gold-dark-border);
    border-radius: 12px;
    padding: 2rem 2rem 2.5rem;
}

.contact-section:hover {
    border-color: var(--gold-dark-hover);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-msg {
    font-size: 1.1rem;
    font-weight: 700;
    color: #b8480b;
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-caption {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-bright);
    text-align: center;
    margin-bottom: 2rem;
}

.contact-subtitle {
    font-size: 0.95rem;
    color: var(--font-gray);
    text-align: center;
    margin-bottom: 2rem;
    max-width: 420px;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--font-gray);
    margin-bottom: 0.35rem;
}

.form-input,
.form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--font-gray);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 1.15rem;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--gold-dark-hover);
    background: rgba(255, 255, 255, 0.09);
}

.form-input::placeholder {
    color: #666;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}

.form-select option {
    background: #2a2a2a;
    color: var(--font-gray);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

#turnstile-container {
    margin-bottom: 1.25rem;
    align-self: center;
}

.form-btn {
    background: var(--gold-dark);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    align-self: center;
}

.form-btn:hover {
    background: var(--gold-dark-hover);
}

.form-btn:active {
    transform: scale(0.98);
}

/* === Responsive === */
@media (max-width: 600px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .page-caption {
        font-size: 1.4rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .logo-header {
        margin-top: 3.5rem;
    }

    .featured-img-wrap {
        width: 280px;
        height: 190px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
