/* ==========================================================================
   Vladimír Gábor — Real Estate Broker Theme
   Brand: Riešime bývanie
   ========================================================================== */

/* Google Fonts loaded via <link preload> in default.hbs */

/* ==========================================================================
   1. Design Tokens
   ========================================================================== */

:root {
    /* Brand Colors */
    --oxford-blue: #0E1A34;
    --mint-cream: #F0F7EE;
    --arctic-lime: #E0FF4F;
    --middle-blue-green: #75DBCD;
    --carmine: #8C0017;
    --lava: #D10023;
    --black: #000000;

    /* Semantic Colors */
    --color-bg: #FAFBF8;
    --color-bg-alt: var(--mint-cream);
    --color-bg-dark: var(--oxford-blue);
    --color-text: var(--oxford-blue);
    --color-text-secondary: #4A5168;
    --color-text-muted: #7A7F91;
    --color-text-on-dark: #E8EBF0;
    --color-accent: var(--lava);
    --color-accent-hover: var(--carmine);
    --color-border: #E2E5DC;
    --color-border-light: #F0F1ED;
    --color-card: #FFFFFF;
    --color-card-hover: #FAFBF8;

    /* Typography */
    --font-primary: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Layout */
    --container-width: 1200px;
    --container-narrow: 780px;
    --container-wide: 1400px;
    --header-height: 80px;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.7s;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(14, 26, 52, 0.04);
    --shadow-md: 0 4px 16px rgba(14, 26, 52, 0.06);
    --shadow-lg: 0 8px 32px rgba(14, 26, 52, 0.08);
    --shadow-xl: 0 16px 48px rgba(14, 26, 52, 0.12);

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

/* ==========================================================================
   3. Utility Classes
   ========================================================================== */

.gh-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

.gh-inner--narrow {
    max-width: var(--container-narrow);
}

.gh-inner--wide {
    max-width: var(--container-wide);
}

.gh-outer {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

/* Section label (small caps accent) */
.vg-label {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.vg-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--color-accent);
    display: inline-block;
}

/* Reveal animation */
.vg-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo);
}

.vg-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.vg-stagger > .vg-reveal:nth-child(1) { transition-delay: 0s; }
.vg-stagger > .vg-reveal:nth-child(2) { transition-delay: 0.1s; }
.vg-stagger > .vg-reveal:nth-child(3) { transition-delay: 0.2s; }
.vg-stagger > .vg-reveal:nth-child(4) { transition-delay: 0.3s; }
.vg-stagger > .vg-reveal:nth-child(5) { transition-delay: 0.4s; }
.vg-stagger > .vg-reveal:nth-child(6) { transition-delay: 0.5s; }

/* ==========================================================================
   4. Header / Navigation
   ========================================================================== */

.gh-head {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(250, 251, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border-light);
    transition: background var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.gh-head.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.gh-head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* Logo */
.gh-head-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.gh-head-logo {
    display: flex;
    align-items: center;
    font-weight: var(--font-weight-bold);
    font-size: 1.15rem;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.gh-head-logo img {
    max-height: 42px;
    width: auto;
}

/* Navigation */
.gh-head-menu {
    display: flex;
    align-items: center;
}

.gh-head-menu .nav {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
}

.gh-head-menu .nav li {
    list-style: none;
}

.gh-head-menu .nav a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    position: relative;
    transition: color var(--duration-fast) var(--ease-out);
}

.gh-head-menu .nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: var(--space-md);
    right: var(--space-md);
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.gh-head-menu .nav a:hover {
    color: var(--color-text);
}

.gh-head-menu .nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Current page highlight */
.gh-head-menu .nav .nav-current a {
    color: var(--color-text);
}

.gh-head-menu .nav .nav-current a::after {
    transform: scaleX(1);
}

/* Head actions (phone, search) */
.gh-head-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.gh-head-phone {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    transition: background var(--duration-fast) var(--ease-out);
}

.gh-head-phone:hover {
    background: var(--middle-blue-green);
    color: var(--oxford-blue);
}

.gh-head-phone svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

/* Search button */
.gh-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--color-text-secondary);
    border-radius: 50%;
    transition: color var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
}

.gh-search:hover {
    color: var(--color-text);
    background: var(--color-bg-alt);
}

.gh-search svg {
    width: 18px;
    height: 18px;
}

/* Mobile burger */
.gh-burger {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
}

.gh-burger::before,
.gh-burger::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--color-text);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.gh-burger::before { top: 14px; }
.gh-burger::after { bottom: 14px; }

/* Mobile menu open state */
body.gh-head-open .gh-burger::before {
    transform: translateY(5px) rotate(45deg);
}

body.gh-head-open .gh-burger::after {
    transform: translateY(-5px) rotate(-45deg);
}

/* ==========================================================================
   5. Hero Section (Homepage)
   ========================================================================== */

.vg-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--mint-cream);
    overflow: hidden;
}

/* Soft radial glow */
.vg-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 50%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(117, 219, 205, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.vg-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border-light);
}

.vg-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-xl) 0;
    width: 100%;
}

.vg-hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.vg-hero-label {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.vg-hero-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--color-accent);
}

.vg-hero h1 {
    color: var(--oxford-blue);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s forwards;
}

.vg-hero h1 span {
    color: var(--color-accent);
}

.vg-hero-desc {
    font-size: 1.1rem;
    font-weight: var(--font-weight-light);
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-2xl);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s forwards;
}

.vg-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.8s forwards;
}

/* Outline button on light hero */
.vg-hero .vg-btn--outline {
    color: var(--oxford-blue);
    border-color: var(--color-border);
}

.vg-hero .vg-btn--outline:hover {
    border-color: var(--oxford-blue);
    color: var(--oxford-blue);
}

/* Primary CTA button */
.vg-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out-expo);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.vg-btn--primary {
    background: var(--color-accent);
    color: #FFFFFF;
}

.vg-btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(209, 0, 35, 0.25);
}

.vg-btn--outline {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.vg-btn--outline:hover {
    border-color: var(--middle-blue-green);
    color: var(--middle-blue-green);
}

.vg-btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.vg-btn:hover svg {
    transform: translateX(3px);
}

/* Hero photo */
.vg-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeIn 1s var(--ease-out-expo) 0.1s forwards;
}

.vg-hero-photo {
    position: relative;
    z-index: 2;
    width: 300px;
    height: 420px;
}

.vg-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 8px 24px rgba(14, 26, 52, 0.1));
}

/* No decorative frame for transparent photo */
.vg-hero-photo::before {
    display: none;
}

/* Stats bar — light, grounded */
.vg-hero-stats {
    display: flex;
    gap: 0;
    width: 100%;
    background: #FFFFFF;
    border-top: 1px solid var(--color-border-light);
    padding: var(--space-2xl) var(--space-xl);
    max-width: var(--container-width);
    margin: var(--space-xl) auto 0;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 1s forwards;
}

.vg-stat {
    flex: 1;
    text-align: center;
    padding: 0 var(--space-xl);
    position: relative;
}

.vg-stat + .vg-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: var(--color-border-light);
}

.vg-stat-number {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--oxford-blue);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.vg-stat-label {
    font-size: 0.78rem;
    font-weight: var(--font-weight-light);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   6. Services Section
   ========================================================================== */

.vg-services {
    padding: var(--space-4xl) 0;
    background: var(--color-bg);
}

.vg-services-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.vg-section-header {
    max-width: 560px;
    margin-bottom: var(--space-3xl);
}

.vg-section-header h2 {
    margin-bottom: var(--space-md);
}

.vg-section-header p {
    font-size: 1.05rem;
    font-weight: var(--font-weight-light);
}

.vg-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.vg-service-card {
    padding: var(--space-2xl) var(--space-xl);
    background: var(--color-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.vg-service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.vg-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.vg-service-card:hover::after {
    transform: scaleX(1);
}

.vg-service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: var(--oxford-blue);
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

.vg-service-card:hover .vg-service-icon {
    background: var(--color-accent);
    color: #FFFFFF;
}

.vg-service-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.vg-service-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
}

.vg-service-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   7. Blog Feed (Post Cards)
   ========================================================================== */

.vg-feed-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-alt);
}

.vg-feed-section-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.vg-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.vg-feed-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
    border: 1px solid var(--color-border-light);
}

.vg-feed-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.vg-feed-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.vg-feed-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.vg-feed-card:hover .vg-feed-card-image img {
    transform: scale(1.04);
}

.vg-feed-card-content {
    padding: var(--space-xl);
}

.vg-feed-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.vg-feed-card h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: var(--space-sm);
    transition: color var(--duration-fast) var(--ease-out);
}

.vg-feed-card:hover h3 {
    color: var(--color-accent);
}

.vg-feed-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vg-feed-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.vg-feed-card-meta time {
    font-weight: var(--font-weight-light);
}

.vg-feed-card-meta span {
    color: var(--color-border);
}

/* Featured / first post - larger */
.vg-feed-card.is-featured {
    grid-column: span 2;
}

.vg-feed-card.is-featured .vg-feed-card-image {
    aspect-ratio: 16 / 9;
}

.vg-feed-card.is-featured h3 {
    font-size: 1.5rem;
}

/* ==========================================================================
   8. Single Post
   ========================================================================== */

.vg-article {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-4xl);
}

.vg-article-header {
    max-width: var(--container-narrow);
    margin: 0 auto var(--space-2xl);
    padding: 0 var(--space-xl);
    text-align: center;
}

.vg-article-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.vg-article-header h1 {
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
}

.vg-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.vg-article-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.vg-article-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.vg-article-author-name {
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

/* Feature image */
.vg-article-image {
    max-width: var(--container-width);
    margin: 0 auto var(--space-3xl);
    padding: 0 var(--space-xl);
}

.vg-article-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

/* Article content - Ghost editor output */
.vg-article-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
}

.vg-article-content h2 {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-lg);
    font-size: 1.75rem;
}

.vg-article-content h3 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    font-size: 1.35rem;
}

.vg-article-content p {
    margin-bottom: var(--space-lg);
}

.vg-article-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: text-decoration-color var(--duration-fast) var(--ease-out);
}

.vg-article-content a:hover {
    text-decoration-color: transparent;
}

.vg-article-content blockquote {
    margin: var(--space-2xl) 0;
    padding: var(--space-xl) var(--space-2xl);
    border-left: 3px solid var(--color-accent);
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text);
}

.vg-article-content img {
    border-radius: var(--radius-md);
    margin: var(--space-2xl) 0;
}

.vg-article-content ul,
.vg-article-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.vg-article-content li {
    margin-bottom: var(--space-sm);
}

.vg-article-content figure {
    margin: var(--space-2xl) 0;
}

.vg-article-content figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

/* Ghost card overrides */
.vg-article-content .kg-card {
    margin: var(--space-2xl) 0;
}

.vg-article-content .kg-image-card img,
.vg-article-content .kg-gallery-image img {
    border-radius: var(--radius-md);
}

.vg-article-content .kg-width-wide {
    max-width: var(--container-width);
    margin-left: calc(50% - min(50vw, var(--container-width) / 2));
    margin-right: calc(50% - min(50vw, var(--container-width) / 2));
    padding: 0 var(--space-xl);
}

.vg-article-content .kg-width-full {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.vg-article-content .kg-width-full img {
    border-radius: 0;
}

.vg-article-content .kg-bookmark-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* ==========================================================================
   9. Author CTA Section
   ========================================================================== */

.vg-author-cta {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border-light);
}

.vg-author-cta-inner {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: flex-start;
    gap: var(--space-2xl);
}

.vg-author-cta-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--color-bg);
}

.vg-author-cta-content {
    flex: 1;
}

.vg-author-cta-label {
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xs);
}

.vg-author-cta-content h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}

.vg-author-cta-content > p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.vg-author-cta-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.vg-btn--outline-dark {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.vg-btn--outline-dark:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

@media (max-width: 768px) {
    .vg-author-cta-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .vg-author-cta-actions {
        justify-content: center;
    }
}

/* ==========================================================================
   10. Related Posts
   ========================================================================== */

.vg-related {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--color-border-light);
}

.vg-related-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ==========================================================================
   11. Pagination
   ========================================================================== */

.vg-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-2xl) 0;
}

.vg-pagination a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
}

.vg-pagination a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.vg-pagination .vg-page-number {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   12. Page / Landing Page Template
   ========================================================================== */

.vg-page {
    padding: 0 0 var(--space-4xl);
}

/* Landing header - dark hero banner */
.vg-landing-header {
    background: var(--color-bg-dark);
    padding: var(--space-4xl) var(--space-xl) var(--space-3xl);
    text-align: center;
}

.vg-landing-header-inner {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.vg-landing-header h1 {
    color: #FFFFFF;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.vg-landing-subtitle {
    font-size: 1.15rem;
    font-weight: var(--font-weight-light);
    color: var(--color-text-on-dark);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

.vg-page-tags {
    margin-top: var(--space-lg);
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.vg-page-tags a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--middle-blue-green);
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid rgba(117, 219, 205, 0.3);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
}

.vg-page-tags a:hover {
    background: rgba(117, 219, 205, 0.1);
}

/* Landing content - wider, better spacing */
.vg-landing-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl) 0;
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
}

.vg-landing-content h2 {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-lg);
    font-size: 1.6rem;
    color: var(--color-text);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

.vg-landing-content h3 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

.vg-landing-content p {
    margin-bottom: var(--space-lg);
}

.vg-landing-content ul,
.vg-landing-content ol {
    margin-bottom: var(--space-xl);
    padding-left: var(--space-lg);
}

.vg-landing-content li {
    margin-bottom: var(--space-md);
    padding-left: var(--space-sm);
}

.vg-landing-content li strong {
    color: var(--color-text);
}

.vg-landing-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Landing page bottom CTA */
.vg-landing-cta {
    max-width: var(--container-narrow);
    margin: var(--space-3xl) auto 0;
    padding: 0 var(--space-xl);
}

.vg-landing-cta-inner {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-2xl);
    text-align: center;
}

.vg-landing-cta-inner h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.vg-landing-cta-inner p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: var(--space-xl);
}

.vg-landing-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ==========================================================================
   13. Tag / Author Archive Pages
   ========================================================================== */

.vg-archive-header {
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
    background: var(--color-bg-dark);
    color: #FFFFFF;
}

.vg-archive-header h1 {
    color: #FFFFFF;
    margin-bottom: var(--space-sm);
}

.vg-archive-header p {
    color: var(--color-text-on-dark);
    font-weight: var(--font-weight-light);
    max-width: 560px;
    margin: 0 auto;
}

.vg-archive-header .vg-archive-count {
    font-size: 0.85rem;
    color: var(--middle-blue-green);
    margin-top: var(--space-md);
}

/* ==========================================================================
   14. Footer
   ========================================================================== */

.gh-foot {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.gh-foot-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.gh-foot-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: var(--space-xl);
}

.gh-foot-brand p {
    font-size: 0.9rem;
    font-weight: var(--font-weight-light);
    color: var(--color-text-on-dark);
    max-width: 320px;
    line-height: 1.7;
    margin-top: var(--space-md);
}

.gh-foot-brand .gh-foot-logo {
    display: inline-block;
}

.gh-foot-brand .gh-foot-logo img {
    max-height: 36px;
}

.gh-foot-nav h4 {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--middle-blue-green);
    margin-bottom: var(--space-lg);
}

.gh-foot-menu {
    list-style: none;
}

.gh-foot-menu .nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.gh-foot-menu .nav li {
    list-style: none;
}

.gh-foot-menu .nav a {
    font-size: 0.9rem;
    font-weight: var(--font-weight-light);
    color: var(--color-text-on-dark);
    transition: color var(--duration-fast) var(--ease-out);
}

.gh-foot-menu .nav a:hover {
    color: #FFFFFF;
}

.gh-foot-contact p {
    font-size: 0.9rem;
    font-weight: var(--font-weight-light);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--color-text-on-dark);
}

.gh-foot-contact a:hover {
    color: #FFFFFF;
}

/* Footer bottom bar */
.gh-foot-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gh-copyright {
    font-size: 0.8rem;
    font-weight: var(--font-weight-light);
    color: rgba(232, 235, 240, 0.5);
}

.gh-foot-social {
    display: flex;
    gap: var(--space-md);
}

.gh-foot-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-on-dark);
    transition: all var(--duration-fast) var(--ease-out);
}

.gh-foot-social a:hover {
    border-color: var(--middle-blue-green);
    color: var(--middle-blue-green);
    transform: translateY(-2px);
}

.gh-foot-social svg {
    width: 16px;
    height: 16px;
}

.gh-powered-by {
    font-size: 0.75rem;
    color: rgba(232, 235, 240, 0.3);
}

.gh-powered-by a {
    color: rgba(232, 235, 240, 0.3);
}

.gh-powered-by a:hover {
    color: rgba(232, 235, 240, 0.6);
}

/* ==========================================================================
   15. Error Page
   ========================================================================== */

.vg-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.vg-error-code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-border);
    line-height: 1;
    letter-spacing: -0.05em;
}

.vg-error h1 {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
}

.vg-error p {
    max-width: 400px;
    margin-bottom: var(--space-xl);
}

/* ==========================================================================
   16. Testimonials
   ========================================================================== */

.vg-testimonials {
    padding: var(--space-4xl) 0;
    background: var(--color-bg);
}

.vg-testimonials-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.vg-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.vg-testimonial {
    background: var(--color-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    position: relative;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.vg-testimonial::before {
    content: '\201C';
    position: absolute;
    top: var(--space-md);
    left: var(--space-xl);
    font-size: 4rem;
    line-height: 1;
    color: var(--color-accent);
    opacity: 0.15;
    font-family: Georgia, serif;
}

.vg-testimonial:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.vg-testimonial-text {
    font-size: 0.95rem;
    font-style: italic;
    font-weight: var(--font-weight-light);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.vg-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vg-testimonial-author cite {
    font-style: normal;
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    color: var(--color-text);
}

.vg-testimonial-author span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: var(--font-weight-light);
}

/* ==========================================================================
   17. CTA / Contact Section
   ========================================================================== */

.vg-cta {
    padding: var(--space-4xl) 0;
    background: var(--oxford-blue);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vg-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(117, 219, 205, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.vg-cta-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 1;
}

.vg-cta h2 {
    color: #FFFFFF;
    margin-bottom: var(--space-md);
}

.vg-cta p {
    color: var(--color-text-on-dark);
    font-size: 1.05rem;
    font-weight: var(--font-weight-light);
    margin-bottom: var(--space-2xl);
}

.vg-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.vg-cta-phone {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    color: var(--arctic-lime);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.vg-cta-phone svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   17. Keyframe Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   18. Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .vg-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vg-feed {
        grid-template-columns: repeat(2, 1fr);
    }

    .vg-feed-card.is-featured {
        grid-column: span 2;
    }

    .gh-foot-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

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

    :root {
        --space-xl: 1.5rem;
        --space-2xl: 2.5rem;
        --space-3xl: 3.5rem;
        --space-4xl: 5rem;
    }

    /* Mobile nav */
    .gh-burger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gh-head-menu,
    .gh-head-actions .gh-head-phone {
        display: none;
    }

    body.gh-head-open .gh-head-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: #FAFBF8;
        background: var(--color-bg);
        padding: var(--space-xl);
        z-index: 999;
        overflow-y: auto;
        animation: fadeIn 0.3s var(--ease-out);
    }

    body.gh-head-open .gh-head-menu .nav {
        flex-direction: column;
        gap: 0;
    }

    body.gh-head-open .gh-head-menu .nav a {
        font-size: 1.25rem;
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--color-border-light);
    }

    /* Hero mobile */
    .vg-hero-inner {
        padding: var(--space-2xl) var(--space-xl) 0;
    }

    .vg-hero-photo {
        width: 220px;
        height: 310px;
    }

    .vg-hero-actions {
        flex-wrap: wrap;
    }

    .vg-hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
        padding: var(--space-xl);
    }

    .vg-stat + .vg-stat::before {
        display: none;
    }

    /* Services mobile */
    .vg-services-grid {
        grid-template-columns: 1fr;
    }

    /* Feed mobile */
    .vg-feed {
        grid-template-columns: 1fr;
    }

    .vg-feed-card.is-featured {
        grid-column: span 1;
    }

    /* Footer mobile */
    .gh-foot-top {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .gh-foot-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    /* Author */
    .vg-author-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }

    .vg-hero h1 {
        font-size: 2.2rem;
    }

    .vg-btn {
        width: 100%;
        justify-content: center;
    }

    .vg-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .vg-cta-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   19. Dark Mode (auto via custom setting)
   ========================================================================== */

.theme-dark {
    --color-bg: #0B0F1A;
    --color-bg-alt: #111827;
    --color-bg-dark: #060A12;
    --color-text: #E8EBF0;
    --color-text-secondary: #A0A6B5;
    --color-text-muted: #6B7280;
    --color-border: #1F2937;
    --color-border-light: #1A2332;
    --color-card: #111827;
    --color-card-hover: #1A2332;
}

.theme-dark .gh-head {
    background: rgba(11, 15, 26, 0.92);
    border-bottom-color: var(--color-border-light);
}

.theme-dark .gh-search:hover {
    background: var(--color-card);
}

.theme-dark .vg-service-icon {
    background: rgba(117, 219, 205, 0.1);
}

/* ==========================================================================
   20. Ghost Specific: Members & Subscriber
   ========================================================================== */

.gh-head-members {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.gh-head-link {
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    padding: var(--space-sm) var(--space-md);
}

.gh-head-link:hover {
    color: var(--color-text);
}

.gh-head-btn {
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    padding: 8px 20px;
    background: var(--color-accent);
    color: #FFFFFF;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
}

.gh-head-btn:hover {
    background: var(--color-accent-hover);
}

/* ==========================================================================
   21. Print Styles
   ========================================================================== */

@media print {
    .gh-head,
    .gh-foot,
    .vg-hero-stats,
    .vg-services,
    .vg-cta,
    .vg-related,
    .vg-pagination {
        display: none;
    }

    .vg-article-content {
        max-width: 100%;
        padding: 0;
    }
}
