/*
Theme Name:   Astra Child - AskBillRingle
Theme URI:    https://askbillringle.com
Description:  Custom child theme for AskBillRingle.com - migrated from Thrive Theme Builder
Author:       Bill Ringle
Author URI:   https://askbillringle.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* ==========================================================================
   Thrive-Equivalent Typography & Colors
   Ported from Thrive Theme Builder for migration consistency
   ========================================================================== */

:root {
    /* Thrive Color Palette - Updated to match production */
    --abr-primary: #2F8AE4;
    --abr-primary-hover: #1E73D3;
    --abr-secondary: #0C1115;
    --abr-text: #6A6B6C;
    --abr-text-light: #89898A;
    --abr-heading: #0C1115;
    --abr-link: #2F8AE4;
    --abr-link-hover: #1E73D3;

    /* Background Colors */
    --abr-bg-white: #FFFFFF;
    --abr-bg-light: #F8F9FA;
    --abr-bg-section: #F5F5F5;

    /* Typography - Google Fonts */
    --abr-heading-font: 'Literata', Georgia, serif;
    --abr-body-font: 'Muli', 'Open Sans', sans-serif;
    --abr-heading-weight: 600;
    --abr-body-size: 18px;
    --abr-body-line-height: 1.7;
}

/* ==========================================================================
   Base Typography (matching Thrive defaults)
   ========================================================================== */

body {
    font-family: var(--abr-body-font);
    color: var(--abr-text);
    font-size: var(--abr-body-size);
    line-height: var(--abr-body-line-height);
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title {
    font-family: var(--abr-heading-font);
    color: var(--abr-heading);
    font-weight: var(--abr-heading-weight);
    line-height: 1.3;
    letter-spacing: normal;
    margin: 0;
    padding: 0;
}

h1, .entry-title {
    font-size: 43px;
    line-height: 1.5em;
    margin-bottom: 20px;
}

h2 {
    font-size: 34px;
    line-height: 1.4em;
    margin-bottom: 18px;
}

h3 {
    font-size: 24px;
    line-height: 1.4em;
    margin-bottom: 15px;
}

h4 {
    font-size: 20px;
    line-height: 1.6em;
    margin-bottom: 12px;
}

h5 {
    font-size: 18px;
    line-height: 1.75em;
    margin-bottom: 10px;
}

h6 {
    font-size: 16px;
    line-height: 1.75em;
    margin-bottom: 10px;
}

/* Paragraphs */
p {
    margin: 0;
    padding: 5px 0 10px 0;
    color: var(--abr-text);
    font-size: var(--abr-body-size);
    line-height: 1.75;
}

/* Links */
a {
    color: var(--abr-link);
    text-decoration: none;
}

a:hover {
    color: var(--abr-link-hover);
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Typography (Thrive breakpoints)
   ========================================================================== */

@media (max-width: 1023px) {
    h1, .entry-title {
        font-size: 36px;
    }
    h2 {
        font-size: 28px;
    }
    h3 {
        font-size: 22px;
    }
    body, p {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    h1, .entry-title {
        font-size: 28px;
    }
    h2 {
        font-size: 24px;
    }
    h3 {
        font-size: 20px;
    }
    body, p {
        font-size: 16px;
    }
}

/* ==========================================================================
   Gutenberg Block Enhancements
   ========================================================================== */

/* Group blocks with background (Thrive content box equivalent) */
.wp-block-group.has-background {
    padding: 40px;
    border-radius: 10px;
}

/* Buttons - Primary (Thrive style) */
.wp-block-button__link,
.ast-button,
button,
input[type="submit"],
.button,
a.button {
    background-color: var(--abr-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 100px;
    padding: 18px 30px;
    font-family: var(--abr-body-font);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.wp-block-button__link:hover,
.ast-button:hover,
button:hover,
input[type="submit"]:hover,
.button:hover,
a.button:hover {
    background-color: var(--abr-primary-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 138, 228, 0.3);
}

/* Outline Button Variant */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 2px solid var(--abr-primary);
    color: var(--abr-primary);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--abr-primary);
    color: #FFFFFF;
}

/* Columns spacing */
.wp-block-columns {
    gap: 40px;
}

.wp-block-column {
    padding: 20px;
}

/* Image styling */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Image captions */
.wp-block-image figcaption {
    color: var(--abr-text);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
}

/* ==========================================================================
   Forms (Thrive style)
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
    background-color: var(--abr-bg-light);
    border: 1px solid rgba(1, 52, 203, 0.08);
    border-radius: 56px;
    padding: 18px 20px;
    font-size: 14px;
    font-family: var(--abr-body-font);
    color: var(--abr-secondary);
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: 0 0 3px rgba(1, 52, 203, 0.08) inset;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: rgba(47, 138, 229, 0.5);
    box-shadow: 0 0 5px rgba(47, 138, 229, 0.2);
    outline: none;
}

textarea {
    border-radius: 20px;
    min-height: 150px;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: var(--abr-secondary);
    margin-bottom: 8px;
    display: block;
}

/* ==========================================================================
   Content Boxes / Cards
   ========================================================================== */

.content-box,
.wp-block-group.is-style-boxed,
.card {
    background-color: var(--abr-bg-white);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.09);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover,
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Blockquotes / Testimonials
   ========================================================================== */

blockquote,
.wp-block-quote {
    border-left: 3px solid var(--abr-primary);
    padding: 20px 40px;
    margin: 30px 0;
    font-style: italic;
    font-size: 20px;
    color: var(--abr-text);
    background-color: var(--abr-bg-light);
}

blockquote cite,
.wp-block-quote cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: 600;
    color: var(--abr-secondary);
}

/* ==========================================================================
   Blog Archive / Card Layout
   ========================================================================== */

/* Blog grid cards */
.ast-article-post {
    background: var(--abr-bg-white);
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.ast-article-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.ast-article-post .post-content {
    padding: 25px;
}

.ast-article-post .entry-title {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.ast-article-post .entry-title a {
    color: var(--abr-heading);
}

.ast-article-post .entry-title a:hover {
    color: var(--abr-primary);
}

.ast-article-post .entry-meta {
    font-size: 14px;
    color: var(--abr-text-light);
    margin-bottom: 15px;
}

.ast-article-post .entry-meta a {
    color: var(--abr-text-light);
}

.ast-article-post .ast-excerpt-container {
    color: var(--abr-text);
    font-size: 16px;
    line-height: 1.6;
}

/* Featured image in cards */
.ast-article-post .post-thumb {
    margin-bottom: 0;
}

.ast-article-post .post-thumb img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* Read more link */
.ast-article-post .read-more a {
    color: var(--abr-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.ast-article-post .read-more a:hover {
    color: var(--abr-primary-hover);
}

/* Blog grid layout */
.ast-archive-post .ast-grid-common-col {
    display: flex;
    flex-direction: column;
}

/* Category labels */
.ast-article-post .cat-links a {
    background: var(--abr-primary);
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Page-Specific Layouts
   ========================================================================== */

/* Full-width page builder pages */
.ast-page-builder-template .entry-content {
    max-width: 100%;
    padding: 0;
}

.ast-page-builder-template .ast-container {
    max-width: 100%;
    padding: 0;
}

/* Boxed content pages */
.ast-separate-container .entry-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
}

/* Left sidebar pages */
.ast-left-sidebar #primary {
    order: 2;
}

.ast-left-sidebar #secondary {
    order: 1;
    padding-right: 40px;
}

/* Sidebar navigation menu styling */
#secondary .widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#secondary .widget_nav_menu li {
    border-bottom: 1px solid var(--abr-bg-light);
}

#secondary .widget_nav_menu li:last-child {
    border-bottom: none;
}

#secondary .widget_nav_menu a {
    display: block;
    padding: 12px 15px;
    color: var(--abr-text);
    transition: all 0.3s ease;
}

#secondary .widget_nav_menu a:hover,
#secondary .widget_nav_menu .current-menu-item a {
    background: var(--abr-bg-light);
    color: var(--abr-primary);
    padding-left: 20px;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 1023px) {
    .ast-article-post .entry-title {
        font-size: 20px;
    }

    .ast-separate-container .entry-content {
        padding: 30px;
    }

    .ast-left-sidebar #secondary {
        padding-right: 20px;
    }
}

@media (max-width: 767px) {
    .ast-article-post .post-content {
        padding: 20px;
    }

    .ast-article-post .entry-title {
        font-size: 18px;
    }

    .ast-separate-container .entry-content {
        padding: 20px;
    }

    .ast-left-sidebar #primary,
    .ast-left-sidebar #secondary {
        order: unset;
        padding: 0;
    }

    #secondary .widget_nav_menu {
        margin-bottom: 30px;
    }
}
