/*
Theme Name: HappyMonkey
Author: Migration Bot
Description: Gutenberg-ready theme for HappyMonkey migration.
Version: 0.2
Text Domain: happymonkey
*/

/* 
* AI Automation Website Template - Dark Mode
* Modern and professional dark theme for AI technology companies
*/

/* General Styles */
:root {
    --primary-color: #8b5cf6;
    --secondary-color: #1e293b;
    --dark-color: #0f172a;
    --darker-color: #0a0f1a;
    --light-color: #f8fafc;
    --text-color: #cbd5e1;
    --heading-color: #f1f5f9;
    --accent-color: #a78bfa;
    --card-bg: #1e293b;
    --border-color: #334155;
    --transition: all 0.3s ease;
}

body.dark-mode {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

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

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Bootstrap Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Typography Overrides */
h3,
.h3 {
    color: var(--light-color);
}

.blog-page h5,
.blog-page h6 {
    color: #666;
}

.blog-page .bg-primary h5,
.blog-page .text-white h5 {
    color: #fff !important;
}

/* Blog Specific Styles */
.blog-header-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (min-width: 992px) {
    .blog-header-img {
        max-height: 450px;
        object-fit: cover;
        width: 100%;
    }
}

.btn-outline-light {
    color: var(--light-color);
    border-color: var(--border-color);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

.section-heading {
    margin-bottom: 3rem;
}

.section-heading span {
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    transition: var(--transition);
    background-color: transparent;
}

/* Add dark background for navbar on blog pages or when scrolled */
.navbar.blog-page,
.navbar.scrolled {
    background-color: var(--darker-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--light-color);
    display: flex;
    align-items: center;
}

.navbar-brand span {
    color: var(--primary-color);
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.nav-link {
    color: var(--light-color);
    font-weight: 500;
    margin: 0 0.75rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-contact {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
}

.btn-contact:hover {
    background-color: var(--accent-color);
}

.btn-contact::after {
    display: none;
}

.theme-switch a {
    font-size: 1.25rem;
    color: var(--light-color);
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 15, 26, 0.7);
}

.hero-content {
    background-color: rgba(10, 15, 26, 0.85);
    border-radius: 16px;
    padding: 40px;
    margin: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Clients Section */
.clients {
    padding: 60px 0;
    background-color: var(--dark-color);
    border-bottom: 1px solid var(--border-color);
}

.clients h6 {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 2rem;
}

.client-logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: var(--transition);
    font-weight: 600;
    color: var(--light-color);
}

.client-logo:hover {
    opacity: 1;
}

/* Solutions Section */
.solutions {
    background-color: var(--dark-color);
}

.solution-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.solution-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(139, 92, 246, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.solution-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Features Section */
.features {
    background-color: var(--secondary-color);
}

.feature-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.feature-icon {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    margin-bottom: 0;
}

/* AI Applications Section */
.ai-applications {
    background-color: var(--secondary-color);
    padding: 100px 0;
}

.application-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 35px;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.application-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.application-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(139, 92, 246, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.application-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.application-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.application-card p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.application-features {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
}

.application-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.application-features li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 5px;
    font-size: 0.8rem;
}

/* Use Cases Section */
.use-cases {
    background-color: var(--dark-color);
}

.case-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    margin-bottom: 30px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-content {
    padding: 1.5rem;
}

.case-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.case-content p {
    margin-bottom: 1rem;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.btn-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--secondary-color);
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
    border: 1px solid var(--border-color);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    position: relative;
    padding: 0 1rem;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.testimonial-author h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: var(--light-color);
}

.cta h2 {
    color: var(--light-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.cta .btn-light {
    background-color: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
}

.cta .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Contact Section */
.contact {
    background-color: var(--dark-color);
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin-bottom: 0;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.form-control,
.form-select {
    height: 50px;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--dark-color);
    color: var(--text-color);
}

.form-control::placeholder {
    color: #64748b;
}

textarea.form-control {
    height: auto;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: none;
    background-color: var(--dark-color);
    color: var(--text-color);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* Contact Form 7 */
.wpcf7 {
    width: 100%;
}

.wpcf7 .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wpcf7 p {
    margin-bottom: 0;
}

.wpcf7 label {
    display: block;
    color: var(--text-color);
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--dark-color);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    appearance: none;
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 textarea::placeholder {
    color: #64748b;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 99, 102, 241), 0.15);
    background-color: var(--dark-color);
}

.wpcf7 textarea {
    min-height: 140px;
    resize: vertical;
}

.wpcf7 input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color, var(--primary-color)));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.wpcf7 input[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.wpcf7 input[type="submit"]:active {
    transform: translateY(0);
}

/* CF7 validation & response messages */
.wpcf7 .wpcf7-not-valid-tip {
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
}

.wpcf7 .wpcf7-response-output {
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: none;
}

.wpcf7 .wpcf7-mail-sent-ok {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-aborted {
    background-color: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.wpcf7 .wpcf7-spam-blocked,
.wpcf7 .wpcf7-validation-errors {
    background-color: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--darker-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
}

.footer h4,
.footer h5 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
}

.footer h4 span {
    color: var(--primary-color);
}

.footer-logo-img {
    height: 35px;
    margin-right: 10px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--light-color);
}

.newsletter-form .input-group {
    margin-top: 1rem;
}

.newsletter-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.newsletter-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.copyright {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Legal Pages Styling */
.legal-page {
    padding: 150px 0 80px;
}

.legal-page h1 {
    margin-bottom: 0.5rem;
}

.legal-page .last-updated {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-content {
    margin-bottom: 3rem;
}

.legal-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.35rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content table {
    margin-bottom: 2rem;
    color: var(--text-color);
    border-color: var(--border-color);
}

.legal-content table th {
    background-color: rgba(99, 102, 241, 0.1);
    border-color: var(--border-color);
}

.legal-content table td {
    border-color: var(--border-color);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    z-index: 1000;
    display: none;
    border-top: 1px solid var(--border-color);
}

.cookie-banner p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.cookie-banner a {
    text-decoration: underline;
}

.pt-6 {
    padding-top: 6rem !important;
}

/* Ensure consistent spacing on all pages */
section:first-of-type {
    padding-top: 76px !important;
}

.case-study-page {
    padding-top: 76px !important;
}

/* Blog Post Image Centering */
@media (min-width: 1441px) {
    .blog-post-image-container {
        display: flex;
        justify-content: center;
    }
}

/* Mobile Menu Background Fix */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--darker-color);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border-color);
    }

    .navbar-nav {
        padding: 0.5rem 0;
    }

    .nav-item {
        padding: 0.5rem 0;
    }

    .navbar-toggler {
        border-color: var(--border-color);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25);
    }

    .navbar.navbar-expanded {
        background-color: var(--darker-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero {
        padding: 150px 0 80px;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-content {
        padding: 30px;
        margin: 10px;
    }

    .feature-image {
        margin-bottom: 3rem;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 70px 0;
    }

    .hero {
        padding: 130px 0 60px;
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-content {
        padding: 25px;
        margin: 5px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .contact-form {
        margin-top: 3rem;
    }

    .cta {
        padding: 60px 0;
        text-align: center;
    }

    .cta .text-lg-end {
        text-align: center !important;
        margin-top: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-heading h2 {
        font-size: 1.75rem;
    }
}
