/* ==========================================================================
   ONE47 OFFICIAL WEBSITE STYLESHEET
   Exact Visual Match + Charter Compliant
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@400;600;700&display=swap');

:root {
    /* EXACT COLORS SAMPLED FROM SUPPLIED IMAGE */
    --img-black: #000000;            /* Header background */
    --img-green-dark: #004d1a;       /* Info Bar background */
    --img-green-btn: #066622;        /* Order Now, Buy Set buttons */
    --img-green-hero: #005916;       /* "ONE47" text in hero */
    --img-red-btn: #cc0000;          /* Explore Manuals button */
    --img-red-flag: #d90000;         /* Flag red stripe */
    --img-green-flag: #006633;       /* Flag green stripe */
    --img-gold: #f1c40f;             /* Active nav, book text */
    --img-white: #ffffff;
    
    /* EXACT BOOK COLORS FROM IMAGE */
    --book-1: #1e4d2b; /* Deep Green */
    --book-2: #1a365d; /* Navy Blue */
    --book-3: #6b3a1c; /* Brown */
    --book-4: #1a4a24; /* Forest Green */
    --book-5: #3b1b4a; /* Purple */
    --book-6: #0f3057; /* Dark Blue */
    --book-7: #8a151b; /* Deep Red */
    --book-8: #111111; /* Black */

    /* TYPOGRAPHY */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6, .nav-links, .btn, .section-title {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.navbar {
    background-color: var(--img-black);
    color: var(--img-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-emblem {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(var(--img-red-btn), var(--img-gold), var(--img-green-dark), var(--img-black));
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inner-emblem {
    width: 100%;
    height: 100%;
    background: var(--img-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--img-black);
    font-size: 20px;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    color: var(--img-white);
}

.logo-text span {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 1px;
    color: #ccc;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--img-white);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a.active {
    color: var(--img-gold);
    border-bottom: 2px solid var(--img-gold);
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: var(--img-gold);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-green { background-color: var(--img-green-btn); color: var(--img-white); }
.btn-red { background-color: var(--img-red-btn); color: var(--img-white); }
.btn-dark { background-color: var(--img-black); color: var(--img-white); border: 1px solid #333; }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    display: flex;
    min-height: 380px;
    position: relative;
    background: var(--img-white);
}

.flag-background {
    position: absolute;
    left: 0; top: 0;
    width: 55%;
    height: 100%;
    overflow: hidden;
    border-right: 4px solid var(--img-white);
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
}

.flag-black {
    background: var(--img-black); 
    height: 33.33%; 
}
.flag-red { 
    background: var(--img-red-flag); 
    height: 33.33%;
}
.flag-green { 
    background: var(--img-green-flag); 
    height: 33.33%;
}

.flag-shield {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: conic-gradient(
        var(--img-red-flag) 0deg 45deg, 
        var(--img-gold) 45deg 90deg, 
        var(--img-green-flag) 90deg 135deg, 
        var(--img-black) 135deg 180deg, 
        var(--img-red-flag) 180deg 225deg, 
        var(--img-gold) 225deg 270deg, 
        var(--img-green-flag) 270deg 315deg, 
        var(--img-black) 315deg 360deg
    );
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.shield-inner {
    width: 100%;
    height: 100%;
    background: var(--img-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 70px;
    color: #b87333;
}

.hero-content {
    position: relative;
    z-index: 10;
    margin-left: 55%;
    padding: 40px;
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--img-white);
}

.hero-content h2 {
    font-size: 72px;
    color: var(--img-green-hero);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.hero-content h3 {
    font-size: 28px;
    color: var(--img-black);
    font-weight: 800;
    line-height: 1.1;
}

.hero-line {
    width: 60px;
    height: 3px;
    background: var(--img-green-hero);
    margin: 15px 0;
}

.hero-content p {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   INFO BAR
   ========================================================================== */
.info-bar {
    background-color: var(--img-green-dark);
    color: var(--img-white);
    display: flex;
    justify-content: space-between;
    padding: 20px 60px;
    min-height: 110px;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 32%;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--img-white);
    color: var(--img-green-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--img-white);
}

.info-text p {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.4;
}

/* ==========================================================================
   VOLUMES / BOOKSHELF
   ========================================================================== */
.volumes-section {
    padding: 40px 20px 0;
    text-align: center;
    background: var(--img-white);
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--img-black);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--img-black);
    border-radius: 50%;
}

.books-scroll-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.books-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    padding: 0 10px;
    min-width: max-content;
}

.book-wrapper {
    flex: 0 0 130px;
    max-width: 140px;
}

.book-cover {
    height: 260px;
    width: 100%;
    position: relative;
    border-radius: 2px 6px 6px 2px;
    box-shadow: 
        inset 6px 0 12px rgba(0,0,0,0.4),
        6px 6px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    color: var(--img-white);
    border: 1px solid rgba(255,255,255,0.1);
}

.book-spine {
    position: absolute;
    left: 0; top: 0;
    width: 10px; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(255,255,255,0.1), rgba(0,0,0,0.2));
}

.book-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    align-items: center;
    text-align: center;
}

.book-cover h5 { 
    font-size: 14px; 
    font-weight: 900; 
    margin-bottom: 5px; 
    color: var(--img-gold);
}

.book-subtitle { 
    font-family: var(--font-body);
    font-size: 7px; 
    font-weight: 600;
    margin-bottom: 15px; 
    line-height: 1.2; 
}

.book-cover h3 { 
    font-size: 32px; 
    font-weight: 400; 
    margin-bottom: 10px;
    font-family: 'Times New Roman', serif;
}

.book-title { 
    font-family: var(--font-body);
    font-size: 8px; 
    font-weight: 700; 
    line-height: 1.3; 
    flex-grow: 1; 
    text-transform: uppercase;
}

.coat-of-arms { 
    font-family: var(--font-body);
    font-size: 7px; 
    font-weight: 700; 
    margin-top: auto; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 5px; 
}

.coat-of-arms i { 
    font-size: 20px; 
    color: var(--img-gold);
}

.shelf-wood {
    height: 25px;
    background: linear-gradient(to bottom, #d4a373, #b57c43);
    width: 100%;
    min-width: 1150px;
    position: relative;
    z-index: 1;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ==========================================================================
   CTA CONTAINER
   ========================================================================== */
.cta-container {
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.full-width { width: 100%; font-size: 18px; padding: 16px; border-radius: 8px; }
.amazon-btn { font-size: 20px; font-weight: 900; }
.amazon-note { font-family: var(--font-body); font-size: 13px; color: #333; margin-top: 5px; font-weight: 600; }

/* ==========================================================================
   FEATURES BAR
   ========================================================================== */
.features-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-top: 1px solid #eee;
    background: var(--img-white);
    max-width: 1400px;
    margin: 0 auto;
}

.feature { display: flex; gap: 15px; align-items: center; }

.feature-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 2px solid var(--img-green-dark);
    display: flex; justify-content: center; align-items: center;
    font-size: 22px; color: var(--img-green-dark);
    flex-shrink: 0;
}

.feature:nth-child(3) .feature-icon {
    border: none; font-size: 40px; width: auto; height: auto;
}

.feature-text h4 { font-size: 11px; font-weight: 800; margin-bottom: 4px; color: var(--img-black); }
.feature-text p { font-family: var(--font-body); font-size: 10px; color: #444; line-height: 1.4; }

.social-footer {
    border-left: 1px solid #ccc; padding-left: 30px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}

.social-footer span { font-size: 12px; font-weight: 800; color: var(--img-black); }
.social-icons { display: flex; gap: 15px; }

.social-icons a {
    color: var(--img-white); width: 28px; height: 28px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%; font-size: 14px; transition: opacity 0.2s;
}
.social-icons a:hover { opacity: 0.8; }
.social-icons a:nth-child(1) { background: #1877f2; }
.social-icons a:nth-child(2) { background: #000; }
.social-icons a:nth-child(3) { background: #e1306c; }
.social-icons a:nth-child(4) { background: #000; }
.social-icons a:nth-child(5) { background: #ff0000; }

/* ==========================================================================
   LIVE CHAT WIDGET
   ========================================================================== */
.chat-widget {
    position: fixed; 
    bottom: 30px; 
    right: 30px;
    display: flex;
    flex-direction: column; 
    align-items: flex-end;
    gap: 15px; 
    z-index: 2000;
}

.chat-bubble {
    background: var(--img-white); padding: 15px 20px;
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative; 
    font-family: var(--font-body);
    font-size: 13px; 
    color: var(--img-black); 
    font-weight: 600;
    border: 1px solid #eee;
}

.chat-bubble strong { 
    color: var(--img-green-dark); 
    font-family: var(--font-heading);
}
.chat-bubble::after {
    content: ''; 
    position: absolute; 
    bottom: -8px; 
    right: 20px;
    border-left: 10px solid transparent; 
    border-right: 10px solid transparent;
    border-top: 10px solid var(--img-white);
}

.close-chat { 
    position: absolute; 
    top: 8px; 
    right: 12px; 
    cursor: pointer; 
    font-size: 18px; 
    color: #999;
}

.chat-btn {
    width: 65px; height: 65px; border-radius: 50%;
    background: var(--img-green-btn); color: var(--img-white);
    border: none; font-size: 28px; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex; justify-content: center; align-items: center;
    position: relative; transition: transform 0.2s;
}
.chat-btn:hover { transform: scale(1.05); }
.chat-btn::after {
    content: ''; position: absolute; top: 0; right: 0;
    width: 14px; height: 14px; background: var(--img-red-btn);
    border-radius: 50%; border: 2px solid var(--img-white);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
    .flag-background { width: 50%; }
    .hero-content { 
        margin-left: 50%; 
        width: 50%; 
    }
    .books-row { justify-content: flex-start; }
}

@media (max-width: 992px) {
    .navbar { flex-direction: column; height: auto; padding: 15px 20px; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero { flex-direction: column; min-height: auto; }
    .flag-background { 
        position: relative; 
        width: 100%; 
        height: 300px; 
        border-right: none; 
        border-bottom: 4px solid var(--img-white);
    }
    .hero-content {
        margin-left: 0; 
        width: 100%; 
        text-align: center; 
        align-items: center; 
        padding: 40px 20px;
    }
    .hero-buttons { flex-direction: column; width: 100%; }
    .info-bar { flex-direction: column; height: auto; gap: 20px; padding: 30px; }
    .info-item { width: 100%; text-align: center; flex-direction: column; }
    .features-bar { flex-wrap: wrap; gap: 20px; justify-content: center; }
    .social-footer { border-left: none; padding-left: 0; border-top: 1px solid #ccc; padding-top: 20px; width: 100%; }
}

@media (max-width: 768px) {
    .hero-content h2 { font-size: 50px; }
    .hero-content h3 { font-size: 22px; }
    .chat-widget { bottom: 20px; right: 20px; }
    .chat-btn { width: 55px; height: 55px; font-size: 24px; }
}