/*
Theme Name: Traffic Growth Pro
Theme URI: https://example.com/traffic-growth-pro/
Author: WP Build Automation
Author URI: https://example.com/
Description: A standalone WordPress block theme for SEO consultants, digital marketing agencies, and lead-generation service businesses. Inspired by high-conversion Australian SEO service sites without copying third-party content or assets.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: traffic-growth-pro
Tags: block-theme, full-site-editing, custom-logo, blog, services, portfolio, one-column, two-columns, wide-blocks
*/

:root {
    --tg-primary: #2aa0ef;
    --tg-primary-dark: #1e5181;
    --tg-accent: #a2c438;
    --tg-teal: #0d4147;
    --tg-ink: #20282f;
    --tg-text: #41484d;
    --tg-muted: #687782;
    --tg-border: #d9e5ec;
    --tg-surface: #ffffff;
    --tg-soft: #f4f8fb;
    --tg-soft-blue: #eaf6ff;
    --tg-shadow: 0 18px 50px rgba(14, 41, 62, 0.13);
    --tg-shadow-soft: 0 10px 30px rgba(14, 41, 62, 0.09);
    --tg-radius: 24px;
    --tg-radius-sm: 14px;
    --tg-max: 1240px;
    --tg-focus: 0 0 0 3px rgba(42, 160, 239, 0.35);
}

html[data-theme-mode="dark"] {
    --tg-primary: #68c3ff;
    --tg-primary-dark: #9bd8ff;
    --tg-accent: #c4e75a;
    --tg-teal: #101f24;
    --tg-ink: #f5fbff;
    --tg-text: #d7e4ec;
    --tg-muted: #a9bbc7;
    --tg-border: #26414f;
    --tg-surface: #13222a;
    --tg-soft: #0d171d;
    --tg-soft-blue: #142b37;
    --tg-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --tg-shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.28);
}


html[data-color-scheme="green"] {
    --tg-primary: #159567;
    --tg-primary-dark: #0d6b4d;
    --tg-accent: #f59e0b;
    --tg-teal: #0f3d35;
    --tg-soft-blue: #e8f7f1;
}

html[data-color-scheme="violet"] {
    --tg-primary: #7c3aed;
    --tg-primary-dark: #4c1d95;
    --tg-accent: #f5b84b;
    --tg-teal: #20133a;
    --tg-soft-blue: #f1ecff;
}

html[data-theme-mode="dark"][data-color-scheme="green"] {
    --tg-primary: #48d59b;
    --tg-primary-dark: #9ff0c7;
    --tg-accent: #fbbf24;
    --tg-teal: #0c211d;
    --tg-soft-blue: #123128;
}

html[data-theme-mode="dark"][data-color-scheme="violet"] {
    --tg-primary: #c4b5fd;
    --tg-primary-dark: #ddd6fe;
    --tg-accent: #f5c46f;
    --tg-teal: #160f28;
    --tg-soft-blue: #24173d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    background: var(--tg-soft);
    color: var(--tg-text);
    font-family: Roboto, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
}

body.admin-bar .tg-site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .tg-site-header {
        top: 46px;
    }
}

a {
    color: var(--tg-primary-dark);
    text-underline-offset: 0.18em;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

html[data-theme-mode="dark"] a {
    color: var(--tg-primary);
}

a:hover {
    color: var(--tg-primary);
}

:where(a, button, input, textarea, select, summary):focus-visible {
    outline: none;
    box-shadow: var(--tg-focus);
}

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

main {
    background: var(--tg-soft);
}

.wp-site-blocks > * {
    margin-block-start: 0;
}

.alignwide {
    max-width: var(--tg-max);
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

.tg-container,
.tg-site-header-inner,
.tg-topbar-inner,
.tg-footer-inner,
.tg-section-inner {
    margin-left: auto;
    margin-right: auto;
    max-width: var(--tg-max);
    width: min(calc(100% - 40px), var(--tg-max));
}

/* Header */
.tg-topbar {
    background: var(--tg-teal);
    color: #ffffff;
    font-size: 0.9rem;
    position: relative;
    z-index: 20;
}

.tg-topbar a {
    color: #ffffff;
    text-decoration: none;
}

.tg-topbar a:hover {
    color: var(--tg-accent);
}

.tg-topbar-inner {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.55rem 0;
}

.tg-topbar p {
    margin: 0;
}

.tg-site-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(217, 229, 236, 0.85);
    box-shadow: 0 8px 28px rgba(20, 48, 67, 0.06);
    color: var(--tg-ink);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: saturate(1.3) blur(14px);
}

html[data-theme-mode="dark"] .tg-site-header {
    background: rgba(13, 23, 29, 0.92);
    border-color: rgba(38, 65, 79, 0.9);
}

.tg-site-header-inner {
    align-items: center;
    display: flex;
    gap: 1.4rem;
    justify-content: space-between;
    padding: 0.95rem 0;
}

.tg-brand {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 0.75rem;
    min-width: 190px;
}

.tg-brand .wp-block-site-logo img {
    max-height: 54px;
    width: auto;
}

.tg-brand .wp-block-site-title {
    font-size: clamp(1.1rem, 0.95rem + 0.45vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0;
}

.tg-brand .wp-block-site-title a {
    color: var(--tg-ink);
    text-decoration: none;
}

.tg-brand::before {
    background:
        linear-gradient(135deg, var(--tg-primary), var(--tg-primary-dark));
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(42, 160, 239, 0.28);
    content: "";
    flex: 0 0 46px;
    height: 46px;
    mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path fill="black" d="M10 50h10V30H10v20Zm17 0h10V18H27v32Zm17 0h10V8H44v42ZM8 56h48v-6H8v6Z"/></svg>') center / 70% 70% no-repeat;
    width: 46px;
}

.tg-nav-wrap {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 1rem;
    justify-content: flex-end;
}

.tg-primary-nav {
    font-size: 0.95rem;
    font-weight: 650;
}

.tg-primary-nav a {
    color: var(--tg-ink);
    text-decoration: none;
}

.tg-primary-nav a:hover,
.tg-primary-nav .current-menu-item > a,
.tg-primary-nav .current-menu-ancestor > a {
    color: var(--tg-primary-dark);
}

.wp-block-navigation__submenu-container {
    border: 1px solid var(--tg-border) !important;
    border-radius: 16px;
    box-shadow: var(--tg-shadow-soft);
    overflow: hidden;
}

.wp-block-navigation .wp-block-navigation-item__content {
    min-height: 44px;
}

.tg-header-actions {
    align-items: center;
    display: flex;
    gap: 0.65rem;
}

.theme-mode-toggle,
.tg-button,
.wp-block-button__link,
.wp-element-button {
    align-items: center;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 750;
    justify-content: center;
    min-height: 44px;
    text-decoration: none;
}

.theme-mode-toggle,
.theme-palette-toggle {
    background: var(--tg-soft-blue);
    border: 1px solid var(--tg-border);
    color: var(--tg-ink);
    gap: 0.4rem;
    padding: 0.58rem 0.85rem;
}

.theme-mode-toggle:hover,
.theme-palette-toggle:hover {
    border-color: var(--tg-primary);
    transform: translateY(-1px);
}

.theme-mode-toggle__icon {
    font-size: 1rem;
    line-height: 1;
}

.tg-header-cta .wp-block-button__link,
.tg-primary-button .wp-block-button__link,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background: linear-gradient(135deg, var(--tg-primary), var(--tg-primary-dark));
    border: 0;
    box-shadow: 0 12px 26px rgba(42, 160, 239, 0.28);
    color: #ffffff;
    padding: 0.72rem 1.15rem;
}

.tg-header-cta .wp-block-button__link:hover,
.tg-primary-button .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    transform: translateY(-1px);
}


.tg-button-primary {
    background: linear-gradient(135deg, var(--tg-primary), var(--tg-primary-dark));
    border: 0;
    box-shadow: 0 12px 26px rgba(42, 160, 239, 0.28);
    color: #ffffff;
    padding: 0.78rem 1.2rem;
}

.tg-button-primary:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.tg-button-secondary {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--tg-border);
    color: var(--tg-ink);
    padding: 0.74rem 1.15rem;
}

html[data-theme-mode="dark"] .tg-button-secondary {
    background: rgba(19, 34, 42, 0.72);
}

.tg-button-secondary:hover {
    border-color: var(--tg-primary);
    color: var(--tg-primary-dark);
    transform: translateY(-1px);
}

.tg-secondary-button .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 1px solid var(--tg-border);
    color: var(--tg-ink);
    padding: 0.68rem 1.08rem;
}

.tg-secondary-button .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    border-color: var(--tg-primary);
    color: var(--tg-primary-dark);
}

/* Common sections */
.tg-section {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.tg-section.is-tight {
    padding: clamp(2.4rem, 5vw, 4rem) 0;
}

.tg-section-kicker,
.tg-eyebrow {
    color: var(--tg-primary-dark);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

html[data-theme-mode="dark"] .tg-section-kicker,
html[data-theme-mode="dark"] .tg-eyebrow {
    color: var(--tg-accent);
}

.tg-section-title {
    color: var(--tg-ink);
    font-size: clamp(2rem, 1.45rem + 2vw, 3.2rem);
    font-weight: 300;
    letter-spacing: -0.045em;
    line-height: 1.08;
    margin-bottom: 1rem;
    margin-top: 0;
}

.tg-section-title strong {
    font-weight: 800;
}

.tg-section-lede {
    color: var(--tg-muted);
    font-size: clamp(1.02rem, 0.95rem + 0.25vw, 1.18rem);
    margin: 0 auto 2.25rem;
    max-width: 780px;
}

.tg-card {
    background: var(--tg-surface);
    border: 1px solid var(--tg-border);
    border-radius: var(--tg-radius);
    box-shadow: var(--tg-shadow-soft);
    color: var(--tg-text);
    padding: clamp(1.2rem, 2.5vw, 1.75rem);
}

.tg-card h3,
.tg-card h4 {
    color: var(--tg-ink);
    line-height: 1.2;
    margin-bottom: 0.65rem;
    margin-top: 0;
}

.tg-card p {
    margin-bottom: 0;
}

/* Hero */
.tg-hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(42, 160, 239, 0.22), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(162, 196, 56, 0.24), transparent 30%),
        linear-gradient(135deg, #f8fcff 0%, #eaf6ff 58%, #ffffff 100%);
    overflow: hidden;
    padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3.2rem, 7vw, 6rem);
    position: relative;
}

html[data-theme-mode="dark"] .tg-hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(42, 160, 239, 0.18), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(162, 196, 56, 0.14), transparent 30%),
        linear-gradient(135deg, #0d171d 0%, #132b38 58%, #0d171d 100%);
}

.tg-hero::after {
    background: linear-gradient(90deg, rgba(42,160,239,.28), rgba(162,196,56,.24));
    bottom: 0;
    content: "";
    height: 7px;
    left: 0;
    position: absolute;
    width: 100%;
}

.tg-hero-grid {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
    margin-left: auto;
    margin-right: auto;
    max-width: var(--tg-max);
    width: min(calc(100% - 40px), var(--tg-max));
}

.tg-hero h1 {
    color: var(--tg-ink);
    font-size: clamp(2.6rem, 1.75rem + 3.2vw, 5.15rem);
    font-weight: 200;
    letter-spacing: -0.062em;
    line-height: 0.98;
    margin: 0 0 1.2rem;
}

.tg-hero h1 strong {
    font-weight: 850;
}

.tg-hero-copy > p:not(.tg-eyebrow) {
    color: var(--tg-text);
    font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem);
    max-width: 760px;
}

.tg-check-list {
    display: grid;
    gap: 0.7rem;
    list-style: none;
    margin: 1.4rem 0 1.8rem;
    padding: 0;
}

.tg-check-list li {
    align-items: center;
    color: var(--tg-ink);
    display: flex;
    font-weight: 700;
    gap: 0.65rem;
}

.tg-check-list li::before {
    align-items: center;
    background: var(--tg-accent);
    border-radius: 999px;
    color: #16320c;
    content: "✓";
    display: inline-flex;
    flex: 0 0 1.45rem;
    font-size: 0.85rem;
    font-weight: 900;
    height: 1.45rem;
    justify-content: center;
    width: 1.45rem;
}

.tg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.tg-proposal-card {
    background: var(--tg-teal);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(13, 65, 71, 0.28);
    color: #ffffff;
    overflow: hidden;
    padding: clamp(1.4rem, 3vw, 2rem);
    position: relative;
}

.tg-proposal-card::before {
    background: url("assets/svg/hero-seo-dashboard.svg") center / cover no-repeat;
    content: "";
    display: block;
    height: 190px;
    margin: -0.35rem -0.35rem 1.25rem;
}

.tg-proposal-card h2 {
    color: #ffffff;
    font-size: clamp(1.45rem, 1.2rem + 0.9vw, 2.1rem);
    line-height: 1.12;
    margin: 0 0 0.75rem;
}

.tg-proposal-card p {
    color: rgba(255, 255, 255, 0.82);
}

.tg-proposal-form {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.tg-proposal-form label {
    color: #ffffff;
    display: grid;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 0.28rem;
}

.tg-proposal-form input,
.tg-proposal-form textarea,
.tg-proposal-form select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    color: #ffffff;
    min-height: 46px;
    padding: 0.75rem 0.9rem;
    width: 100%;
}

.tg-proposal-form input::placeholder,
.tg-proposal-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.64);
}

.tg-proposal-form .tg-form-note {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    margin: 0;
}

.tg-proposal-form .tg-form-button {
    background: var(--tg-accent);
    border: 0;
    border-radius: 999px;
    color: #173000;
    cursor: pointer;
    font-weight: 850;
    min-height: 48px;
    padding: 0.78rem 1rem;
}

.tg-proposal-form .tg-form-button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.tg-audit-banner {
    background: var(--tg-surface);
    border-bottom: 1px solid var(--tg-border);
    box-shadow: var(--tg-shadow-soft);
    margin: 0;
}

.tg-audit-banner .tg-section-inner {
    align-items: center;
    display: flex;
    gap: 1.2rem;
    justify-content: space-between;
    padding: 1.2rem 0;
}

.tg-audit-banner p {
    color: var(--tg-ink);
    font-size: clamp(1rem, 0.9rem + 0.45vw, 1.25rem);
    font-weight: 750;
    margin: 0;
}

.tg-pill {
    background: var(--tg-soft-blue);
    border: 1px solid var(--tg-border);
    border-radius: 999px;
    color: var(--tg-primary-dark);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    min-height: 38px;
    padding: 0.45rem 0.85rem;
}

/* Grids */
.tg-process-grid,
.tg-services-grid,
.tg-industries-grid,
.tg-proof-grid,
.tg-faq-grid {
    display: grid;
    gap: 1rem;
}

.tg-process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tg-process-card {
    background: var(--tg-surface);
    border: 1px solid var(--tg-border);
    border-radius: 22px;
    box-shadow: var(--tg-shadow-soft);
    min-height: 220px;
    padding: 1.35rem;
    position: relative;
}

.tg-process-card .tg-step {
    color: var(--tg-primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.tg-process-card h3 {
    color: var(--tg-ink);
    font-size: 1.08rem;
    margin: 0.75rem 0 0.55rem;
}

.tg-process-card p {
    color: var(--tg-muted);
    font-size: 0.96rem;
    margin: 0;
}

.tg-process-card::after {
    background: linear-gradient(135deg, var(--tg-primary), var(--tg-accent));
    border-radius: 999px;
    bottom: 1.2rem;
    content: "";
    height: 9px;
    left: 1.35rem;
    position: absolute;
    width: 42px;
}

.tg-services-section {
    background: var(--tg-surface);
}

.tg-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tg-service-card {
    background: linear-gradient(180deg, var(--tg-surface), var(--tg-soft));
    border: 1px solid var(--tg-border);
    border-radius: 26px;
    box-shadow: var(--tg-shadow-soft);
    min-height: 260px;
    padding: 1.5rem;
    position: relative;
}

.tg-service-card::before {
    background: var(--tg-soft-blue);
    border-radius: 20px;
    content: "";
    display: block;
    height: 84px;
    margin-bottom: 1.2rem;
    width: 100%;
}

.tg-service-card::after {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    height: 66px;
    left: 1.85rem;
    position: absolute;
    top: 1.85rem;
    width: 88px;
}

.tg-service-card.is-local::after { background-image: url("assets/svg/local-search.svg"); }
.tg-service-card.is-technical::after { background-image: url("assets/svg/technical-audit.svg"); }
.tg-service-card.is-content::after { background-image: url("assets/svg/content-growth.svg"); }
.tg-service-card.is-ecommerce::after { background-image: url("assets/svg/ecommerce-seo.svg"); }
.tg-service-card.is-paid::after { background-image: url("assets/svg/paid-media.svg"); }
.tg-service-card.is-reporting::after { background-image: url("assets/svg/reporting.svg"); }

.tg-service-card h3 {
    color: var(--tg-ink);
    margin-top: 0;
}

.tg-service-card p {
    color: var(--tg-muted);
}

.tg-service-card a {
    color: var(--tg-primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.tg-proof-band {
    background:
        linear-gradient(135deg, rgba(13, 65, 71, 0.95), rgba(30, 81, 129, 0.95)),
        radial-gradient(circle at top right, rgba(162, 196, 56, 0.28), transparent 36%);
    color: #ffffff;
}

.tg-proof-band .tg-section-title,
.tg-proof-band .tg-section-lede,
.tg-proof-band .tg-section-kicker {
    color: #ffffff;
}

.tg-proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tg-proof-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 1.4rem;
}

.tg-proof-card strong {
    color: var(--tg-accent);
    display: block;
    font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
    line-height: 1;
    margin-bottom: 0.55rem;
}

.tg-proof-card p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.tg-industries-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tg-industry-pill {
    align-items: center;
    background: var(--tg-surface);
    border: 1px solid var(--tg-border);
    border-radius: 999px;
    color: var(--tg-ink);
    display: flex;
    font-weight: 750;
    gap: 0.55rem;
    min-height: 52px;
    padding: 0.75rem 1rem;
}

.tg-industry-pill::before {
    background: linear-gradient(135deg, var(--tg-primary), var(--tg-accent));
    border-radius: 999px;
    content: "";
    flex: 0 0 12px;
    height: 12px;
    width: 12px;
}

.tg-faq-section {
    background: var(--tg-surface);
}

.tg-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-faq-grid details {
    background: var(--tg-soft);
    border: 1px solid var(--tg-border);
    border-radius: 20px;
    padding: 1.1rem 1.2rem;
}

.tg-faq-grid summary {
    color: var(--tg-ink);
    cursor: pointer;
    font-weight: 800;
    min-height: 44px;
}

.tg-faq-grid details p {
    color: var(--tg-muted);
    margin: 0.7rem 0 0;
}

.tg-final-cta {
    background:
        radial-gradient(circle at 15% 20%, rgba(162, 196, 56, 0.18), transparent 28%),
        linear-gradient(135deg, var(--tg-primary-dark), var(--tg-teal));
    color: #ffffff;
    text-align: center;
}

.tg-final-cta .tg-section-title,
.tg-final-cta .tg-section-lede {
    color: #ffffff;
}

/* Blog and content templates */
.tg-page-hero,
.tg-blog-hero,
.tg-single-hero,
.tg-archive-hero {
    background: linear-gradient(135deg, var(--tg-surface), var(--tg-soft-blue));
    border-bottom: 1px solid var(--tg-border);
    padding: clamp(2.8rem, 6vw, 5.5rem) 0;
}

.tg-page-hero .wp-block-post-title,
.tg-blog-hero h1,
.tg-single-hero .wp-block-post-title,
.tg-archive-hero h1 {
    color: var(--tg-ink);
    font-size: clamp(2.25rem, 1.6rem + 2.5vw, 4.1rem);
    font-weight: 250;
    letter-spacing: -0.055em;
    line-height: 1.05;
    margin: 0;
}

.tg-content-frame,
.tg-post-content,
.tg-service-content {
    background: var(--tg-surface);
    border: 1px solid var(--tg-border);
    border-radius: var(--tg-radius);
    box-shadow: var(--tg-shadow-soft);
    margin-bottom: clamp(3rem, 6vw, 5rem);
    margin-top: clamp(2rem, 4vw, 3.5rem);
    padding: clamp(1.3rem, 3.5vw, 3rem);
}

.tg-content-frame > *:first-child,
.tg-post-content > *:first-child,
.tg-service-content > *:first-child {
    margin-top: 0;
}

.tg-blog-layout,
.tg-single-layout {
    align-items: start;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    margin: clamp(2rem, 4vw, 3.5rem) auto clamp(3rem, 6vw, 5rem);
    max-width: var(--tg-max);
    width: min(calc(100% - 40px), var(--tg-max));
}

.tg-blog-sidebar,
.tg-single-sidebar {
    position: sticky;
    top: 118px;
}

.tg-sidebar-card {
    background: var(--tg-surface);
    border: 1px solid var(--tg-border);
    border-radius: 22px;
    box-shadow: var(--tg-shadow-soft);
    margin-bottom: 1rem;
    padding: 1.2rem;
}

.tg-sidebar-card h2,
.tg-sidebar-card h3 {
    color: var(--tg-ink);
    font-size: 1rem;
    margin: 0 0 0.8rem;
}

.tg-sidebar-card ul {
    margin-bottom: 0;
    padding-left: 1.1rem;
}

.tg-blog-feed .wp-block-post-template {
    display: grid;
    gap: 1.2rem;
}

.tg-post-card {
    background: var(--tg-surface);
    border: 1px solid var(--tg-border);
    border-radius: 24px;
    box-shadow: var(--tg-shadow-soft);
    overflow: hidden;
}

.tg-post-card-inner {
    padding: 1.3rem;
}

.tg-post-card .wp-block-post-featured-image {
    background: var(--tg-soft-blue);
    margin: 0;
}

.tg-post-card .wp-block-post-featured-image img {
    aspect-ratio: 16 / 8;
    object-fit: cover;
    width: 100%;
}

.tg-post-card .wp-block-post-title {
    font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.9rem);
    line-height: 1.18;
    margin: 0.4rem 0;
}

.tg-post-card .wp-block-post-title a {
    color: var(--tg-ink);
    text-decoration: none;
}

.tg-post-card .wp-block-post-excerpt__excerpt {
    color: var(--tg-muted);
}

.tg-post-meta {
    color: var(--tg-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.88rem;
    gap: 0.7rem;
}

.tg-read-more a,
.wp-block-read-more {
    color: var(--tg-primary-dark);
    font-weight: 850;
    text-decoration: none;
}

.tg-pagination {
    margin-top: 1.6rem;
}

.tg-single-meta {
    color: var(--tg-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.tg-featured-image {
    margin: clamp(1.4rem, 3vw, 2.4rem) 0 0;
}

.tg-featured-image img {
    border-radius: 24px;
    box-shadow: var(--tg-shadow-soft);
    width: 100%;
}

.tg-post-nav {
    border-top: 1px solid var(--tg-border);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

.tg-comments {
    margin-top: 2rem;
}

.tg-service-hero {
    background:
        linear-gradient(135deg, rgba(30,81,129,.92), rgba(13,65,71,.92)),
        radial-gradient(circle at top right, rgba(162,196,56,.26), transparent 38%);
    color: #ffffff;
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.tg-service-hero .wp-block-post-title,
.tg-service-hero p {
    color: #ffffff;
}

.tg-service-layout {
    align-items: start;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    margin: clamp(2rem, 4vw, 3.5rem) auto clamp(3rem, 6vw, 5rem);
    max-width: var(--tg-max);
    width: min(calc(100% - 40px), var(--tg-max));
}

.tg-service-aside {
    background: var(--tg-teal);
    border-radius: 24px;
    box-shadow: var(--tg-shadow-soft);
    color: #ffffff;
    padding: 1.4rem;
    position: sticky;
    top: 118px;
}

.tg-service-aside h2,
.tg-service-aside p {
    color: #ffffff;
}

.tg-service-aside a {
    color: var(--tg-accent);
    font-weight: 850;
}

.tg-not-found {
    min-height: 55vh;
    padding: clamp(3rem, 7vw, 6rem) 0;
    text-align: center;
}

/* Footer */
.tg-footer-cta {
    background: var(--tg-teal);
    color: #ffffff;
    padding: 2.2rem 0;
}

.tg-footer-cta .tg-section-inner {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.tg-footer-cta h2 {
    color: #ffffff;
    margin: 0 0 0.35rem;
}

.tg-footer-cta p {
    color: rgba(255,255,255,.78);
    margin: 0;
}

.tg-site-footer {
    background: #111b21;
    color: rgba(255,255,255,.74);
    padding: clamp(2.5rem, 5vw, 4.5rem) 0 1.4rem;
}

.tg-footer-inner {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.4fr 0.75fr 0.75fr 1fr;
}

.tg-site-footer h2,
.tg-site-footer h3,
.tg-site-footer .wp-block-site-title a {
    color: #ffffff;
}

.tg-site-footer a {
    color: rgba(255,255,255,.78);
    text-decoration: none;
}

.tg-site-footer a:hover {
    color: var(--tg-accent);
}

.tg-site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tg-site-footer li + li {
    margin-top: 0.45rem;
}

.tg-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 2.2rem;
    padding-top: 1.2rem;
}

.tg-footer-bottom p {
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 1080px) {
    .tg-site-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .tg-nav-wrap {
        justify-content: space-between;
        width: 100%;
    }

    .tg-hero-grid,
    .tg-process-grid,
    .tg-services-grid,
    .tg-proof-grid,
    .tg-service-layout,
    .tg-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tg-blog-layout,
    .tg-single-layout {
        grid-template-columns: 1fr;
    }

    .tg-blog-sidebar,
    .tg-single-sidebar,
    .tg-service-aside {
        position: static;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    .tg-topbar-inner,
    .tg-audit-banner .tg-section-inner,
    .tg-footer-cta .tg-section-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .tg-nav-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .tg-header-actions {
        width: 100%;
    }

    .tg-header-actions .wp-block-buttons,
    .tg-header-actions .wp-block-button,
    .tg-header-actions .wp-block-button__link,
    .theme-mode-toggle,
.theme-palette-toggle {
        width: 100%;
    }

    .tg-hero-grid,
    .tg-process-grid,
    .tg-services-grid,
    .tg-proof-grid,
    .tg-industries-grid,
    .tg-faq-grid,
    .tg-service-layout,
    .tg-footer-inner {
        grid-template-columns: 1fr;
    }

    .tg-hero {
        padding-top: 2.5rem;
    }

    .tg-proposal-card::before {
        height: 150px;
    }

    .tg-blog-layout,
    .tg-single-layout,
    .tg-service-layout,
    .tg-container,
    .tg-section-inner,
    .tg-site-header-inner,
    .tg-topbar-inner,
    .tg-footer-inner {
        width: min(calc(100% - 28px), var(--tg-max));
    }
}


/* Static front page */
.tg-static-front {
    min-height: 50vh;
}

.tg-static-front > *:first-child {
    margin-block-start: 0;
}


.theme-palette-toggle__swatch {
    background: linear-gradient(135deg, var(--tg-primary), var(--tg-accent));
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    box-shadow: 0 0 0 1px var(--tg-border);
    flex: 0 0 1rem;
    height: 1rem;
    width: 1rem;
}


/* Formula-compatible homepage sections */
.tg-formula-front {
    background: var(--tg-soft);
}

.tg-front-hero-content {
    background:
        radial-gradient(circle at 12% 15%, rgba(42, 160, 239, 0.18), transparent 32%),
        radial-gradient(circle at 90% 20%, rgba(162, 196, 56, 0.20), transparent 28%),
        linear-gradient(135deg, var(--tg-surface), var(--tg-soft-blue));
    border-bottom: 1px solid var(--tg-border);
    padding: clamp(3rem, 7vw, 6.5rem) max(1.25rem, calc((100vw - var(--tg-max)) / 2));
}

.tg-front-hero-content > * {
    max-width: 920px;
}

.tg-front-hero-content > :first-child {
    margin-top: 0;
}

.tg-front-hero-content h1,
.tg-front-hero-content h2:first-child {
    color: var(--tg-ink);
    font-size: clamp(2.4rem, 1.65rem + 3vw, 4.8rem);
    font-weight: 250;
    letter-spacing: -0.06em;
    line-height: 1;
    margin-bottom: 1rem;
}

.tg-front-hero-content p {
    color: var(--tg-text);
    font-size: clamp(1.05rem, 1rem + 0.35vw, 1.28rem);
    max-width: 760px;
}

.tg-home-services-section {
    background: var(--tg-surface);
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.tg-home-services-section .tg-services-query {
    margin-top: 2rem;
}

.tg-formula-service-card {
    background: linear-gradient(180deg, var(--tg-surface), var(--tg-soft));
    border: 1px solid var(--tg-border);
    border-radius: 28px;
    box-shadow: var(--tg-shadow-soft);
    min-height: 100%;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.tg-formula-service-card::before {
    background: var(--tg-soft-blue);
    border-radius: 22px;
    content: "";
    display: block;
    height: 112px;
    margin: 1rem 1rem 0;
}

.tg-formula-service-card::after {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    height: 76px;
    left: 2rem;
    opacity: 0.98;
    position: absolute;
    top: 2rem;
    width: 96px;
}

.tg-services-query .wp-block-post:nth-child(6n+1) .tg-formula-service-card::after { background-image: url("assets/svg/local-search.svg"); }
.tg-services-query .wp-block-post:nth-child(6n+2) .tg-formula-service-card::after { background-image: url("assets/svg/technical-audit.svg"); }
.tg-services-query .wp-block-post:nth-child(6n+3) .tg-formula-service-card::after { background-image: url("assets/svg/content-growth.svg"); }
.tg-services-query .wp-block-post:nth-child(6n+4) .tg-formula-service-card::after { background-image: url("assets/svg/ecommerce-seo.svg"); }
.tg-services-query .wp-block-post:nth-child(6n+5) .tg-formula-service-card::after { background-image: url("assets/svg/paid-media.svg"); }
.tg-services-query .wp-block-post:nth-child(6n) .tg-formula-service-card::after { background-image: url("assets/svg/reporting.svg"); }

.tg-service-card-image {
    margin: 0;
    position: relative;
    z-index: 2;
}

.tg-service-card-image img {
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    margin: 1rem 1rem 0;
    object-fit: cover;
    width: calc(100% - 2rem);
}

.tg-service-card-image + .tg-service-card-body,
.tg-service-card-body {
    padding: 1.25rem 1.35rem 1.45rem;
    position: relative;
    z-index: 3;
}

.tg-service-card-title {
    font-size: clamp(1.15rem, 1rem + 0.45vw, 1.45rem);
    margin: 0 0 0.55rem;
    text-align: center;
}

.tg-service-card-title a {
    color: var(--tg-ink);
    text-decoration: none;
}

.tg-service-card-excerpt {
    color: var(--tg-muted);
    font-size: 0.96rem;
    text-align: center;
}

.tg-service-card-link {
    color: var(--tg-primary-dark);
    display: table;
    font-weight: 850;
    margin: 1rem auto 0;
    text-align: center;
    text-decoration: none;
}

.tg-empty-state {
    background: var(--tg-soft);
    border: 1px dashed var(--tg-border);
    border-radius: 24px;
    padding: 2rem;
}

.tg-home-insights-section {
    background:
        radial-gradient(circle at 12% 20%, rgba(42, 160, 239, 0.12), transparent 30%),
        var(--tg-soft);
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.tg-home-insights-layout {
    align-items: flex-start;
    margin-top: 2rem;
}

.tg-home-posts-query .wp-block-post-template {
    gap: 1.2rem;
}

.tg-home-post-card .tg-post-card-image img {
    aspect-ratio: 16 / 9;
}

.tg-home-insights-sidebar {
    position: sticky;
    top: 118px;
}

.tg-headline-list .wp-block-latest-posts__list,
.tg-headline-list ul {
    list-style: none;
    padding-left: 0;
}

.tg-headline-list li {
    border-top: 1px solid var(--tg-border);
    padding: 0.75rem 0;
}

.tg-headline-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.tg-headline-list a {
    color: var(--tg-ink);
    font-weight: 800;
    text-decoration: none;
}

.tg-headline-list time {
    color: var(--tg-muted);
    display: block;
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

@media (max-width: 1080px) {
    .tg-home-insights-sidebar {
        position: static;
    }

    .tg-home-insights-layout {
        display: grid !important;
        grid-template-columns: 1fr;
    }

    .tg-home-insights-layout > .wp-block-column {
        flex-basis: auto !important;
    }
}

@media (max-width: 760px) {
    .tg-front-hero-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .tg-home-posts-query .wp-block-post-template,
    .tg-services-query .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
}
