/*
Theme Name: ZenIoT Trust Builder
Description: Problem-focused IoT Sales Leadership WordPress Theme that builds trust and converts prospects through strategic messaging and psychological triggers.
Author: Srivatsa Srinivasan
Version: 2.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zeniot
Tags: business, iot, sales, leadership, conversion, trust-building, one-page, custom-colors, custom-logo, custom-menu, featured-images, flexible-header, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, revenue-focused
*/

/* ==========================================================================
   Reset and Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.aligncenter {
    text-align: center;
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption img {
    width: 100%;
    height: auto;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-top: 0.5em;
    padding: 0.5em;
    background: #f8fafc;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Typography Enhancements
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #2d3748;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

strong, b {
    font-weight: 600;
    color: #2d3748;
}

em, i {
    font-style: italic;
}

a {
    color: #ef4444;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #dc2626;
    text-decoration: underline;
}

/* ==========================================================================
   Accessibility Features
   ========================================================================== */

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 10px 15px;
    background: #ef4444;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    z-index: 100000;
}

/* ==========================================================================
   Trust-Building Components
   ========================================================================== */

/* Problem Callout - Creates urgency and identifies pain */
.problem-callout {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    animation: pulse-border 3s infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: #ef4444; }
    50% { border-color: #fca5a5; }
}

.problem-stat {
    font-size: 3rem;
    font-weight: 700;
    color: #ef4444;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.problem-text {
    font-size: 1.2rem;
    color: #fed7d7;
    font-weight: 500;
}

/* Credibility Indicators */
.credibility-proof {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.proof-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.proof-item:hover {
    transform: scale(1.05);
}

.proof-number {
    font-size: 2rem;
    font-weight: 700;
    color: #4ade80;
    display: block;
    text-shadow: 0 2px 4px rgba(74, 222, 128, 0.3);
}

.proof-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Trust Icons */
.trust-icon, .solution-icon, .problem-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-card:hover .trust-icon,
.solution-card:hover .solution-icon,
.problem-card:hover .problem-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Social Proof Elements */
.testimonial {
    background: #f8fafc;
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    border-left: 4px solid #10b981;
    position: relative;
    overflow: hidden;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: #10b981;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-content {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #2d3748;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: #4a5568;
}

.testimonial-role {
    font-size: 0.9rem;
    color: #718096;
}

/* ==========================================================================
   Conversion-Focused Elements
   ========================================================================== */

/* Problem Impact Boxes - Creates urgency */
.problem-impact {
    background: #fef2f2;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    color: #991b1b;
    font-size: 0.9rem;
    border-left: 3px solid #ef4444;
    margin-top: 15px;
}

/* Solution Outcome Boxes - Shows value */
.solution-outcome {
    background: #f0fdf4;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    color: #065f46;
    font-size: 0.9rem;
    border-left: 3px solid #10b981;
    margin-top: 15px;
}

/* Call-to-Action Buttons */
.cta-primary, .cta-secondary {
    display: inline-block;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.cta-primary:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    color: white;
    text-decoration: none;
}

.cta-secondary {
    background: white;
    color: #ef4444;
    border: 2px solid #ef4444;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-secondary:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
    text-decoration: none;
}

/* Button Loading State */
.cta-primary:disabled, .cta-secondary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   Card Components
   ========================================================================== */

.problem-card, .trust-card, .solution-card, .proof-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.problem-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    border-left: 4px solid #ef4444;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.1);
}

.solution-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    border-left: 4px solid #10b981;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

.trust-card {
    text-align: center;
    padding: 40px 20px;
    transition: transform 0.3s ease;
}

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

.proof-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 40px;
    border-left: 4px solid #4ade80;
    text-align: center;
    transition: all 0.3s ease;
}

.proof-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
}

/* ==========================================================================
   Form Styling
   ========================================================================== */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Form Validation States */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #fca5a5;
    background: rgba(248, 113, 113, 0.1);
}

.form-group input.success,
.form-group textarea.success,
.form-group select.success {
    border-color: #86efac;
    background: rgba(74, 222, 128, 0.1);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
    text-decoration: none;
}

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

.nav-links a {
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ef4444;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #ef4444;
    text-decoration: none;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #2d3748;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 30px 0 20px;
    line-height: 1.2;
    color: white;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero .tagline {
    font-style: italic;
    font-size: 1.1rem;
    margin: 20px auto;
    max-width: 500px;
    opacity: 0.85;
    font-weight: 500;
}

/* Section Backgrounds */
.problems {
    background: #fef2f2;
}

.trust-building {
    background: white;
}

.solutions {
    background: #f0fdf4;
}

.proof-section {
    background: #1a202c;
    color: white;
}

.contact {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    text-align: center;
}

/* ==========================================================================
   Grid Layouts
   ========================================================================== */

.problems-grid, .solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.proof-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ==========================================================================
   Animations and Micro-interactions
   ========================================================================== */

/* Scroll animations will be handled by JavaScript */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects */
.problem-card, .solution-card, .trust-card, .proof-card {
    transform-origin: center;
}

/* Loading states */
.loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #ef4444;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==========================================================================
   Notifications and Alerts
   ========================================================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
    border-left: 4px solid #10b981;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #10b981;
    color: #065f46;
    background: #f0fdf4;
}

.notification-error {
    border-left-color: #ef4444;
    color: #7f1d1d;
    background: #fef2f2;
}

.notification-warning {
    border-left-color: #f59e0b;
    color: #92400e;
    background: #fffbeb;
}

/* ==========================================================================
   WordPress Specific Styles
   ========================================================================== */

/* WordPress admin bar compensation */
body.admin-bar .nav {
    top: 32px;
}

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

/* WordPress comment styles */
.comments-area {
    margin-top: 2em;
    padding: 2em 0;
    border-top: 1px solid #e2e8f0;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 2em;
    padding: 1.5em;
    background: #f8fafc;
    border-radius: 8px;
}

/* WordPress form styles */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    max-width: 100%;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Contact Form 7 Compatibility
   ========================================================================== */

.wpcf7 {
    margin: 2em 0;
}

.wpcf7-form {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2em;
    border-radius: 15px;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 1em;
}

.wpcf7-form-control {
    width: 100%;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.wpcf7-submit {
    background: white;
    color: #ef4444;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .problem-stat {
        font-size: 2.5rem;
    }
    
    .credibility-proof {
        gap: 30px;
    }
    
    .proof-number {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .problems-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .proof-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .problem-card,
    .solution-card {
        padding: 30px 20px;
    }
    
    .trust-card {
        padding: 30px 15px;
    }
    
    .proof-card {
        padding: 30px 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .cta-primary,
    .cta-secondary {
        padding: 15px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .problem-stat {
        font-size: 2rem;
    }
    
    .proof-number {
        font-size: 1.3rem;
    }
    
    .credibility-proof {
        flex-direction: column;
        gap: 20px;
    }
    
    .problem-callout {
        padding: 20px;
    }
    
    .testimonial {
        padding: 25px 20px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .nav,
    .contact-form,
    .cta-primary,
    .cta-secondary {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero,
    .case-studies,
    .contact {
        background: white !important;
        color: black !important;
    }
    
    .hero::before {
        display: none;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* ==========================================================================
   High Contrast and Accessibility
   ========================================================================== */

@media (prefers-contrast: high) {
    .hero {
        background: #000080 !important;
    }
    
    .trust-icon,
    .solution-icon {
        background: #000080 !important;
    }
    
    .cta-primary,
    .cta-secondary {
        border: 2px solid currentColor;
    }
    
    .problem-callout {
        border-width: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero::before {
        animation: none;
    }
    
    .problem-callout {
        animation: none;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --card-bg: #2d2d2d;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .trust-building {
        background-color: #252525;
    }
    
    .problem-card,
    .solution-card {
        background-color: var(--card-bg);
        color: var(--text-color);
    }
}

/* ==========================================================================
   Performance Optimizations
   ========================================================================== */

.problem-card,
.solution-card,
.trust-card,
.proof-card {
    will-change: transform;
}

.hero::before {
    will-change: transform;
}

/* GPU acceleration for smooth animations */
.cta-primary,
.cta-secondary,
.nav {
    transform: translateZ(0);
    backface-visibility: hidden;
}