/*
Theme Name: Motion Mark
Theme URI: https://motionmark.agency
Author: Motion Mark Agency
Author URI: https://motionmark.agency
Description: A modern, vibrant digital agency WordPress theme with bold typography and colorful service cards. Perfect for digital agencies, marketing firms, and creative studios.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: motionmark
Tags: one-column, two-columns, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, theme-options, threaded-comments, translation-ready
*/

/*
 * Table of Contents:
 * 1. CSS Reset & Base Styles
 * 2. Typography
 * 3. Layout & Structure
 * 4. Header & Navigation
 * 5. Hero Section
 * 6. Services Section
 * 7. Working Method Section
 * 8. Testimonials Section
 * 9. FAQ Section
 * 10. Footer
 * 11. Utilities
 * 12. Responsive Design
 */

/* ===================================
   1. CSS Reset & Base Styles
   =================================== */

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

:root {
    /* Colors from Motion Mark */
    --color-navy: #0a1e2e;
    --color-orange: #f79329;
    --color-red: #f54e3f;
    --color-green: #1fb485;
    --color-purple: #9a8de2;
    --color-yellow: #e8f03e;
    --color-white: #fbfbfb;
    --color-light-gray: #c8cfdb;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Impact', 'Arial Black', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    --radius-xl: 3rem;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-navy);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

/* ===================================
   2. Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 8rem);
}

h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
}

p {
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-red);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ===================================
   3. Layout & Structure
   =================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

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

/* ===================================
   4. Header & Navigation
   =================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-navy);
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-white);
    text-transform: uppercase;
}

.site-logo span {
    display: block;
    line-height: 1;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--color-white);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--color-green);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* CTA Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--color-white);
    color: var(--color-navy);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn svg,
.btn img {
    width: 1rem;
    height: 1rem;
}

.btn-dark {
    background-color: var(--color-navy);
    color: var(--color-white);
}

/* ===================================
   5. Hero Section
   =================================== */

.hero-section {
    background-color: var(--color-navy);
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-badge p {
    color: var(--color-white);
    font-size: 1rem;
    margin: 0;
}

.hero-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.hero-title h1 {
    color: var(--color-white);
    margin-bottom: 0;
}

.hero-title .highlight-purple {
    color: var(--color-purple);
}

.hero-title .highlight-orange {
    color: var(--color-orange);
}

.hero-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--color-white);
    font-size: 1.1rem;
}

.hero-cta {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    background-color: var(--color-green);
    padding: 2rem;
    border-radius: var(--radius-xl);
    position: relative;
    transition: transform 0.3s ease;
}

.stat-card:nth-child(2) {
    background-color: var(--color-yellow);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.stat-card .arrow-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 2rem;
    height: 2rem;
}

/* ===================================
   6. Services Section
   =================================== */

.services-section {
    padding: 6rem 0;
}

.services-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: center;
}

.services-intro h2 {
    color: var(--color-navy);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    position: relative;
    transition: transform 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.service-card p {
    color: var(--color-white);
    margin: 0;
    font-size: 1rem;
}

.service-card .arrow-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    align-self: flex-end;
}

/* Service Card Colors */
.service-card:nth-child(1) { background-color: var(--color-orange); }
.service-card:nth-child(2) { background-color: var(--color-purple); }
.service-card:nth-child(3) { background-color: var(--color-red); }
.service-card:nth-child(4) { background-color: var(--color-navy); }
.service-card:nth-child(5) { background-color: var(--color-green); }
.service-card:nth-child(6) { background-color: var(--color-orange); }
.service-card:nth-child(7) { background-color: var(--color-purple); }
.service-card:nth-child(8) { background-color: var(--color-red); }
.service-card:nth-child(9) { background-color: var(--color-navy); }

/* ===================================
   7. Working Method Section
   =================================== */

.working-method-section {
    padding: 6rem 0;
}

.method-steps {
    margin-top: 4rem;
}

.method-step {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 2rem;
    padding: 3rem 0;
    border-bottom: 2px solid var(--color-light-gray);
    align-items: center;
}

.method-step:last-child {
    border-bottom: none;
}

.step-number {
    font-size: 6rem;
    font-weight: 900;
    color: var(--color-navy);
    line-height: 1;
}

.step-content h3 {
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.step-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   8. Testimonials Section
   =================================== */

.testimonials-section {
    padding: 6rem 0;
    background-color: #f8f8f8;
}

.testimonials-slider {
    max-width: 1000px;
    margin: 4rem auto;
}

.testimonial-item {
    text-align: center;
}

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

.testimonial-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: none;
    font-family: var(--font-primary);
    font-weight: 700;
}

.testimonial-author {
    font-size: 1rem;
    color: #666;
}

.testimonial-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-nav button {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-navy);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.testimonial-nav button:hover {
    transform: scale(1.1);
}

/* ===================================
   9. FAQ Section
   =================================== */

.faq-section {
    padding: 6rem 0;
}

.faq-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 4rem;
}

.faq-intro h2 {
    margin-bottom: 1rem;
}

.faq-intro p {
    font-size: 1rem;
    line-height: 1.6;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 2px solid var(--color-navy);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f8f8;
}

.faq-question::after {
    content: '+';
    font-size: 2rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
}

/* ===================================
   10. Footer
   =================================== */

.site-footer {
    background-color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-navy);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 1rem;
    color: var(--color-navy);
    margin-bottom: 2rem;
}

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

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-navy);
    color: var(--color-white);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-navy);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-green);
}

.footer-bottom {
    text-align: right;
    padding-top: 2rem;
    border-top: 1px solid var(--color-light-gray);
    color: #999;
    font-size: 0.9rem;
}

/* ===================================
   10.5. Blog & Post Styles
   =================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.blog-post {
    background-color: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.blog-post .post-thumbnail {
    overflow: hidden;
}

.blog-post .post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.blog-post .entry-header,
.blog-post .entry-content,
.blog-post .entry-footer {
    padding: 0 2rem;
}

.blog-post .entry-header {
    padding-top: 2rem;
}

.blog-post .entry-footer {
    padding-bottom: 2rem;
}

.entry-title {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.entry-title a {
    color: var(--color-navy);
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--color-orange);
}

.entry-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-orange);
    font-weight: 600;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-light-gray);
}

.page-title {
    margin-bottom: 0.5rem;
}

.posts-navigation,
.post-navigation {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-light-gray);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background-color: var(--color-orange);
    color: white;
    transform: translateY(-3px);
}

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Comments */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--color-light-gray);
}

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

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: var(--radius-md);
}

.comment-author {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* ===================================
   11. Utilities
   =================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* ===================================
   11.5. Elementor Compatibility
   =================================== */

/* Elementor Full Width */
.elementor-page-content,
.elementor-single-content {
    width: 100%;
}

body.elementor-page #primary,
body.elementor-page .site-main {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

body.elementor-page .container {
    max-width: 100%;
    padding: 0;
}

/* Elementor Section Styling */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1400px;
}

.elementor-widget-heading .elementor-heading-title {
    font-family: var(--font-heading);
}

/* Archive Posts Widget */
.elementor-widget-archive-posts .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

/* Elementor Button Styling */
.elementor-widget-button .elementor-button {
    border-radius: var(--radius-xl);
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.elementor-widget-button .elementor-button:hover {
    transform: translateY(-2px);
}

/* Elementor Color Schemes */
.elementor-widget-text-editor {
    color: inherit;
}

/* Make sure Elementor sections don't overflow */
.elementor-section-wrap {
    overflow-x: hidden;
}

/* Elementor Canvas Template */
body.elementor-template-canvas {
    margin: 0;
    padding: 0;
}

body.elementor-template-canvas .site-header,
body.elementor-template-canvas .site-footer {
    display: none;
}

/* Elementor Archive Page */
.elementor-archive-page .elementor-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

/* Elementor Kit Colors */
.elementor-element {
    --e-global-color-motionmark_navy: #0a1e2e;
    --e-global-color-motionmark_orange: #f79329;
    --e-global-color-motionmark_red: #f54e3f;
    --e-global-color-motionmark_green: #1fb485;
    --e-global-color-motionmark_purple: #9a8de2;
    --e-global-color-motionmark_yellow: #e8f03e;
}

/* Fix Elementor widget spacing */
.elementor-widget-wrap {
    align-items: stretch;
}

/* ===================================
   12. Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .services-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-navy);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }

    .main-navigation.active ul {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .method-step {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-number {
        font-size: 4rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }
}
