/*
Theme Name: LexLogic
Theme URI: https://lexlogic-software.com
Description: Custom child theme for LexLogic - AI/KI training platform for law firms. Built on GeneratePress with Alpine.js for interactive components.
Author: LexLogic Software GmbH
Author URI: https://lexlogic-software.com
Template: generatepress
Version: 1.0.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lexlogic
Tags: woocommerce, training, ai, legal-tech
*/

/*
===========================================
LexLogic Theme Stylesheet
===========================================
Version: 1.0.0
Design Basis: /Design/screen_home_light.png
Architecture: GeneratePress Child Theme + Alpine.js
===========================================
*/

/* ===================================
   CSS Custom Properties (Design Tokens)
   =================================== */
:root {
    /* Force light color scheme - prevents iOS dark mode from affecting the site */
    color-scheme: light;

    /* Colors - From Design HTML (code.html) */
    --color-primary: #00113F;
    /* Very Dark Navy - Header/Footer/Text */
    --color-secondary: #12B8F4;
    /* Cyan/Blue - Hover states */
    --color-tertiary: #096CEE;
    /* Blue - CTA Buttons/Links */
    --color-bg: #F5F6F8;
    /* Light Gray Background */
    --color-text: #00113F;
    /* Dark Navy Text */
    --color-text-muted: #5A647D;
    /* Gray Text */
    --color-white: #ffffff;
    /* White */
    --color-card-bg: #ffffff;
    /* Card Background */
    --color-border: rgba(0, 17, 63, 0.1);
    /* Border color with opacity */
    --page-title: #258FF3;

    /* Typography - Manrope Font */
    --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-bold: 700;

    /* Font Sizes */
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-h1: 48px;
    --font-size-h2: 36px;
    --font-size-h3: 28px;
    --font-size-h4: 24px;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px;
    --card-gap: 24px;
    --button-padding: 12px 32px;

    /* Transitions */
    --transition-base: 0.3s ease;

    /* Shadows */
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);

    /* GeneratePress Variable Overrides */
    /* Map GeneratePress variables to our design tokens */
    --base-font-color: var(--color-text);
    --base-font-size: var(--font-size-base);
    --base-line-height: 1.6;
    --global-color-primary: var(--color-primary);
    --accent-color: var(--color-tertiary);
    --link-color: var(--color-tertiary);
    --link-color-hover: var(--color-secondary);
}

/* ===================================
   Base Styles
   =================================== */
body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--color-bg) !important;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--font-size-h1);
}

/* Match the Über uns page title styling on the service template hero */
/* Match the Über uns page title styling on the service template hero */
.page-template-page-service h1,
.page-template-template-contact h1.entry-title,
.page-template-template-ueber-uns h1.entry-title,
.page:not(.home) .entry-title {
    font-size: 35px !important;
    /* Force override Tailwind classes if present */
    color: var(--page-title);
    line-height: 1.2;
}

/* Global Layout for Content Pages (Contact, Über Uns, Standard) */
.page-template-template-contact .content-area,
.page-template-template-ueber-uns .content-area,
.page:not(.home) .content-area {
    max-width: 1100px !important;
}

.page-template-template-contact .site-main,
.page-template-template-ueber-uns .site-main,
.page:not(.home) .site-main {
    max-width: 1100px !important;
    width: 100% !important;
}

.page-template-template-contact article,
.page-template-template-ueber-uns article,
.page:not(.home) article,
.page:not(.home) .inside-article {
    background: var(--color-white);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

/* Responsive adjustments for global layout */
@media (max-width: 768px) {

    .page-template-template-contact article,
    .page-template-template-ueber-uns article,
    .page:not(.home) article,
    .page:not(.home) .inside-article {
        padding: 24px;
    }

    .page-template-template-contact h1.entry-title,
    .page-template-template-ueber-uns h1.entry-title,
    .page:not(.home) .entry-title {
        font-size: 36px !important;
        line-height: 42px;
        margin-bottom: 24px;
    }
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

h4 {
    font-size: var(--font-size-h4);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Buttons
   =================================== */
.btn,
.button,
.wp-block-button__link {
    display: inline-block;
    padding: var(--button-padding);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary,
.button-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover,
.button-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===================================
   Cards
   =================================== */
.card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: var(--section-padding) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-large);
    margin-bottom: 48px;
}

/* ===================================
   Responsive Utilities
   =================================== */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 32px;
        --font-size-h2: 28px;
        --font-size-h3: 24px;
        --section-padding: 48px;
    }
}

/* ===================================
   Content Layout - Center Content on All Screens
   =================================== */

/* Hide sidebar - we don't need it */
.sidebar,
.widget-area.sidebar {
    display: none;
}

/* Full-width content without sidebar */
body .site .site-content {
    display: block;
}

body .site .site-content .content-area {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

body .site .site-content .content-area .site-main {
    margin: 20px 0;
    padding: 0 20px;
}

/* ===================================
   WordPress Admin Bar Fix
   =================================== */
body.admin-bar {
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        margin-top: 46px;
    }
}

/* ===================================
   PHASE 3: HEADER & NAVIGATION (Updated for custom header.php)
   =================================== */

/* Hide GeneratePress default header - we're using custom header.php */
.site-header {
    display: none;
}

/* Our custom header from header.php uses Tailwind classes directly */
/* Additional styles for compatibility */

/* Logo Styling - for footer logo */
.custom-logo {
    height: auto;
    width: auto;
    transition: opacity var(--transition-base);
}

.custom-logo:hover {
    opacity: 0.8;
}

/* Custom Navigation - uses Tailwind classes in header.php */
/* Additional compatibility styles */

/* Desktop and mobile navigation styles are now handled by Tailwind classes in header.php */

/* Mobile menu styles are handled by Tailwind classes in header.php */
/* Footer specific styles */
footer .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .menu li {
    margin-bottom: 0.5rem;
}

footer .menu a {
    text-decoration: none;
}


/* ===================================
   Component Styles will be added in subsequent phases:
   - Phase 4: Homepage Components
   - Phase 5: WooCommerce Integration
   - Phase 7: Footer
   =================================== */

/* ===================================
   Anti-Spam Honeypot
   =================================== */
.hp-wrap {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: -1;
}