/*
Theme Name: AutoZinq Theme
Theme URI: https://autozinq.com
Author: AutoZinq
Author URI: https://autozinq.com
Description: Custom WordPress theme for AutoZinq - 24/7 AI Voice Agent for HVAC Businesses.
Version: 1.0
License: Gnu General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, hvac, ai
Text Domain: autozinq
*/

/* 
   AutoZinq - Premium HVAC AI Voice Agent
   Main Stylesheet
*/

:root {
    /* Colors */
    --color-primary: #0E2A47;
    /* Mediterranean Blue */
    --color-primary-dark: #071626;
    --color-accent: #14B8A6;
    /* Teal */
    --color-accent-hover: #0D9488;
    --color-text-main: #1E293B;
    --color-text-muted: #64748B;
    --color-text-light: #F8FAFC;
    --color-bg-body: #F8FAFC;
    --color-white: #FFFFFF;
    --color-border: #E2E8F0;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-container: 1200px;
    --spacing-section: 6rem;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--spacing-section) 0;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

.text-light {
    color: var(--color-text-light);
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-light {
    background-color: #F1F5F9;
    /* Slate-100 */
}

.bg-accent {
    background-color: var(--color-accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(14, 42, 71, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.03em;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
}

.nav-link:hover {
    color: var(--color-accent);
}

/* WordPress Menu Compatibility */
.nav-menu li {
    display: inline-block;
}

.nav-menu li a {
    font-weight: 500;
    color: var(--color-text-main);
}

.nav-menu li a:hover {
    color: var(--color-accent);
}

/* Button style for 'Book a Demo' if it's a menu item class 'btn-primary' added via WP Admin */
.nav-menu li.btn-primary a {
    color: white;
}

.nav-menu li.btn-primary:hover a {
    color: white;
}



.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        transition: 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        height: 100vh;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        display: block;
        font-size: 1.2rem;
    }
}

/* Button style for 'Book a Demo' - Ensure text is white */
/* Button style for 'Book a Demo' - Ensure text is white */
/* Cover both cases: class on li (WP Menu) or class on a to match fallback */
.nav-menu li.btn-primary a,
.nav-menu li a.btn-primary {
    color: #FFFFFF !important;
    /* Force white text */
}

.nav-menu li.btn-primary:hover a,
.nav-menu li a.btn-primary:hover {
    color: #FFFFFF !important;
}

/* Calendar Placement Fix */
.calendar-placeholder {
    background: #F8FAFC;
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    margin-top: 2rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}



/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 4rem 0 2rem;
}

.feature-grid-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    width: 100%;
    /* Ensure full width */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    opacity: 0.8;
    margin-top: 1rem;
}

.footer-links h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Hero Section Specifics */
/* Premium Hero Section with Animated Gradient Mesh */
.hero-section {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 8rem;
    overflow: hidden;
    background-color: #F8FAFC;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%,
            rgba(14, 42, 71, 0.08) 0%,
            rgba(20, 184, 166, 0.08) 25%,
            rgba(255, 255, 255, 0) 50%);
    animation: rotateBackground 60s linear infinite;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(60px);
    z-index: 0;
    animation: floatBreath 10s ease-in-out infinite;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes floatBreath {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-primary);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(14, 42, 71, 0.08);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transform: translateZ(0);
    /* Hardware acceleration */
}

.hero-subhead {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Base Utility for Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.problem-card .icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.text-danger {
    color: #EF4444;
}

/* Solutions Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-list li i {
    margin-top: 0.25rem;
    /* Optical alignment with text cap height */
    flex-shrink: 0;
}

/* Mockup UI - Premium Glassmorphism Mobile Style */
.mockup-ui {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    /* More rounded for mobile feel */
    box-shadow:
        0 50px 100px -20px rgba(14, 42, 71, 0.25),
        0 30px 60px -30px rgba(0, 0, 0, 0.3),
        inset 0 -2px 6px rgba(0, 0, 0, 0.05);
    /* Inner depth */
    border: 8px solid #FFFFFF;
    /* Bezel */
    overflow: hidden;
    max-width: 380px;
    /* Mobile width */
    margin: 0 auto;
    position: relative;
}

/* Screen reflection glare */
.mockup-ui::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 40%);
    pointer-events: none;
    z-index: 10;
}

.mockup-header {
    background: rgba(248, 250, 252, 0.95);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #CBD5E1;
}

.dot:nth-child(1) {
    background: #FF5F56;
}

.dot:nth-child(2) {
    background: #FFBD2E;
}

.dot:nth-child(3) {
    background: #27C93F;
}

/* Phone Receiver/Notch simplified */
.mockup-notch {
    width: 80px;
    height: 6px;
    background: #E2E8F0;
    border-radius: 10px;
}

.mockup-body {
    padding: 1.5rem;
    background: linear-gradient(to bottom, #F8FAFC, #FFFFFF);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 450px;
    /* Fixed height for scroll appearance */
    overflow: hidden;
}

.chat-bubble {
    padding: 1rem 1.25rem;
    border-radius: 18px;
    font-size: 0.95rem;
    max-width: 85%;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    opacity: 0;
    transform: translateY(20px);
    animation: messagePopIn 0.5s ease-out forwards;
}

.chat-bubble.ai {
    background: #F1F5F9;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    color: var(--color-text-main);
    animation-delay: 1s;
    /* Appeared after 1s */
}

.chat-bubble.user {
    background: var(--color-primary);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    box-shadow: 0 4px 6px rgba(14, 42, 71, 0.15);
    animation-delay: 2.5s;
    /* Appeared after 2.5s */
}

/* Third bubble (AI response) */
.chat-bubble.ai-2 {
    background: #F1F5F9;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    color: var(--color-text-main);
    animation-delay: 4s;
    /* Appeared after 4s */
}

@keyframes messagePopIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing Indicator Container */
.chat-bubble.typing-indicator {
    background: #F1F5F9;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    color: var(--color-text-muted);
    width: fit-content;
    padding: 1rem;
    position: absolute;
    /* Take out of flow to swap with real message */
    bottom: 1.5rem;
    /* Position where next msg goes */
    left: 1.5rem;
    opacity: 0;
    animation: typingShowHide 2s forwards;
    animation-delay: 2.5s;
    /* Starts after user msg */
}

@keyframes typingShowHide {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(0);
    }
}

/* Typing Indicator Animation */
.typing-dots {
    display: inline-flex;
    gap: 4px;
    padding: 0 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.6;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* How It Works Steps */
.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    color: var(--color-white);
}

.step-item {
    background: rgba(255, 255, 255, 0.05);
    /* very subtle white overlay */
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.step-number {
    background: var(--color-accent);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.step-item h3 {
    color: white;
    margin-bottom: 1rem;
}

/* Trust Section */
.logo-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.8;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.trust-badge i {
    font-size: 2rem;
    color: var(--color-primary);
}

/* CTA */
.cta-section {
    color: white;
    background-color: var(--color-accent);
    /* fallback */
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
}

.cta-section h2 {
    color: white;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive tweaks for new sections */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* How It Works Page Specifics */
.process-step {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-content {
    flex: 1;
}

.step-visual {
    flex: 1;
    background: #F1F5F9;
    border-radius: 20px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {

    .process-step,
    .process-step:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
    }

    .step-visual {
        width: 100%;
        height: 200px;
    }
}

/* Why AutoZinq Page Specifics */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--color-border);
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    background: #F8FAFC;
    font-weight: 700;
    color: var(--color-primary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {

    /* Typography Scaling */
    html {
        font-size: 14px;
        /* Slightly smaller base font */
    }

    h1 {
        font-size: 2.5rem;
        /* Reduce from 3.5rem */
    }

    h2 {
        font-size: 2rem;
        /* Reduce from 2.5rem */
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Layout Resets */
    .container {
        padding: 0 1.25rem;
        /* Slightly reduced padding */
    }

    .section-padding {
        padding: 4rem 0;
        /* Reduce from 6rem */
    }

    .split-layout,
    .grid-3,
    .footer-grid,
    .feature-grid-large {
        grid-template-columns: 1fr !important;
        /* Force single column */
        gap: 2rem;
    }

    /* Hero Section */
    .hero-section {
        padding-top: 7rem;
        /* Reduce top padding */
        padding-bottom: 3rem;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
        /* Full width buttons on mobile */
    }

    /* Mockup */
    .mockup-ui {
        max-width: 100%;
        /* Ensure it doesn't overflow */
        margin: 2rem auto 0;
    }

    /* Navigation */
    .mobile-toggle {
        display: block;
        z-index: 1001;
        /* Ensure above menu */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        /* Cover full screen */
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: left 0.3s ease-in-out;
        box-shadow: none;
        gap: 2rem;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        display: block;
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.5s ease forwards;
    }

    /* Stagger animations for menu items */
    .nav-menu.active li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-menu li a {
        font-size: 1.5rem;
        font-weight: 600;
        display: block;
        padding: 0.5rem;
    }

    /* Why AutoZinq Table */
    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        /* Prevent wrapping inside cells */
    }

    /* General Image Safety */
    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}