/*
 * Theme Name:   MasGatot Digital
 * Theme URI:    https://masgatot.com
 * Description:  Child theme Hello Elementor untuk website jasa pembuatan website MasGatot Digital. Mulai dari 1 jutaan, profesional & cepat.
 * Author:       MasGatot Digital
 * Author URI:   https://masgatot.com
 * Template:     hello-elementor
 * Version:      1.0.0
 * License:      GNU General Public License v3 or later
 * License URI:  https://www.gnu.org/licenses/gpl-3.0.html
 * Text Domain:  masgatot-digital
 * Tags:         web-agency, jasa-website, elementor
*/

/* ============================================================
   CSS VARIABLES — Brand MasGatot Digital
   ============================================================ */
:root {
    --mg-primary:        #1E40AF;  /* biru tua profesional */
    --mg-primary-light:  #3B82F6;  /* biru terang hover */
    --mg-accent:         #F59E0B;  /* emas — harga & highlight */
    --mg-accent-dark:    #D97706;
    --mg-dark:           #0F172A;  /* hampir hitam */
    --mg-gray:           #64748B;  /* teks sekunder */
    --mg-border:         #E2E8F0;
    --mg-light:          #F1F5F9;  /* bg section terang */
    --mg-white:          #FFFFFF;

    --mg-font-heading:   'Plus Jakarta Sans', 'Poppins', sans-serif;
    --mg-font-body:      'Inter', 'Roboto', sans-serif;

    --mg-radius-sm:      8px;
    --mg-radius:         14px;
    --mg-radius-lg:      20px;
    --mg-shadow:         0 4px 20px rgba(30, 64, 175, 0.10);
    --mg-shadow-hover:   0 10px 36px rgba(30, 64, 175, 0.20);
    --mg-transition:     all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
body {
    font-family: var(--mg-font-body);
    color: var(--mg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
    font-family: var(--mg-font-heading);
    font-weight: 700;
    line-height: 1.25;
}

/* ============================================================
   TOMBOL
   ============================================================ */
.mg-btn,
.elementor-button.mg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--mg-radius-sm);
    font-family: var(--mg-font-heading);
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: var(--mg-transition);
    text-decoration: none;
}

.mg-btn-primary,
.elementor-button.mg-btn-primary {
    background: var(--mg-primary);
    color: var(--mg-white) !important;
    border: 2px solid transparent;
}
.mg-btn-primary:hover,
.elementor-button.mg-btn-primary:hover {
    background: var(--mg-primary-light);
    box-shadow: var(--mg-shadow-hover);
    transform: translateY(-2px);
    color: var(--mg-white) !important;
}

.mg-btn-accent,
.elementor-button.mg-btn-accent {
    background: var(--mg-accent);
    color: var(--mg-dark) !important;
    border: 2px solid transparent;
    font-weight: 700;
}
.mg-btn-accent:hover,
.elementor-button.mg-btn-accent:hover {
    background: var(--mg-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.30);
    color: var(--mg-dark) !important;
}

.mg-btn-outline,
.elementor-button.mg-btn-outline {
    background: transparent;
    color: var(--mg-primary) !important;
    border: 2px solid var(--mg-primary);
}
.mg-btn-outline:hover,
.elementor-button.mg-btn-outline:hover {
    background: var(--mg-primary);
    color: var(--mg-white) !important;
    transform: translateY(-2px);
}

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.mg-section-light  { background-color: var(--mg-light); }
.mg-section-white  { background-color: var(--mg-white); }
.mg-section-dark   { background-color: var(--mg-dark); color: var(--mg-white); }
.mg-section-dark h1,
.mg-section-dark h2,
.mg-section-dark h3,
.mg-section-dark .elementor-heading-title { color: var(--mg-white); }

.mg-section-gradient {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #1D4ED8 100%);
    color: var(--mg-white);
}

/* ============================================================
   PRICING / PAKET HARGA
   ============================================================ */
.mg-card {
    background: var(--mg-white);
    border: 2px solid var(--mg-border);
    border-radius: var(--mg-radius);
    padding: 36px 30px;
    transition: var(--mg-transition);
    position: relative;
    height: 100%;
}
.mg-card:hover {
    border-color: var(--mg-primary-light);
    box-shadow: var(--mg-shadow-hover);
    transform: translateY(-6px);
}
.mg-card-featured {
    border-color: var(--mg-primary);
    box-shadow: var(--mg-shadow);
}
.mg-card-featured::before {
    content: "⭐ Paling Populer";
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mg-primary);
    color: var(--mg-white);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--mg-font-heading);
    padding: 5px 18px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.6px;
}

.mg-price {
    font-family: var(--mg-font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--mg-primary);
    line-height: 1;
    display: block;
}
.mg-price-from {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mg-gray);
    display: block;
    margin-top: 4px;
}
.mg-price-badge {
    display: inline-block;
    background: var(--mg-accent);
    color: var(--mg-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--mg-font-heading);
    margin-bottom: 12px;
}

/* checklist fitur */
.mg-feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.mg-feature-list li {
    padding: 6px 0;
    padding-left: 26px;
    position: relative;
    color: var(--mg-gray);
    font-size: 15px;
    line-height: 1.5;
}
.mg-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--mg-primary-light);
    font-weight: 700;
}
.mg-feature-list li.mg-not-included {
    opacity: 0.45;
}
.mg-feature-list li.mg-not-included::before {
    content: "✕";
    color: #CBD5E1;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.mg-portfolio-item {
    border-radius: var(--mg-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--mg-dark);
}
.mg-portfolio-item img {
    transition: transform 0.45s ease;
    display: block;
    width: 100%;
    opacity: 1;
    transition: transform 0.45s ease, opacity 0.3s ease;
}
.mg-portfolio-item:hover img {
    transform: scale(1.07);
    opacity: 0.6;
}
.mg-portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}
.mg-portfolio-item:hover .mg-portfolio-overlay { opacity: 1; }
.mg-portfolio-overlay h4 {
    color: var(--mg-white);
    margin: 0;
    font-size: 1.1rem;
}
.mg-portfolio-overlay span {
    color: var(--mg-accent);
    font-size: 13px;
    font-weight: 600;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.mg-testimonial {
    background: var(--mg-white);
    border-radius: var(--mg-radius);
    padding: 28px 24px;
    box-shadow: var(--mg-shadow);
    border-top: 4px solid var(--mg-primary);
    height: 100%;
    transition: var(--mg-transition);
}
.mg-testimonial:hover {
    box-shadow: var(--mg-shadow-hover);
    transform: translateY(-4px);
}
.mg-testimonial-text {
    font-style: italic;
    color: var(--mg-gray);
    line-height: 1.75;
    margin-bottom: 20px;
    font-size: 15px;
}
.mg-testimonial-text::before { content: "\201C"; font-size: 2rem; color: var(--mg-primary); line-height: 0; vertical-align: -0.5rem; margin-right: 4px; }
.mg-testimonial-name {
    font-weight: 700;
    color: var(--mg-dark);
    font-family: var(--mg-font-heading);
}
.mg-testimonial-role {
    font-size: 13px;
    color: var(--mg-gray);
}
.mg-stars { color: var(--mg-accent); font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }

/* ============================================================
   STATS / ANGKA KEBERHASILAN
   ============================================================ */
.mg-stat-number {
    font-family: var(--mg-font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--mg-primary);
    line-height: 1;
    display: block;
}
.mg-stat-label {
    font-size: 14px;
    color: var(--mg-gray);
    margin-top: 6px;
    display: block;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.mg-wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    background: #25D366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5);
    text-decoration: none;
    font-size: 26px;
    transition: var(--mg-transition);
}
.mg-wa-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
    color: #fff;
}
.mg-wa-float::after {
    content: "Chat Sekarang";
    position: absolute;
    right: 70px;
    background: #25D366;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    font-family: var(--mg-font-body);
}
.mg-wa-float:hover::after { opacity: 1; }

/* ============================================================
   HEADER / NAVBAR CUSTOM
   ============================================================ */
.site-header .elementor-nav-menu a {
    font-family: var(--mg-font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--mg-dark);
    transition: color 0.2s ease;
}
.site-header .elementor-nav-menu a:hover { color: var(--mg-primary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .mg-stat-number { font-size: 2.4rem; }
}

@media (max-width: 767px) {
    .mg-price    { font-size: 1.8rem; }
    .mg-card     { padding: 24px 20px; }
    .mg-stat-number { font-size: 2rem; }
    .mg-wa-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    .mg-wa-float::after { display: none; }
    .mg-card-featured::before { font-size: 11px; padding: 4px 14px; }
}
