/*
Theme Name: Ronald Thump – Patriotic AI
Theme URI: https://yvonta.com/
Author: Yvonta
Author URI: https://yvonta.com/
Description: A tremendous WordPress theme featuring a patriotic AI hero with a live chat shortcode. Believe me, the best theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ronald-thump
*/

/* =========================================================
   GOOGLE FONTS
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700;900&family=Roboto+Slab:wght@300;400;700&display=swap');

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: #f1f5f9;
    color: #0f172a;
    font-family: 'Roboto Slab', Georgia, serif;
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', 'Impact', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }

/* =========================================================
   UTILITIES
   ========================================================= */
.thump-gold        { color: #d4af37; }
.thump-red         { color: #b91c1c; }
.thump-blue        { color: #1e3a8a; }
.text-center       { text-align: center; }
.container         { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; }

/* =========================================================
   FLAG ACCENT STRIPE
   ========================================================= */
.flag-accent {
    background-image: linear-gradient(90deg,
        #b91c1c 25%, transparent 25%, transparent 50%,
        #b91c1c 50%, #b91c1c 75%, transparent 75%);
    background-size: 40px 100%;
    height: 6px;
    width: 100%;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-nav {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 72rem;
    margin: 0 auto;
    border-bottom: 1px solid #e2e8f0;
}

.site-nav__brand {
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #1e3a8a;
}

.site-nav__brand span { color: #b91c1c; }

.site-nav__links {
    display: flex;
    gap: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4b5563;
    list-style: none;
}

.site-nav__links a:hover { color: #b91c1c; }

/* =========================================================
   HERO – American Gradient
   ========================================================= */
.hero {
    background: linear-gradient(135deg, #b91c1c 0%, #1e3a8a 100%);
    color: #fff;
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Full-width hero variant — avatar fills edge to edge */
.hero--fullwidth {
    padding: 0;
}

.hero__avatar-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: none;
    display: block;
}

/* Force plugin output to stretch full width */
.hero__avatar-wrap > *,
.hero__avatar-wrap iframe,
.hero__avatar-wrap canvas,
.hero__avatar-wrap video,
.hero__avatar-wrap .avatar-talker-wrap,
.hero__avatar-wrap .avatar_talker_container {
    width: 100% !important;
    max-width: none !important;
    display: block;
}

.hero__star-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
    pointer-events: none;
}

.hero__eyebrow {
    font-family: 'Roboto Slab', serif;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #fde68a;
    margin-bottom: 1rem;
}

.hero__title {
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.hero__subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    font-style: italic;
    max-width: 42rem;
    margin: 0 auto 3rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* =========================================================
   AI CHAT WIDGET  (shortcode: [ronald_thump_chat])
   ========================================================= */
.rt-chat {
    background: #fff;
    border-top: 8px solid #b91c1c;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    max-width: 700px;
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    z-index: 10;
    text-align: left;
}

.rt-chat__header {
    background: linear-gradient(90deg, #1e3a8a, #b91c1c);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rt-chat__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    font-family: 'Oswald', sans-serif;
    color: #1e3a8a;
    flex-shrink: 0;
}

.rt-chat__header-text { line-height: 1.3; }
.rt-chat__header-name { font-family: 'Oswald', sans-serif; font-size: 1.05rem; font-weight: 700; text-transform: uppercase; }
.rt-chat__header-status { font-size: 0.75rem; opacity: 0.8; font-style: italic; }

.rt-chat__messages {
    height: 340px;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8fafc;
    scroll-behavior: smooth;
}

.rt-chat__messages::-webkit-scrollbar { width: 4px; }
.rt-chat__messages::-webkit-scrollbar-thumb { background: #b91c1c; border-radius: 2px; }

.rt-msg {
    display: flex;
    flex-direction: column;
    max-width: 88%;
}

.rt-msg--bot { align-self: flex-start; }
.rt-msg--user { align-self: flex-end; }

.rt-msg__bubble {
    padding: 0.75rem 1rem;
    border-radius: 2px;
    font-size: 0.95rem;
    line-height: 1.55;
}

.rt-msg--bot .rt-msg__bubble {
    background: #fff;
    border-left: 4px solid #b91c1c;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.rt-msg--user .rt-msg__bubble {
    background: #1e3a8a;
    color: #fff;
}

.rt-msg__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.3rem;
}

.rt-msg--user .rt-msg__label { text-align: right; color: #94a3b8; }

.rt-chat__typing {
    display: none;
    align-self: flex-start;
    padding: 0.6rem 1rem;
    background: #fff;
    border-left: 4px solid #b91c1c;
    border-radius: 2px;
    max-width: 88%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.rt-chat__typing.visible { display: flex; align-items: center; gap: 4px; }

.rt-typing-dot {
    width: 7px; height: 7px;
    background: #b91c1c;
    border-radius: 50%;
    animation: rt-bounce 1.2s infinite ease-in-out;
}
.rt-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.rt-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes rt-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.rt-chat__input-area {
    display: flex;
    border-top: 2px solid #e2e8f0;
    background: #fff;
}

.rt-chat__input {
    flex: 1;
    border: none;
    padding: 1rem 1.25rem;
    font-family: 'Roboto Slab', serif;
    font-size: 0.9rem;
    color: #0f172a;
    background: transparent;
    outline: none;
}

.rt-chat__input::placeholder { color: #94a3b8; font-style: italic; }

.rt-chat__send {
    background: #b91c1c;
    color: #fff;
    border: none;
    padding: 0 1.5rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s;
}

.rt-chat__send:hover { background: #991b1b; }

.rt-chat__disclaimer {
    background: #fffbeb;
    border-top: 1px solid #fde68a;
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
    color: #78350f;
    font-style: italic;
    text-align: center;
}

/* =========================================================
   CONTENT CARDS
   ========================================================= */
.thump-card {
    background: #fff;
    border-top: 8px solid #b91c1c;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.08);
    padding: 2.5rem;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.thump-card:hover { transform: translateY(-3px); }

.thump-card h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 4px solid #d4af37;
    display: inline-block;
    padding-bottom: 0.25rem;
}

.thump-card p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 1rem;
}

/* Section layout */
.site-main {
    max-width: 56rem;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: #111827;
    color: #fff;
    text-align: center;
    padding: 4rem 1.5rem;
}

.site-footer__brand {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-footer__tagline {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.site-footer__quote {
    font-style: italic;
    color: #fbbf24;
    font-size: 1rem;
    max-width: 36rem;
    margin: 0 auto;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
    .site-nav__links { display: none; }
    .hero { padding: 3rem 1.25rem; }
    .thump-card { padding: 1.5rem; }
    .rt-chat__messages { height: 260px; }
}

/* =========================================================
   NEWS TICKER
   ========================================================= */
.rt-ticker {
    background: #b91c1c;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 0.6rem 0;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.rt-ticker__track {
    display: inline-block;
    animation: rt-scroll 30s linear infinite;
}

.rt-ticker__track span {
    display: inline-block;
    padding: 0 2.5rem;
}

.rt-ticker__track span:nth-child(odd) { color: #fde68a; }

@keyframes rt-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =========================================================
   STATS BAR
   ========================================================= */
.rt-stats {
    background: #1e3a8a;
    padding: 2.5rem 1.5rem;
}

.rt-stats__grid {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.rt-stats__number {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #d4af37;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.rt-stats__label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
    font-weight: 700;
}

@media (max-width: 640px) {
    .rt-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

/* =========================================================
   CONTENT SECTIONS
   ========================================================= */
.rt-section {
    padding: 5rem 1.5rem;
    background: #f1f5f9;
}

.rt-section--dark {
    background: #0f172a;
}

.rt-section__eyebrow {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #b91c1c;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.rt-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 2rem;
    color: #0f172a;
}

/* =========================================================
   POLICIES
   ========================================================= */
.rt-policies {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rt-policy {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: rgba(255,255,255,0.05);
    border-left: 4px solid #d4af37;
    padding: 1.5rem;
    border-radius: 2px;
}

.rt-policy h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.rt-policy p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.rt-policy__number {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #b91c1c;
    line-height: 1;
    flex-shrink: 0;
    width: 3rem;
    text-align: center;
    opacity: 0.6;
}

/* =========================================================
   TESTIMONIALS / QUOTES
   ========================================================= */
.rt-quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.rt-quote {
    background: #fff;
    border-top: 6px solid #b91c1c;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border-radius: 2px;
    position: relative;
}

.rt-quote::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 5rem;
    color: #e2e8f0;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    line-height: 1;
}

.rt-quote p {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.rt-quote cite {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #b91c1c;
    font-style: normal;
}

/* =========================================================
   CTA BAND
   ========================================================= */
.rt-cta {
    background: linear-gradient(135deg, #b91c1c 0%, #1e3a8a 100%);
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.rt-cta__btn {
    display: inline-block;
    background: #d4af37;
    color: #0f172a;
    font-family: 'Oswald', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 3rem;
    border-radius: 2px;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.rt-cta__btn:hover {
    background: #fbbf24;
    transform: translateY(-2px);
    color: #0f172a;
}
