/*
Theme Name: GrowbiTech Child
Theme URI: https://growbitech.com
Description: Custom child theme for GrowbiTech based on Kadence.
Author: GrowbiTech
Author URI: https://growbitech.com
Template: kadence
Version: 1.0.0
Text Domain: growbitech-child
*/

/* =========================================================
   GROWBITECH CHILD THEME
   Parent Theme: Kadence
   ========================================================= */


/* =========================================================
   01. DESIGN SYSTEM
   ========================================================= */

:root {

    /* Brand Colors */
    --gb-primary: #111827;
    --gb-primary-hover: #000000;

    --gb-accent: #2563eb;
    --gb-accent-hover: #1d4ed8;

    --gb-text: #1f2937;
    --gb-heading: #111827;
    --gb-muted: #6b7280;

    --gb-background: #ffffff;
    --gb-background-soft: #f7f8fa;
    --gb-background-dark: #111827;

    --gb-border: #e5e7eb;
    --gb-border-dark: #d1d5db;

    --gb-success: #16a34a;
    --gb-warning: #f59e0b;

    /* Typography */
    --gb-font:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    /* Layout */
    --gb-container: 1280px;
    --gb-content: 820px;

    /* Radius */
    --gb-radius-sm: 8px;
    --gb-radius: 14px;
    --gb-radius-lg: 22px;

    /* Shadow */
    --gb-shadow-sm:
        0 2px 8px rgba(17, 24, 39, 0.05);

    --gb-shadow:
        0 8px 30px rgba(17, 24, 39, 0.08);

    /* Spacing */
    --gb-space-xs: 8px;
    --gb-space-sm: 16px;
    --gb-space-md: 24px;
    --gb-space-lg: 40px;
    --gb-space-xl: 64px;
    --gb-space-xxl: 96px;
}


/* =========================================================
   02. GLOBAL
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--gb-font);
    color: var(--gb-text);
    background: var(--gb-background);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--gb-accent);
    text-decoration: none;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

a:hover {
    color: var(--gb-accent-hover);
}

p {
    margin-top: 0;
    margin-bottom: 1.25rem;
}


/* =========================================================
   03. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--gb-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
}

h1 {
    font-size: clamp(36px, 5vw, 64px);
}

h2 {
    font-size: clamp(28px, 3vw, 42px);
}

h3 {
    font-size: clamp(20px, 2vw, 28px);
}

h4 {
    font-size: 20px;
}

.gb-section-title {
    margin-bottom: 32px;
}

.gb-section-title p {
    color: var(--gb-muted);
    max-width: 720px;
    font-size: 18px;
}


/* =========================================================
   04. CONTAINER
   ========================================================= */

.gb-container {
    width: min(
        calc(100% - 40px),
        var(--gb-container)
    );

    margin-left: auto;
    margin-right: auto;
}

.gb-content-container {
    width: min(
        calc(100% - 40px),
        var(--gb-content)
    );

    margin-left: auto;
    margin-right: auto;
}

.gb-section {
    padding-top: var(--gb-space-xl);
    padding-bottom: var(--gb-space-xl);
}

.gb-section-soft {
    background: var(--gb-background-soft);
}

.gb-section-dark {
    background: var(--gb-background-dark);
    color: #ffffff;
}


/* =========================================================
   05. BUTTONS
   ========================================================= */

.gb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 46px;

    padding: 11px 22px;

    border-radius: var(--gb-radius-sm);

    background: var(--gb-accent);

    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    border: 1px solid transparent;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.gb-button:hover {
    background: var(--gb-accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.gb-button-secondary {
    background: #ffffff;
    color: var(--gb-heading);
    border-color: var(--gb-border);
}

.gb-button-secondary:hover {
    background: var(--gb-background-soft);
    color: var(--gb-heading);
}


/* =========================================================
   06. HERO
   ========================================================= */

.gb-hero {
    padding: 90px 0;
    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #eef4ff 100%
        );
}

.gb-hero-inner {
    max-width: 900px;
}

.gb-hero-eyebrow {
    display: inline-block;

    margin-bottom: 20px;

    color: var(--gb-accent);

    font-size: 14px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

.gb-hero h1 {
    margin-bottom: 24px;
}

.gb-hero-description {
    max-width: 760px;

    color: var(--gb-muted);

    font-size: 20px;

    line-height: 1.7;
}


/* =========================================================
   07. GENERIC GRID
   ========================================================= */

.gb-grid {
    display: grid;
    gap: 24px;
}

.gb-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gb-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gb-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* =========================================================
   08. GENERIC CARD
   ========================================================= */

.gb-card {
    position: relative;

    background: #ffffff;

    border: 1px solid var(--gb-border);

    border-radius: var(--gb-radius);

    overflow: hidden;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.gb-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gb-shadow);
    border-color: var(--gb-border-dark);
}

.gb-card-body {
    padding: 24px;
}

.gb-card-title {
    margin-bottom: 10px;
    font-size: 22px;
}

.gb-card-description {
    color: var(--gb-muted);
    margin-bottom: 0;
}


/* =========================================================
   09. INDUSTRY GRID
   Web chủ → Ngành hàng
   ========================================================= */

.gb-industry-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.gb-industry-card {
    min-height: 230px;

    padding: 32px;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    background: #ffffff;

    border: 1px solid var(--gb-border);

    border-radius: var(--gb-radius-lg);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.gb-industry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--gb-shadow);
}

.gb-industry-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 32px;

    border-radius: 12px;

    background: #eef4ff;

    color: var(--gb-accent);

    font-size: 24px;
}

.gb-industry-name {
    margin-bottom: 8px;

    font-size: 26px;
}

.gb-industry-count {
    color: var(--gb-muted);

    font-size: 14px;
}


/* =========================================================
   10. BRAND GRID
   Web ngành → Brand
   ========================================================= */

.gb-brand-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.gb-brand-card {
    padding: 24px;

    background: #ffffff;

    border: 1px solid var(--gb-border);

    border-radius: var(--gb-radius);

    text-align: center;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.gb-brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gb-shadow-sm);
}

.gb-brand-logo {
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;
}

.gb-brand-logo img {
    max-width: 150px;
    max-height: 70px;

    object-fit: contain;
}

.gb-brand-name {
    margin-bottom: 6px;

    font-size: 18px;
}

.gb-brand-category {
    color: var(--gb-muted);

    font-size: 13px;
}


/* =========================================================
   11. BRAND HERO
   Web Brand
   ========================================================= */

.gb-brand-hero {
    padding: 64px 0;

    border-bottom: 1px solid var(--gb-border);
}

.gb-brand-hero-inner {
    display: grid;

    grid-template-columns:
        180px minmax(0, 1fr) auto;

    gap: 40px;

    align-items: center;
}

.gb-brand-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 150px;

    padding: 24px;

    border: 1px solid var(--gb-border);

    border-radius: var(--gb-radius);

    background: #ffffff;
}

.gb-brand-hero-logo img {
    max-height: 100px;
    object-fit: contain;
}

.gb-brand-hero h1 {
    margin-bottom: 10px;

    font-size: clamp(34px, 4vw, 52px);
}

.gb-brand-meta {
    color: var(--gb-muted);
}


/* =========================================================
   12. ARTICLE CARDS
   ========================================================= */

.gb-article-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;
}

.gb-article-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--gb-border);

    border-radius: var(--gb-radius);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.gb-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gb-shadow);
}

.gb-article-image {
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: var(--gb-background-soft);
}

.gb-article-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.gb-article-card:hover .gb-article-image img {
    transform: scale(1.03);
}

.gb-article-body {
    padding: 22px;
}

.gb-article-type {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--gb-accent);

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}

.gb-article-title {
    margin-bottom: 12px;

    font-size: 21px;

    line-height: 1.4;
}

.gb-article-excerpt {
    color: var(--gb-muted);

    font-size: 15px;

    line-height: 1.65;
}


/* =========================================================
   13. ARTICLE LIST
   ========================================================= */

.gb-article-list {
    display: flex;
    flex-direction: column;

    gap: 0;
}

.gb-article-list-item {
    display: grid;

    grid-template-columns:
        220px minmax(0, 1fr);

    gap: 28px;

    padding: 28px 0;

    border-bottom: 1px solid var(--gb-border);
}

.gb-article-list-image {
    aspect-ratio: 16 / 10;

    overflow: hidden;

    border-radius: var(--gb-radius-sm);

    background: var(--gb-background-soft);
}

.gb-article-list-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   14. BADGES
   ========================================================= */

.gb-badge {
    display: inline-flex;

    align-items: center;

    padding: 5px 10px;

    border-radius: 999px;

    background: #eef4ff;

    color: var(--gb-accent);

    font-size: 12px;

    font-weight: 600;
}


/* =========================================================
   15. BREADCRUMB
   ========================================================= */

.gb-breadcrumb {
    padding: 18px 0;

    color: var(--gb-muted);

    font-size: 14px;
}

.gb-breadcrumb a {
    color: var(--gb-muted);
}

.gb-breadcrumb a:hover {
    color: var(--gb-accent);
}

.gb-breadcrumb-separator {
    margin: 0 8px;

    opacity: 0.5;
}


/* =========================================================
   16. ARTICLE CONTENT
   ========================================================= */

.gb-article-content {
    font-size: 18px;

    line-height: 1.8;
}

.gb-article-content h2 {
    margin-top: 52px;
    margin-bottom: 20px;
}

.gb-article-content h3 {
    margin-top: 38px;
    margin-bottom: 16px;
}

.gb-article-content img {
    border-radius: var(--gb-radius);
}

.gb-article-content blockquote {
    margin: 32px 0;

    padding: 22px 28px;

    border-left: 4px solid var(--gb-accent);

    background: var(--gb-background-soft);

    border-radius: 0 var(--gb-radius-sm) var(--gb-radius-sm) 0;
}


/* =========================================================
   17. AFFILIATE CTA
   ========================================================= */

.gb-affiliate-box {
    margin: 36px 0;

    padding: 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

    background: #f8fafc;

    border: 1px solid var(--gb-border);

    border-radius: var(--gb-radius);
}

.gb-affiliate-box h3 {
    margin-bottom: 6px;
}

.gb-affiliate-box p {
    margin-bottom: 0;

    color: var(--gb-muted);
}


/* =========================================================
   18. EMPTY STATE
   ========================================================= */

.gb-empty {
    padding: 50px;

    text-align: center;

    background: var(--gb-background-soft);

    border-radius: var(--gb-radius);
}

.gb-empty p {
    color: var(--gb-muted);

    margin-bottom: 0;
}


/* =========================================================
   19. FOOTER HELPERS
   ========================================================= */

.gb-footer-description {
    max-width: 420px;

    color: #9ca3af;
}

.gb-footer-links {
    list-style: none;

    padding: 0;
    margin: 0;
}

.gb-footer-links li {
    margin-bottom: 10px;
}


/* =========================================================
   20. TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .gb-industry-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .gb-brand-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .gb-article-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .gb-brand-hero-inner {
        grid-template-columns:
            150px minmax(0, 1fr);
    }

    .gb-brand-hero-action {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   21. MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .gb-container,
    .gb-content-container {
        width: min(
            calc(100% - 32px),
            var(--gb-container)
        );
    }

    .gb-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .gb-hero {
        padding: 64px 0;
    }

    .gb-hero-description {
        font-size: 17px;
    }

    .gb-grid-2,
    .gb-grid-3,
    .gb-grid-4,

    .gb-industry-grid,
    .gb-brand-grid,
    .gb-article-grid {
        grid-template-columns: 1fr;
    }

    .gb-brand-hero-inner {
        grid-template-columns: 1fr;
    }

    .gb-brand-hero-logo {
        max-width: 180px;
    }

    .gb-article-list-item {
        grid-template-columns: 1fr;
    }

    .gb-affiliate-box {
        flex-direction: column;

        align-items: flex-start;
    }

}


/* =========================================================
   22. SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .gb-container,
    .gb-content-container {
        width: calc(100% - 24px);
    }

    .gb-card-body,
    .gb-brand-card,
    .gb-industry-card {
        padding: 20px;
    }

}