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

:root {
    /* Logo Palette - Premium Parchment Theme */
    --bg-body: #fef3ce; /* Logo background cream */
    --bg-card: #fffdf5;
    --bg-header: rgba(254, 243, 206, 0.95);
    
    --color-primary: #d8aa1e; /* Logo Gold */
    --color-primary-dark: #8f6830;
    --color-accent-red: #d90f0e; /* Logo Red */
    --color-accent-blue: #60758b; /* Logo Blue */
    
    --color-text-dark: #1b1308;
    --color-text-main: #2a1e0e;
    --color-text-muted: #7a6a4a;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Outfit', sans-serif;
    
    --max-width: 1100px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* BASE */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Texture Pattern */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/parchment.png");
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, .site-title {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
}

/* HEADER */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    background: var(--bg-header);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
}

.site-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.main-nav ul {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-family: var(--font-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.main-nav a:hover, .main-nav a.active {
    color: var(--color-accent-red);
    border-bottom-color: var(--color-accent-red);
}

/* SECTIONS - Compact Layout */
.section {
    padding: 3.5rem 1.5rem;
    display: flex;
    justify-content: center;
}

.section-inner {
    width: 100%;
    max-width: var(--max-width);
}

/* HERO - Original Banner Optimized */
.hero {
    padding: 12rem 1.5rem; /* Tall padding to show more of the image */
    text-align: center;
    background: 
        linear-gradient(to bottom, rgba(254, 243, 206, 0.3), rgba(254, 243, 206, 0.4)),
        url('/assets/img/hero_banner.png') center/cover no-repeat;
    min-height: 600px; /* High min-height to reduce horizontal cropping */
}

.hero-overline {
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--color-accent-red);
    margin-bottom: 0.5rem;
    display: block;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin: 0;
    color: var(--color-text-dark);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 2.5rem;
    color: var(--color-text-muted);
}

.hero-footer-text {
    margin-top: 2rem;
    font-size: 0.85rem;
    font-family: var(--font-accent);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-family: var(--font-accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-accent-red);
    color: #fff;
}

.btn-primary:hover {
    background: #b00c0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 15, 14, 0.2);
}

.btn-secondary {
    background: transparent;
    border-color: var(--color-primary-dark);
    color: var(--color-primary-dark);
}

.btn-secondary:hover {
    background: rgba(143, 104, 48, 0.05);
    transform: translateY(-2px);
}

/* TRIBE LAYOUT (POPOLI PAGE) - Tighter */
.tribe-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.section-reverse .tribe-layout {
    direction: rtl;
}

.section-reverse .tribe-content {
    direction: ltr;
}

.tribe-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-accent-red);
}

.historical-map-card {
    margin: 0;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid rgba(143, 104, 48, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.historical-map-card img {
    width: 100%;
    height: auto;
    display: block;
}

.historical-map-card figcaption {
    margin-top: 0.75rem;
    font-family: var(--font-accent);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* CARDS - Tighter */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(216, 170, 30, 0.2);
    border-left: 4px solid var(--color-primary);
    transition: var(--transition);
}

.card:hover {
    border-left-color: var(--color-accent-red);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary-dark);
}

/* CONTACT FORM - Compact */
.contact-form {
    max-width: 600px;
    background: #fff;
    padding: 2rem;
    border: 1px solid rgba(143, 104, 48, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-row label {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.form-row input, .form-row select, .form-row textarea {
    padding: 0.65rem;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

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

/* FOOTER - Compact */
.site-footer {
    padding: 2.5rem 1.5rem;
    background: #f4edd5;
    border-top: 2px solid var(--color-primary);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-social a {
    color: var(--color-accent-blue);
    text-decoration: none;
    font-weight: 700;
    margin-left: 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tribe-layout {
        grid-template-columns: 1fr;
    }
    .section-reverse .tribe-layout {
        direction: ltr;
    }
}

/* Animations Trigger */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-inner > * {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}
.section-inner > *:nth-child(2) { animation-delay: 0.1s; }
.section-inner > *:nth-child(3) { animation-delay: 0.2s; }
.section-inner > *:nth-child(4) { animation-delay: 0.3s; }
