/*
Theme Name: Martech WP Theme
Theme URI: https://martech.com
Author: Digital Marketing
Author URI: https://martech.com
Description: A performance marketing theme for SME, optimized for Elementor Pro.
Version: 1.0.0
Text Domain: martech
*/

/* Base Settings & Variables */
:root {
    --primary: hsl(28, 95%, 55%);
    /* Bright Orange */
    --primary-dark: hsl(22, 100%, 45%);
    --primary-light: hsl(35, 100%, 85%);
    --accent: hsl(15, 90%, 60%);
    --bg-light: hsl(35, 30%, 98%);
    /* Cream/White */
    --text-main: hsl(220, 15%, 20%);
    --text-muted: hsl(220, 10%, 45%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(230, 100, 30, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

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

.text-green {
    color: #00B900 !important;
}

/* LINE color */
.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--text-main);
}

.text-white {
    color: #fff;
}

.highlight {
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--primary-light);
    z-index: -1;
    border-radius: 4px;
}

.highlight-white {
    color: #fff;
    position: relative;
    z-index: 1;
}

.highlight-white::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--primary);
    z-index: -1;
    border-radius: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-black {
    background-color: #111;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-black:hover {
    background-color: #333;
    transform: translateY(-2px);
    color: #fff;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-giant {
    padding: 20px 48px;
    font-size: 1.25rem;
    border-radius: 60px;
}

.animate-pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 185, 0, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(0, 185, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 185, 0, 0);
    }
}

/* Glassmorphism */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    border-radius: 20px;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 60px;
    background: radial-gradient(circle at top right, var(--bg-light) 0%, #fff 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
    margin-bottom: 20px;
}

.benefit-list {
    list-style: none;
    margin: 30px 0;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 500;
}

.benefit-list i {
    color: var(--primary);
    font-size: 1.3rem;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.avatars {
    display: flex;
    align-items: center;
}

.avatars img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -10px;
}

.avatars img:first-child {
    margin-left: 0;
}

.avatar-more {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 2px solid #fff;
    margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
}

.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 4px solid #fff;
    background-color: #eaeaea;
    /* Placeholder color before load */
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    animation: float 4s ease-in-out infinite;
    z-index: 10;
}

.float-card i {
    font-size: 1.8rem;
}

.float-card strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-main);
}

.float-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-1 {
    top: 40px;
    left: -30px;
    background: var(--glass-bg);
}

.card-2 {
    bottom: 50px;
    right: -30px;
    background: #fff;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-image-wrapper {
        height: 400px;
        margin-top: 40px;
    }

    .card-1 {
        left: 10px;
    }

    .card-2 {
        right: 10px;
    }
}

/* Trusted By */
.trusted-by {
    padding: 30px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fafafa;
}

.trusted-text {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    color: #ccc;
    font-size: 2.5rem;
}

.logo-grid i {
    transition: var(--transition);
}

.logo-grid i:hover {
    color: var(--text-muted);
}

/* Pain Points */
.section-title {
    margin-bottom: 50px;
}

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

.pain-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.icon-box.warning {
    background-color: #fff3e0;
    color: #ff9800;
}

/* Outcomes */
.outcome-box {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    border-radius: 20px;
    overflow: hidden;
    background: var(--text-main);
    color: #fff;
}

.outcome-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.outcome-content p {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.outcome-image {
    height: 100%;
    min-height: 300px;
}

.outcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #444;
    /* Placeholder */
}

@media (max-width: 768px) {
    .outcome-box {
        grid-template-columns: 1fr;
    }

    .outcome-content {
        padding: 30px;
    }
}

/* Process Timeline */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--primary-light);
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    width: 100%;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 0 0 5px var(--bg-light);
}

.step-content,
.step-image {
    width: 45%;
}

.step-content {
    padding: 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.step-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 16/9;
    object-fit: cover;
    background-color: #ddd;
}

@media (max-width: 768px) {
    .process-timeline::before {
        left: 20px;
    }

    .step-number {
        left: 20px;
    }

    .process-step,
    .process-step:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 60px;
        gap: 20px;
    }

    .step-content,
    .step-image {
        width: 100%;
    }

    .step-number {
        top: 0;
        transform: translate(-50%, 0);
    }
}

/* Services */
.services {
    background: linear-gradient(to bottom, #ffffff, var(--bg-light));
}

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

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-img-wrap {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #eee;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .service-img {
    transform: scale(1.08);
    /* Zoom effect on hover */
}

.service-info {
    padding: 40px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-info h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-desc {
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px dashed #e0e0e0;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

.service-features i {
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 2px;
}

/* Articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.article-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-content h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--text-main);
    transition: color 0.3s;
}

.article-card:hover .article-content h3 {
    color: var(--primary);
}

.article-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-link {
    margin-top: auto;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.article-link i {
    transition: transform 0.3s;
}

.article-link:hover {
    color: var(--primary);
}

.article-link:hover i {
    transform: translateX(4px);
}

/* Portfolio */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.case-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.before-after {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
}

.ba-col {
    flex: 1;
}

.ba-label {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ba-label.before {
    background: #555;
}

.ba-label.after {
    background: var(--primary);
}

.ba-col p {
    color: #ddd;
    font-size: 0.9rem;
    margin: 0;
}

.ba-icon {
    font-size: 1.5rem;
    color: #888;
}

.stats {
    display: flex;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary);
    line-height: 1;
}

.stat-item span {
    font-size: 0.85rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social Proof */
.review-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    position: relative;
}

.quotes-icon {
    font-size: 4rem;
    opacity: 0.1;
    position: absolute;
    top: 20px;
    left: 40px;
}

.review-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 30px;
}

.reviewer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.reviewer strong {
    display: block;
    font-size: 1.1rem;
}

.reviewer span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stars {
    color: #FFB800;
    font-size: 1.2rem;
}

/* Why Us */
.why-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-list {
    list-style: none;
    margin-top: 30px;
}

.why-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.why-list .icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.why-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    object-fit: cover;
    background-color: #ddd;
}

@media (max-width: 768px) {
    .why-wrapper {
        grid-template-columns: 1fr;
    }
}

/* FAQ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.accordion-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.accordion-header i {
    transition: transform 0.3s;
    color: var(--primary);
}

.accordion-header.active {
    background: #fafafa;
}

.accordion-header.active i {
    transform: rotate(45deg);
}

.accordion-body {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion-body.active {
    padding: 20px 25px;
    border-top: 1px solid #eee;
}

/* Final CTA */
.final-cta-content {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 80px 40px;
    color: #fff;
    border-radius: 20px;
}

.final-cta-content h2 {
    margin-bottom: 20px;
}

.final-note {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #fff;
    padding-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    max-width: 400px;
}

.footer-info .logo {
    color: #fff;
    margin-bottom: 20px;
}

.footer-info p {
    color: #aaa;
}

.footer-contact h4 {
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.social-link i {
    font-size: 1.5rem;
}

.social-link:hover {
    color: var(--primary);
}

.social-link i.ph-line-logo {
    color: #00B900;
}

.footer-bottom {
    background: #111;
    padding: 20px 0;
}

.footer-bottom p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #00B900;
    color: #fff;
    padding: 12px 20px 12px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 185, 0, 0.3);
    z-index: 999;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.sticky-cta.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.sticky-cta:hover {
    transform: translateY(-5px) scale(1.05);
    background: #009900;
}

.sticky-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    color: #00B900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.sticky-text {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .sticky-cta {
        bottom: 20px;
        right: 20px;
        padding: 10px;
    }

    .sticky-text {
        display: none;
    }

    .sticky-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
}

/* Utilities */
.mt-3 {
    margin-top: 15px;
}

.mt-5 {
    margin-top: 40px;
}