/* =========================================
   WARHORSES - EPIC MEDIEVAL THEME
   ========================================= */

/* --- Variáveis e Reset --- */
:root {
    /* Mapped from frontend/tailwind.config.js where possible */
    --primary-brown: #3e2723;
    --primary-brown-dark: #2c1e13;
    --accent-gold: #d4af37;
    --accent-gold-light: #f1c40f;
    --deep-red: #8b0000;
    --dark-black: #0c0c0c;
    --stone-gray: #4a4a4a;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
    --bg-darker: #080808;

    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-epic: 0 10px 30px rgba(0, 0, 0, 0.7);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lora', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-black);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--accent-gold);
}

.mt-4 {
    margin-top: 2rem;
}

.w-full {
    width: 100%;
}

/* --- Header e Nav --- */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(12, 12, 12, 0.95);
    border-bottom: 2px solid var(--primary-brown);
    padding: 10px 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}

.header-fixed.scrolled {
    padding: 8px 0;
    background: rgba(12, 12, 12, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 45px;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent-gold);
}

.logo-title span {
    color: var(--text-light);
}

.logo-subtitle {
    font-size: 0.6em;
    color: var(--text-muted);
    letter-spacing: 3px;
    font-family: var(--font-heading);
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-menu a:hover {
    color: var(--accent-gold);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* --- Hamburger Menu (Mobile) --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1100;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: var(--accent-gold);
    position: absolute;
    transition: var(--transition-smooth);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* --- Hero Slider --- */
.hero-slider-section {
    height: 100vh;
    min-height: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    width: 100%;
}

.slider-wrapper {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-content {
    text-align: center;
    max-width: 800px;
    padding: 20px;
    z-index: 3;
}

.slide-content h1,
.slide-content h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--accent-gold);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.slide-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 30px;
    color: var(--text-light);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* --- Botões Medieval --- */
.btn-medieval {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(145deg, var(--primary-brown), #1a1a1a);
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-medieval::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    transition: 0.5s;
}

.btn-medieval:hover::before {
    left: 100%;
}

.btn-medieval:hover {
    color: var(--text-light);
    box-shadow: 0 0 20px var(--accent-gold);
    transform: translateY(-3px);
    border-color: var(--accent-gold-light);
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: var(--accent-gold);
    border: 2px solid transparent;
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    border-radius: 50%;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-gold-light);
    border-color: var(--accent-gold);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
    transition: var(--transition-smooth);
}

.dot.active,
.dot:hover {
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

/* --- Lore Section --- */
.title-medieval {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.divider {
    width: 100px;
    height: 3px;
    background: var(--deep-red);
    margin: 20px auto;
    position: relative;
}

.divider::after {
    content: '✦';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-black);
    padding: 0 5px;
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.grid {
    display: grid;
}

.col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gap-3 {
    gap: 30px;
}

.gap-4 {
    gap: 50px;
}

.items-center {
    align-items: center;
}

.lore-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
}

.frame-medieval {
    border: 8px solid var(--primary-brown);
    border-style: groove;
    box-shadow: var(--shadow-epic);
    position: relative;
    overflow: hidden;
}

.frame-medieval::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-gold);
    pointer-events: none;
    z-index: 1;
}

.frame-medieval img {
    width: 100%;
    transition: transform 0.5s ease;
}

.frame-medieval:hover img {
    transform: scale(1.05);
}

/* --- Values Section --- */
.values-section {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--primary-brown-dark);
    border-bottom: 1px solid var(--primary-brown-dark);
}

.value-card {
    background: rgba(43, 24, 16, 0.4);
    padding: 2.5rem;
    border: 1px solid var(--primary-brown);
    text-align: center;
    transition: var(--transition-smooth);
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    background: rgba(43, 24, 16, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
}

.value-card h3 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* --- Horse Cards (Leadership) --- */
.horse-card {
    background: #1a1a1a;
    border: 1px solid var(--primary-brown);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.horse-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.card-image {
    height: 280px;
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid var(--primary-brown);
}

.card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: sepia(0.2) contrast(1.1);
}

.horse-card:hover .card-image img {
    transform: scale(1.1);
    filter: sepia(0) contrast(1.1);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.card-content p {
    margin-bottom: auto;
    font-style: italic;
    font-size: 0.95rem;
}

.stats {
    margin-top: 20px;
    border-top: 1px solid var(--primary-brown);
    padding-top: 15px;
}

.stats li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.stats li span:first-child {
    color: var(--text-muted);
}

.stats li span:last-child {
    color: var(--accent-gold);
    font-weight: bold;
}

/* --- Parallax Section --- */
.parallax-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.subtitle {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.battle-info {
    border: 1px solid var(--primary-brown);
    padding: 20px;
    background: rgba(12, 12, 12, 0.7);
    transition: var(--transition-smooth);
}

.battle-info:hover {
    border-color: var(--accent-gold);
    background: rgba(12, 12, 12, 0.9);
}

.battle-info h3 {
    color: var(--accent-gold);
    margin-bottom: 10px;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    height: 280px;
    border: 2px solid var(--primary-brown);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    border-color: var(--accent-gold);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* --- Contact Section --- */
.contact-wrapper {
    background: #151515;
    padding: 50px;
    border: 1px solid var(--primary-brown);
    border-radius: 10px;
    box-shadow: var(--shadow-epic);
}

.contact-info h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.contact-info p {
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    background: #0a0a0a;
    border: 1px solid var(--stone-gray);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

input:focus,
textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    background: #121212;
}

#smoke-canvas {
    width: 100%;
    height: 150px;
    margin-top: 20px;
    background: transparent;
    border-top: 1px solid var(--primary-brown-dark);
}

/* --- Footer --- */
.footer-medieval {
    background: #080808;
    padding: 60px 0;
    border-top: 3px solid var(--deep-red);
}

.social-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links a:hover {
    color: var(--accent-gold);
}

/* --- Animations (Scroll Reveal) --- */
.scroll-reveal {
    opacity: 0;
    transition: all 1s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1) !important;
}

.slide-left {
    transform: translateX(-50px);
}

.slide-right {
    transform: translateX(50px);
}

.fade-in {
    transform: translateY(30px);
}

.scale-up {
    transform: scale(0.9);
}

/* --- Slider Keyframes --- */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide.active .reveal {
    animation: reveal 1s forwards;
}

.slide.active p.reveal {
    animation-delay: 0.3s;
}

.slide.active a.reveal {
    animation-delay: 0.6s;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .col-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .slide-content h2 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #0c0c0c;
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-smooth);
        border-left: 2px solid var(--accent-gold);
        z-index: 1050;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        height: 100%;
        justify-content: center;
        gap: 40px;
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    .col-2,
    .col-3 {
        grid-template-columns: 1fr;
    }

    .header-container {
        padding: 0 20px;
    }
    
    .section-padding {
        padding: 60px 0;
    }

    .contact-wrapper {
        padding: 25px;
    }

    /* Fix header height overlap on mobile if needed */
    .hero-slider-section {
        height: 80vh; 
    }
    
    .title-medieval {
        font-size: 2rem;
    }
}