/*
Theme Name: Grow&Bless Digital Marketing
Theme URI: https://growandbless.com
Author: Grow & Bless
Author URI: https://growandbless.com
Description: Custom WordPress theme for Grow & Bless, a digital marketing agency serving B2B businesses, banks, and enterprise clients across Indonesia and Southeast Asia.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: growandbless-v2
Tags: dark, agency, marketing, one-page
*/

/* ============================================================
   BASE RESET — Tailwind's preflight equivalents for WordPress
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.625;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================================
   STITCH CUSTOM CSS
   ============================================================ */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.digital-hero-bg {
    background:
        radial-gradient(circle at 50% 50%, rgba(5, 208, 0, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 10% 10%, rgba(0, 26, 51, 0.5) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(0, 26, 51, 0.5) 0%, transparent 40%);
}

.network-grid {
    background-image:
        linear-gradient(rgba(5, 208, 0, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(5, 208, 0, 0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
}

.node-pattern {
    background-image: radial-gradient(rgba(5, 208, 0, 0.3) 1px, transparent 1px);
    background-size: 30px 30px;
}

.logo-carousel {
    display: flex;
    width: fit-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: scroll 40s linear infinite;
}

.circuit-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #0A0A0A;
}

.circuit-card::before {
    content: '';
    position: absolute;
    /* Use a huge square to ensure the rotating beam covers the whole rectangle */
    inset: -100% -50%;
    background: conic-gradient(from 0deg, transparent 0%, transparent 48%, #05D000 50%, transparent 52%, transparent 100%);
    animation: rotate-border 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
    filter: blur(5px);
}

.circuit-card:hover::before {
    opacity: 1;
}

.circuit-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: #0A0A0A;
    border-radius: inherit;
    z-index: 2;
}

.circuit-card>* {
    position: relative;
    z-index: 3;
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hardware-icon {
    background: linear-gradient(135deg, #111111 0%, #050505 100%);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05), 0 4px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid #1A1A1A;
    position: relative;
}

.hardware-icon::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 4px;
    height: 4px;
    background: #05D000;
    border-radius: 50%;
    box-shadow: 0 0 8px #05D000;
    opacity: 0.6;
}

.group:hover .hardware-icon::after {
    opacity: 1;
    box-shadow: 0 0 12px #05D000;
}

.service-card-glow {
    transition: all 0.3s ease;
}

.service-card-glow:hover {
    box-shadow: 0 0 25px rgba(5, 208, 0, 0.15);
    border-color: rgba(5, 208, 0, 0.4);
}

details>summary {
    list-style: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

details[open] summary .icon-plus {
    display: none;
}

details:not([open]) summary .icon-minus {
    display: none;
}

/* ============================================================
   PREMIUM FAQ ACCORDION
   ============================================================ */

/* Open state — glow + border */
.gnb-faq-item[data-open] {
    border-color: rgba(5, 208, 0, 0.3);
    box-shadow: 0 0 25px rgba(5, 208, 0, 0.06);
}

/* Open state — accent bar scales in */
.gnb-faq-item[data-open] .gnb-faq-accent {
    transform: scaleY(1);
}

/* Open state — number lights up */
.gnb-faq-item[data-open] .gnb-faq-num {
    color: #05D000;
}

/* Open state — icon rotates to X */
.gnb-faq-item[data-open] .gnb-faq-icon {
    transform: rotate(135deg);
}

/* Open state — content fades in and slides up */
.gnb-faq-item[data-open] .gnb-faq-content {
    opacity: 1;
    transform: translateY(0);
}

/* Sibling dimming — when any item is open, dim the rest */
.gnb-faq-list.has-open .gnb-faq-item:not([data-open]) {
    opacity: 0.55;
}

.gnb-faq-list.has-open .gnb-faq-item:not([data-open]):hover {
    opacity: 0.85;
}

/* Smooth opacity transitions on all items */
.gnb-faq-item {
    transition: all 0.3s ease, opacity 0.4s ease;
}


/* ============================================================
   FLUENT FORMS — Dark Theme
   ============================================================ */

.gnb-fluent-form .ff-el-input--label label {
    color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.gnb-fluent-form .ff-el-form-control,
.gnb-fluent-form input[type="text"],
.gnb-fluent-form input[type="email"],
.gnb-fluent-form input[type="tel"],
.gnb-fluent-form input[type="url"],
.gnb-fluent-form input[type="number"],
.gnb-fluent-form textarea,
.gnb-fluent-form select {
    background-color: #000000;
    border: 1px solid #1A1A1A;
    color: #ffffff;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: border-color 0.2s ease;
}

.gnb-fluent-form .ff-el-form-control:focus,
.gnb-fluent-form input:focus,
.gnb-fluent-form textarea:focus,
.gnb-fluent-form select:focus {
    border-color: #05D000;
    outline: none;
    box-shadow: 0 0 0 1px #05D000;
}

.gnb-fluent-form .ff-el-form-control::placeholder,
.gnb-fluent-form input::placeholder,
.gnb-fluent-form textarea::placeholder {
    color: #9CA3AF;
}

.gnb-fluent-form .ff-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 800;
    color: #000000;
    background-color: #05D000;
    cursor: pointer;
    border: 0;
    box-shadow: 0 0 35px rgba(5, 208, 0, 0.45);
    transition: all 0.2s ease;
}

.gnb-fluent-form .ff-btn-submit:hover {
    transform: scale(1.03);
    box-shadow: 0 0 50px rgba(5, 208, 0, 0.65);
}

.gnb-fluent-form .ff-el-group {
    margin-bottom: 1.25rem;
}

.gnb-fluent-form .ff-el-is-error .ff-el-form-control {
    border-color: #ef4444;
}

.gnb-fluent-form .ff-el-is-error .error {
    color: #f87171;
    font-size: 0.75rem;
    line-height: 1rem;
    margin-top: 0.25rem;
}

.gnb-fluent-form .ff-message-success {
    background-color: rgba(5, 208, 0, 0.1);
    border: 1px solid rgba(5, 208, 0, 0.3);
    color: #05D000;
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
}

.gnb-fluent-form .ff-el-form-check label {
    color: #9CA3AF;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.gnb-fluent-form .ff-step-header {
    color: #ffffff;
}

.gnb-fluent-form .fluentform .ff-el-form-control {
    background-color: #000000;
    color: #ffffff;
    border-color: #1A1A1A;
}

.gnb-fluent-form .fluentform .ff-el-form-control:focus {
    border-color: #05D000;
    box-shadow: 0 0 0 1px #05D000;
}

.gnb-fluent-form select option {
    background-color: #0A0A0A;
    color: white;
}

.gnb-fluent-form .ff-el-form-check-input {
    border-color: #1A1A1A;
    background-color: #000000;
}

.gnb-fluent-form .ff-el-form-check-input:checked {
    background-color: #05D000;
    border-color: #05D000;
}


/* ============================================================
   BLOG POST CONTENT — Premium Reading Prose
   ============================================================ */

.gnb-post-content {
    color: #9CA3AF;
    line-height: 1.85;
    font-size: 1.0625rem;
    /* 17px — optimal reading size */
}

@media (min-width: 768px) {
    .gnb-post-content {
        font-size: 1.125rem;
        /* 18px on desktop */
        line-height: 1.9;
    }
}

.gnb-post-content>*:first-child {
    margin-top: 0;
}

.gnb-post-content p {
    margin-bottom: 1.75rem;
}

/* Drop cap on first paragraph */
.gnb-post-content>p:first-of-type::first-letter {
    color: #ffffff;
    font-weight: 900;
    float: left;
    font-size: 3.5rem;
    line-height: 0.85;
    margin-right: 0.6rem;
    margin-top: 0.15rem;
}

.gnb-post-content h2 {
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    padding-top: 0.5rem;
}

@media (min-width: 768px) {
    .gnb-post-content h2 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

.gnb-post-content h3 {
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .gnb-post-content h3 {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

.gnb-post-content h4 {
    color: #ffffff;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .gnb-post-content h4 {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

.gnb-post-content a {
    color: #05D000;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(5, 208, 0, 0.3);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.gnb-post-content a:hover {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

.gnb-post-content ul,
.gnb-post-content ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.gnb-post-content ul {
    list-style-type: disc;
}

.gnb-post-content ol {
    list-style-type: decimal;
}

.gnb-post-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    line-height: 1.75;
}

.gnb-post-content li::marker {
    color: #05D000;
}

.gnb-post-content blockquote {
    border-left: 3px solid #05D000;
    padding-left: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.8;
    font-style: italic;
}

.gnb-post-content blockquote p:last-child {
    margin-bottom: 0;
}

.gnb-post-content img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.gnb-post-content figure {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.gnb-post-content figcaption {
    color: #9CA3AF;
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

.gnb-post-content pre {
    background-color: #000000;
    border: 1px solid #1A1A1A;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

@media (min-width: 768px) {
    .gnb-post-content pre {
        padding: 2rem;
    }
}

.gnb-post-content code {
    background-color: #0A0A0A;
    border: 1px solid #1A1A1A;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    color: #05D000;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

.gnb-post-content pre code {
    background-color: transparent;
    border: 0;
    padding: 0;
    color: #9CA3AF;
}

.gnb-post-content hr {
    border: 0;
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
    height: 1px;
    background: linear-gradient(to right, transparent, #1A1A1A, rgba(5, 208, 0, 0.2), #1A1A1A, transparent);
}

.gnb-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.gnb-post-content th {
    background-color: #000000;
    border: 1px solid #1A1A1A;
    padding: 0.875rem 1.25rem;
    text-align: left;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gnb-post-content td {
    border: 1px solid #1A1A1A;
    padding: 0.875rem 1.25rem;
    color: #9CA3AF;
}

.gnb-post-content tr:hover td {
    background-color: rgba(10, 10, 10, 0.5);
}

.gnb-post-content strong {
    color: #ffffff;
    font-weight: 700;
}

.gnb-post-content em {
    font-style: italic;
}

/* WP embed/video responsive */
.gnb-post-content .wp-block-embed,
.gnb-post-content iframe {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 1rem;
    overflow: hidden;
}

.gnb-post-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.gnb-post-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}


/* ============================================================
   PAGINATION — Dark Theme
   ============================================================ */

.gnb-pagination-item a,
.gnb-pagination-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.gnb-pagination-item a {
    background-color: #0A0A0A;
    border: 1px solid #1A1A1A;
    color: #9CA3AF;
}

.gnb-pagination-item a:hover {
    color: #ffffff;
    border-color: rgba(5, 208, 0, 0.2);
}

.gnb-pagination-item span.current {
    background-color: #05D000;
    color: #000000;
    font-weight: 700;
    border: 1px solid #05D000;
}

.gnb-pagination-item a.prev,
.gnb-pagination-item a.next {
    background-color: #0A0A0A;
    border: 1px solid #1A1A1A;
    color: #9CA3AF;
}

.gnb-pagination-item a.prev:hover,
.gnb-pagination-item a.next:hover {
    color: #05D000;
    border-color: rgba(5, 208, 0, 0.2);
}

.gnb-pagination-item span.dots {
    color: #9CA3AF;
    border: 0;
    background-color: transparent;
}


/* ============================================================
   CATEGORY FILTER — Scrollbar Hide
   ============================================================ */

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* ============================================================
   TABLE OF CONTENTS — Sidebar
   ============================================================ */

.gnb-toc-link {
    display: block;
    padding: 0.375rem 0;
    padding-left: 0.75rem;
    color: #9CA3AF;
    font-size: 0.8125rem;
    line-height: 1.5;
    border-left: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.gnb-toc-link:hover {
    color: #ffffff;
}

.gnb-toc-link.active {
    color: #05D000;
    border-left-color: #05D000;
}

.gnb-toc-link.gnb-toc-h3 {
    padding-left: 1.5rem;
    font-size: 0.75rem;
}

/* ============================================================
   PREMIUM BUTTON — Uiverse.io Style
   ============================================================ */

.cssbuttons-io-button {
    background: #05D000;
    color: #000000;
    font-family: inherit;
    padding: 0.35em;
    padding-left: 1.2em;
    font-size: 17px;
    font-weight: 800;
    border-radius: 0.9em;
    border: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 1.6em -0.6em rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    height: 2.8em;
    padding-right: 3.3em;
    cursor: pointer;
    transition: all 0.3s;
    width: fit-content;
}

.cssbuttons-io-button.glow {
    box-shadow: inset 0 0 1.6em -0.6em rgba(0, 0, 0, 0.5), 0 0 35px rgba(5, 208, 0, 0.45);
}

.cssbuttons-io-button.glow:hover {
    box-shadow: inset 0 0 1.6em -0.6em rgba(0, 0, 0, 0.5), 0 0 50px rgba(5, 208, 0, 0.65);
}

.btn-secondary-simple {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: inherit;
    padding: 0 2.2em;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.8em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-secondary-simple:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cssbuttons-io-button .icon {
    background: #000000;
    margin-left: 1em;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2em;
    width: 2.2em;
    border-radius: 0.7em;
    box-shadow: 0.1em 0.1em 0.6em 0.2em rgba(5, 208, 0, 0.3);
    right: 0.3em;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.cssbuttons-io-button:hover .icon {
    width: calc(100% - 0.6em);
}

.cssbuttons-io-button .icon svg {
    width: 1.1em;
    transition: transform 0.3s;
    color: #05D000;
}

.cssbuttons-io-button:hover .icon svg {
    transform: translateX(0.1em);
}

.cssbuttons-io-button:active .icon {
    transform: scale(0.95);
}