/* ======================================== */
/* HISTORY SECTION - WARM THEME */
/* ======================================== */

.history-section {
    background: linear-gradient(135deg, #e8dcc8 0%, #f5efe6 100%);
    min-height: 100vh;
    padding: 80px 0;
    position: relative;
}

/* Decorative Elements */
.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.history-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ======================================== */
/* HEADER STYLES */
/* ======================================== */

.text-accent {
    color: #8B6B4A;
    letter-spacing: 3px;
    font-size: 14px;
    position: relative;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
}

.text-accent::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #8B6B4A;
    margin: 8px auto 0;
}

.header-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #8B6B4A, #C49A6C);
    margin-top: 20px;
    position: relative;
    border-radius: 2px;
}

.header-line::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: linear-gradient(to right, #C49A6C, #E8B86D);
    left: 85px;
    border-radius: 2px;
}

/* ======================================== */
/* MAIN TITLE */
/* ======================================== */

.history-main-title {
    color: #4A3228;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.history-main-title span {
    color: #8B6B4A;
    position: relative;
}

.history-main-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(139, 115, 85, 0.25);
    border-radius: 10px;
}

/* ======================================== */
/* IMAGE STYLES */
/* ======================================== */

.history-image-wrapper {
    position: relative;
    width: 100%;
}

.history-frame {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    border: 2px solid #8B6B4A;
    box-shadow: 0 20px 40px rgba(139, 115, 85, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(139, 115, 85, 0.25);
}

.history-frame img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    background-color: #f5efe6;
}

.image-caption {
    background: linear-gradient(to top, rgba(74, 50, 40, 0.95), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #ffffff;
    padding: 20px 25px;
}

.image-caption small {
    font-size: 15px;
    letter-spacing: 2px;
    font-weight: 500;
    text-transform: uppercase;
    color: #E8B86D;
}

/* ======================================== */
/* CONTENT STYLES */
/* ======================================== */

.history-content {
    padding: 10px 0;
}

.history-content p {
    color: #5A4A3A;
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 22px;
}

.history-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: #4A3228;
    border-bottom: 2px solid rgba(139, 115, 85, 0.15);
    padding-bottom: 15px;
}

/* ======================================== */
/* FIRST LETTER DROP CAP */
/* ======================================== */

.history-content p:first-of-type::first-letter {
    font-size: 3em;
    color: #8B6B4A;
    float: left;
    margin-right: 8px;
    line-height: 1;
    font-weight: bold;
}

/* ======================================== */
/* QUOTE BOX */
/* ======================================== */

.founder-quote {
    background: rgba(139, 115, 85, 0.08);
    border-left: 5px solid #8B6B4A;
    border-radius: 8px;
    padding: 20px 30px;
    margin: 25px 0;
    transition: background 0.3s ease;
}

.founder-quote:hover {
    background: rgba(139, 115, 85, 0.12);
}

.quote-icon {
    display: block;
    margin-bottom: 10px;
    font-size: 2.5rem;
    color: #8B6B4A;
    line-height: 1;
}

.founder-quote p {
    font-size: 20px;
    font-weight: 500;
    color: #4A3228;
    font-style: italic;
    margin-bottom: 10px;
}

.quote-author {
    color: #6B5544;
    font-size: 1rem;
    font-weight: 600;
    font-style: normal;
    display: block;
    margin-top: 5px;
}

/* ======================================== */
/* BUTTONS */
/* ======================================== */

.btn-history {
    background: linear-gradient(135deg, #8B6B4A 0%, #A8825A 100%);
    color: #ffffff;
    border: 2px solid #8B6B4A;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.25);
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-history:hover {
    background: linear-gradient(135deg, #6B5544 0%, #8B6B4A 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 115, 85, 0.35);
    border-color: #6B5544;
    text-decoration: none;
}

/* ======================================== */
/* RESPONSIVE */
/* ======================================== */

@media (max-width: 992px) {
    .history-main-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .history-section {
        padding: 40px 0;
    }

    .history-main-title {
        font-size: 2.2rem;
    }

    .history-frame img {
        max-height: 300px;
    }

    .history-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .history-content .lead {
        font-size: 1.1rem;
    }

    .founder-quote p {
        font-size: 17px;
    }

    .founder-quote {
        padding: 15px 20px;
    }

    .history-content {
        padding: 20px 0;
    }
}

@media (max-width: 576px) {
    .history-section {
        padding: 30px 15px;
    }

    .history-main-title {
        font-size: 1.8rem;
    }

    .history-frame img {
        max-height: 250px;
    }

    .history-content p {
        font-size: 14px;
    }

    .founder-quote p {
        font-size: 15px;
    }

    .image-caption {
        padding: 12px 18px;
    }

    .image-caption small {
        font-size: 12px;
    }

    .btn-history {
        padding: 10px 25px;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }

    .history-content p:first-of-type::first-letter {
        font-size: 2.5em;
    }
}

/* ======================================== */
/* DARK MODE */
/* ======================================== */

@media (prefers-color-scheme: dark) {
    .history-section {
        background: linear-gradient(135deg, #2A1F18 0%, #3D2D22 100%);
    }

    .history-main-title {
        color: #F5E6D3;
    }

    .history-main-title span {
        color: #C49A6C;
    }

    .text-accent {
        color: #C49A6C;
    }

    .text-accent::after {
        background: #C49A6C;
    }

    .history-content p {
        color: #D4C5B5;
    }

    .history-content .lead {
        color: #F5E6D3;
        border-bottom-color: rgba(196, 154, 108, 0.15);
    }

    .history-frame {
        border-color: #6B5544;
        background: #2A1F18;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    .history-frame:hover {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    }

    .image-caption {
        background: linear-gradient(to top, rgba(42, 31, 24, 0.95), transparent);
    }

    .image-caption small {
        color: #E8B86D;
    }

    .founder-quote {
        background: rgba(196, 154, 108, 0.08);
        border-left-color: #C49A6C;
    }

    .founder-quote:hover {
        background: rgba(196, 154, 108, 0.12);
    }

    .founder-quote p {
        color: #F5E6D3;
    }

    .quote-author {
        color: #E8B86D;
    }

    .quote-icon {
        color: #C49A6C;
    }

    .history-content p:first-of-type::first-letter {
        color: #C49A6C;
    }

    .btn-history {
        background: linear-gradient(135deg, #6B5544 0%, #8B6B4A 100%);
        border-color: #6B5544;
    }

    .btn-history:hover {
        background: linear-gradient(135deg, #8B6B4A 0%, #C49A6C 100%);
        border-color: #8B6B4A;
    }

    .history-section::before,
    .history-section::after {
        background: radial-gradient(circle, rgba(196, 154, 108, 0.04) 0%, transparent 70%);
    }

    .header-line {
        background: linear-gradient(to right, #8B6B4A, #C49A6C);
    }

    .header-line::after {
        background: linear-gradient(to right, #C49A6C, #E8B86D);
    }
}

/* ======================================== */
/* ROOT VARIABLES */
/* ======================================== */

:root {
    --history-primary: #8B6B4A;
    --history-primary-light: #A8825A;
    --history-primary-lighter: #C49A6C;
    --history-primary-dark: #6B5544;
    --history-primary-darker: #4A3228;
    --history-gold: #E8B86D;
    --history-bg-start: #e8dcc8;
    --history-bg-end: #f5efe6;
}