/**
 * LK Tocantins — Main Design System & CSS Components
 * Author: Iury Landin
 * Version: 1.2.0
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
    /* Brand Colors - Cerrado Heritage System */
    --lk-primary: #7f5700;
    --lk-primary-hover: #604100;
    --lk-primary-container: #f2a900;
    --lk-secondary: #0e5bbb;
    --lk-secondary-hover: #00316d;
    --lk-tertiary: #735c00;
    --lk-gold: #D4AF37;
    --lk-gold-dark: #B8962D;

    /* Surface & Background Neutral Tokens */
    --lk-surface: #fbf9f4;
    --lk-surface-bright: #fbf9f4;
    --lk-surface-container: #f0eee9;
    --lk-surface-low: #f5f3ee;
    --lk-surface-lowest: #ffffff;
    --lk-surface-high: #eae8e3;
    
    /* Text Tokens */
    --lk-on-surface: #1b1c19;
    --lk-on-surface-variant: #514533;
    --lk-outline: #847560;
    --lk-outline-variant: #d6c4ac;

    /* Layout & Spacing */
    --lk-container-max: 1280px;
    --lk-gutter: 24px;
    --lk-section-gap: 90px;
    --lk-radius: 8px;
    --lk-radius-lg: 16px;
    --lk-radius-full: 9999px;

    /* Typography */
    --font-serif: 'Libre Caslon Text', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--lk-surface);
    color: var(--lk-on-surface);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* Typography Classes */
.font-display-lg, h1 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.font-headline-md, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
}

.font-label-caps {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.text-glow {
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.text-primary { color: var(--lk-primary); }
.text-secondary { color: var(--lk-secondary); }
.text-gold { color: var(--lk-gold); }
.text-on-variant { color: var(--lk-on-surface-variant); }

.capim-texture {
    background-image: radial-gradient(#d4af37 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    opacity: 0.1;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Layout Components */
.lk-container {
    width: 100%;
    max-width: var(--lk-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.lk-section {
    padding-top: var(--lk-section-gap);
    padding-bottom: var(--lk-section-gap);
}

/* Header & Navigation */
.lk-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(251, 249, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(214, 196, 172, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Adjust fixed header when WordPress admin bar is present */
body.admin-bar .lk-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .lk-header {
        top: 46px;
    }
}

.lk-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background-color: rgba(251, 249, 244, 0.98);
}

.lk-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.lk-logo {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--lk-secondary);
}

.lk-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.lk-nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--lk-on-surface-variant);
    padding-bottom: 2px;
    position: relative;
}

.lk-nav-link:hover, .lk-nav-link.active {
    color: var(--lk-primary);
    font-weight: 700;
}

.lk-nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--lk-primary);
    border-radius: 2px;
}

/* Button Styles */
.lk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--lk-radius-full);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lk-btn-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #B8962D 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.lk-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
    filter: brightness(1.05);
}

.lk-btn-primary {
    background-color: var(--lk-primary);
    color: #ffffff;
}

.lk-btn-primary:hover {
    background-color: var(--lk-primary-hover);
    transform: translateY(-2px);
}

.lk-btn-secondary {
    background-color: var(--lk-secondary);
    color: #ffffff;
}

.lk-btn-secondary:hover {
    background-color: var(--lk-secondary-hover);
    transform: translateY(-2px);
}

.lk-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.lk-btn-outline:hover {
    background-color: #ffffff;
    color: var(--lk-secondary);
}

/* Hero Section */
.lk-hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.lk-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.lk-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lk-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 60%, var(--lk-surface) 100%);
}

.lk-hero-content {
    position: relative;
    z-index: 10;
    color: #ffffff;
    max-width: 720px;
}

.lk-hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffffff;
}

@media (min-width: 768px) {
    .lk-hero-title {
        font-size: 64px;
    }
}

/* Product & Guia Cards Grid */
.lk-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .lk-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .lk-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Guia Card Component for Listing Archive */
.lk-guia-card {
    background-color: var(--lk-surface-lowest);
    border-radius: var(--lk-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(214, 196, 172, 0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lk-guia-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.lk-guia-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--lk-surface-container);
}

.lk-guia-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.lk-guia-card:hover .lk-guia-card-thumb img {
    transform: scale(1.06);
}

.lk-guia-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* Bento Grid System for Guia LP */
.lk-bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .lk-bento-grid {
        grid-template-columns: repeat(12, 1fr);
    }
    .lk-bento-col-12, .lk-bento-12 { grid-column: span 12; }
    .lk-bento-col-8, .lk-bento-8   { grid-column: span 8; }
    .lk-bento-col-7, .lk-bento-7   { grid-column: span 7; }
    .lk-bento-col-6, .lk-bento-6   { grid-column: span 6; }
    .lk-bento-col-5, .lk-bento-5   { grid-column: span 5; }
    .lk-bento-col-4, .lk-bento-4   { grid-column: span 4; }
}

.lk-bento-card {
    position: relative;
    border-radius: var(--lk-radius-lg);
    overflow: hidden;
    background-color: var(--lk-surface-lowest);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.lk-bento-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.lk-bento-card:hover .lk-bento-card-bg {
    transform: scale(1.05);
}

.lk-bento-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.lk-bento-card-content {
    position: relative;
    z-index: 2;
    padding: 28px;
    color: #ffffff;
}

/* Floating Action Button (FAB) */
.lk-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    background: linear-gradient(135deg, #D4AF37 0%, #B8962D 100%);
    color: #ffffff;
    padding: 16px;
    border-radius: var(--lk-radius-full);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lk-fab:hover {
    transform: scale(1.05);
    padding-right: 28px;
}

.lk-fab-text {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 700;
    font-size: 14px;
    transition: max-width 0.4s ease;
}

.lk-fab:hover .lk-fab-text {
    max-width: 150px;
}

/* Category Filter Pills */
.lk-filter-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.lk-pill {
    padding: 10px 24px;
    border-radius: var(--lk-radius-full);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    background-color: var(--lk-surface-container);
    color: var(--lk-on-surface-variant);
    transition: all 0.3s ease;
}

.lk-pill:hover, .lk-pill.active {
    background-color: var(--lk-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(127, 87, 0, 0.3);
}

/* Footer */
.lk-footer {
    background-color: var(--lk-surface-container);
    border-top: 1px solid var(--lk-outline-variant);
    padding-top: 80px;
    padding-bottom: 60px;
}

/* Mobile Navigation */
.lk-mobile-toggle {
    display: none;
    font-size: 28px;
    color: var(--lk-secondary);
}

@media (max-width: 767px) {
    .lk-nav-links {
        display: none;
    }
    .lk-mobile-toggle {
        display: block;
    }
    .lk-mobile-menu {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 24px;
        background-color: var(--lk-surface);
        border-bottom: 1px solid var(--lk-outline-variant);
    }
}
