/*
 Theme Name:   Logic Talk AI
 Theme URI:    https://logictalk.ai
 Description:  GeneratePress child theme for Logic Talk AI
 Author:       Logic Talk AI LLC
 Author URI:   https://logictalk.ai
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  logictalk
*/

/* ============================================
   DESIGN SYSTEM — Logic Talk AI
   Colors, typography, spacing, components
   ============================================ */

/* ----- CSS Custom Properties ----- */
:root {
    --color-navy: #1e3a5f;
    --color-blue: #2563eb;
    --color-blue-hover: #1d4ed8;
    --color-white: #ffffff;
    --color-light-gray: #f8fafc;
    --color-slate: #64748b;
    --color-dark-slate: #334155;
    --color-border: #e2e8f0;
    --color-shadow: rgba(0, 0, 0, 0.1);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-body: 1.6;
    --line-height-heading: 1.2;

    --max-width: 1200px;
    --section-padding: 80px;
    --section-padding-mobile: 48px;
    --card-gap: 24px;
    --border-radius: 8px;
}

/* ----- Global Reset / Base ----- */
body {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    color: var(--color-slate);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----- Typography ----- */
h1, h2, h3, h4 {
    font-family: var(--font-family);
    color: var(--color-navy);
    line-height: var(--line-height-heading);
    margin-bottom: 16px;
}

h1 {
    font-size: 48px;
    font-weight: var(--font-weight-bold);
}

h2 {
    font-size: 36px;
    font-weight: var(--font-weight-bold);
}

h3 {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
}

p {
    margin-bottom: 16px;
    color: var(--color-slate);
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-blue-hover);
}

/* ----- Layout ----- */
.site-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.lt-section {
    padding: var(--section-padding) 0;
}

.lt-section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section background alternation */
.lt-section-white {
    background-color: var(--color-white);
}

.lt-section-gray {
    background-color: var(--color-light-gray);
}

.lt-section-navy {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.lt-section-navy h2,
.lt-section-navy h3,
.lt-section-navy p {
    color: var(--color-white);
}

/* ----- Header ----- */
.site-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .inside-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Header CTA button */
.header-cta .wp-block-button__link,
.header-cta a {
    background-color: var(--color-blue);
    color: var(--color-white) !important;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    font-size: 15px;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.header-cta .wp-block-button__link:hover,
.header-cta a:hover {
    background-color: var(--color-blue-hover);
}

/* Navigation */
.main-navigation a {
    color: var(--color-navy);
    font-weight: var(--font-weight-regular);
    font-size: 16px;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--color-blue);
}

/* ----- Buttons ----- */
.lt-btn-primary,
.wp-block-button.is-style-lt-primary .wp-block-button__link {
    background-color: var(--color-blue);
    color: var(--color-white);
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    font-size: 18px;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    transition: background-color 0.2s ease;
}

.lt-btn-primary:hover,
.wp-block-button.is-style-lt-primary .wp-block-button__link:hover {
    background-color: var(--color-blue-hover);
    color: var(--color-white);
}

.lt-btn-secondary,
.wp-block-button.is-style-lt-secondary .wp-block-button__link {
    background-color: var(--color-white);
    color: var(--color-blue);
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    font-size: 18px;
    border: 2px solid var(--color-blue);
    cursor: pointer;
    display: inline-block;
    text-align: center;
    transition: all 0.2s ease;
}

.lt-btn-secondary:hover,
.wp-block-button.is-style-lt-secondary .wp-block-button__link:hover {
    background-color: var(--color-blue);
    color: var(--color-white);
}

/* Navy section buttons (white on navy bg) */
.lt-section-navy .lt-btn-primary,
.lt-section-navy .wp-block-button__link {
    background-color: var(--color-white);
    color: var(--color-navy);
}

.lt-section-navy .lt-btn-primary:hover,
.lt-section-navy .wp-block-button__link:hover {
    background-color: var(--color-light-gray);
    color: var(--color-navy);
}

/* ----- Cards ----- */
.lt-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: 0 1px 3px var(--color-shadow);
    transition: box-shadow 0.2s ease;
}

.lt-card:hover {
    box-shadow: 0 4px 12px var(--color-shadow);
}

.lt-card h3 {
    margin-bottom: 12px;
}

.lt-card p {
    margin-bottom: 16px;
}

.lt-card .lt-price {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--color-navy);
    margin-bottom: 16px;
}

/* Card grid */
.lt-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap);
    margin-top: 32px;
}

/* ----- Hero Section ----- */
.lt-hero {
    text-align: center;
    padding: 96px 24px 80px;
}

.lt-hero h1 {
    max-width: 800px;
    margin: 0 auto 20px;
}

.lt-hero .lt-subhead {
    font-size: 20px;
    color: var(--color-slate);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

.lt-hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----- Service Blocks ----- */
.lt-service-block {
    padding: var(--section-padding) 0;
}

.lt-service-block h2 {
    margin-bottom: 16px;
}

.lt-service-block .lt-answer-first {
    font-size: 19px;
    line-height: 1.6;
    color: var(--color-dark-slate);
    margin-bottom: 32px;
}

.lt-deliverables {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.lt-deliverables li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--color-slate);
}

.lt-deliverables li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-blue);
    font-weight: var(--font-weight-bold);
}

/* ----- FAQ Section ----- */
.lt-faq {
    margin-top: 40px;
    border-top: 1px solid var(--color-border);
    padding-top: 32px;
}

.lt-faq h3 {
    margin-bottom: 24px;
}

.lt-faq-item {
    margin-bottom: 24px;
}

.lt-faq-item dt {
    font-weight: var(--font-weight-semibold);
    color: var(--color-navy);
    margin-bottom: 8px;
    font-size: 18px;
}

.lt-faq-item dd {
    margin: 0;
    color: var(--color-slate);
    line-height: var(--line-height-body);
}

/* ----- Comparison Table (Revenue Signal) ----- */
.lt-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.lt-comparison-table th,
.lt-comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.lt-comparison-table th {
    background-color: var(--color-navy);
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
}

.lt-comparison-table tr:nth-child(even) td {
    background-color: var(--color-light-gray);
}

/* ----- Forms ----- */
.lt-form input[type="text"],
.lt-form input[type="email"],
.lt-form textarea,
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--color-dark-slate);
    background-color: var(--color-white);
    transition: border-color 0.2s ease;
}

.lt-form input:focus,
.lt-form textarea:focus,
.wpforms-form input:focus,
.wpforms-form textarea:focus {
    border-color: var(--color-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.lt-form textarea,
.wpforms-form textarea {
    min-height: 120px;
    resize: vertical;
}

.lt-form label,
.wpforms-form .wpforms-field-label {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark-slate);
    margin-bottom: 6px;
    font-size: 15px;
}

.lt-form .lt-form-group {
    margin-bottom: 20px;
}

/* WPForms submit button override */
.wpforms-form button[type="submit"],
.wpforms-form .wpforms-submit {
    background-color: var(--color-blue) !important;
    color: var(--color-white) !important;
    padding: 16px 32px !important;
    border-radius: var(--border-radius) !important;
    font-weight: var(--font-weight-semibold) !important;
    font-size: 18px !important;
    border: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wpforms-form button[type="submit"]:hover,
.wpforms-form .wpforms-submit:hover {
    background-color: var(--color-blue-hover) !important;
}

/* ----- Pillar Cards (Membership) ----- */
.lt-pillar {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}

.lt-pillar:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.lt-pillar h3 {
    color: var(--color-navy);
    margin-bottom: 8px;
}

/* ----- Pricing Block ----- */
.lt-pricing {
    text-align: center;
    padding: 48px 24px;
}

.lt-pricing h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.lt-pricing .lt-guarantee {
    font-size: 17px;
    color: var(--color-slate);
    max-width: 600px;
    margin: 0 auto 32px;
    font-style: italic;
}

/* ----- Values Grid (About) ----- */
.lt-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 32px;
}

.lt-value-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.lt-value-item p {
    font-size: 16px;
}

/* ----- Contact Info ----- */
.lt-contact-info {
    margin-top: 32px;
    padding: 24px;
    background-color: var(--color-light-gray);
    border-radius: var(--border-radius);
}

.lt-contact-info p {
    margin-bottom: 8px;
    font-size: 16px;
}

.lt-contact-info strong {
    color: var(--color-navy);
}

/* ----- Calendly Embed ----- */
.lt-calendly-embed {
    min-height: 650px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* ----- Footer ----- */
.site-footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 48px 0 24px;
}

.site-footer .inside-footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--color-white);
}

.lt-footer-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    font-style: italic;
}

.lt-footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.lt-footer-nav a {
    font-size: 15px;
}

.lt-footer-legal {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.lt-footer-legal a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.lt-footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
}

/* ----- Last Updated Line ----- */
.lt-last-updated {
    font-size: 14px;
    color: var(--color-slate);
    padding: 16px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    margin-top: 40px;
}

/* ============================================
   RESPONSIVE — Mobile First Overrides
   ============================================ */

/* Tablet: 768px and below */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    .lt-section {
        padding: var(--section-padding-mobile) 0;
    }

    .lt-hero {
        padding: 64px 20px 48px;
    }

    .lt-hero .lt-subhead {
        font-size: 18px;
    }

    .lt-card-grid {
        grid-template-columns: 1fr;
    }

    .lt-values-grid {
        grid-template-columns: 1fr;
    }

    .lt-comparison-table {
        font-size: 15px;
    }

    .lt-comparison-table th,
    .lt-comparison-table td {
        padding: 12px 14px;
    }

    .lt-pricing h2 {
        font-size: 36px;
    }

    .lt-footer-nav {
        flex-direction: column;
        gap: 12px;
    }
}

/* Small mobile: 375px and below */
@media (max-width: 375px) {
    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 24px;
    }

    .lt-hero {
        padding: 48px 16px 40px;
    }

    .lt-hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .lt-btn-primary,
    .lt-btn-secondary {
        width: 100%;
        text-align: center;
    }

    .lt-section-inner {
        padding: 0 16px;
    }
}

/* Large desktop: 1440px+ */
@media (min-width: 1440px) {
    .lt-hero h1 {
        font-size: 56px;
    }
}

/* ----- Mobile Sticky CTA Bar ----- */
@media (max-width: 768px) {
    .lt-mobile-sticky-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        padding: 12px 16px;
        border-top: 1px solid var(--color-border);
        box-shadow: 0 -2px 8px var(--color-shadow);
        z-index: 99;
        text-align: center;
    }

    .lt-mobile-sticky-cta .lt-btn-primary {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
    }

    /* Add padding to body so footer content isn't hidden behind sticky bar */
    body {
        padding-bottom: 72px;
    }
}

/* Hide sticky bar on desktop */
@media (min-width: 769px) {
    .lt-mobile-sticky-cta {
        display: none;
    }
}

/* ============================================
   GENERATEPRESS LAYOUT OVERRIDES
   Full-width sections on all pages
   ============================================ */

.page .inside-article {
    padding: 0;
    max-width: none;
}

.page .entry-content {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Hide GeneratePress auto-generated page title (custom hero H1 used) */
.page .entry-header {
    display: none;
}

/* ----- Print Styles ----- */
@media print {
    .site-header,
    .site-footer,
    .lt-mobile-sticky-cta,
    .lt-btn-primary,
    .lt-btn-secondary {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }
}
