/*
Theme Name: Jer Chapman GP Child
Template: generatepress
Version: 1.2.3
Description: GeneratePress child theme generated by the Phasma migration rail from the source site's own stylesheets. Reproduces the global look; see the engagement's draft record for what was not carried.
*/

/* Design tokens — written by the Phasma migration rail from the signed design brief.
 *
 * PLATFORM-OWNED. Every value below was validated before it was written and none of it is
 * model output; the stylesheet under it refers to these by name. Polish the site here:
 * change a value once and every rule that uses it follows. Values the brief did not give
 * (or that it gave badly — see the draft record's `brief_unhonoured`) carry the neutral
 * default, so the site renders either way.
 */
:root {
	--phasma-color-primary: #1a1a14;
	--phasma-color-secondary: #232b38;
	--phasma-color-background: #ffffff;
	--phasma-color-text: #1a192e;
	--phasma-color-muted: #5b6874;
	--phasma-color-accent: #1a1a14;
	--phasma-color-on-primary: #ffffff;
	--phasma-color-on-secondary: #ffffff;
	--phasma-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--phasma-font-body: Courier New;
	--phasma-size-body: 17px;
	--phasma-line-body: 1.6;
	--phasma-weight-body: 400;
	--phasma-size-h1: 40px;
	--phasma-line-h1: 1.15;
	--phasma-weight-h1: 700;
	--phasma-size-h2: 30px;
	--phasma-line-h2: 1.2;
	--phasma-weight-h2: 700;
	--phasma-size-h3: 24px;
	--phasma-line-h3: 1.25;
	--phasma-weight-h3: 600;
	--phasma-size-small: 14px;
	--phasma-line-small: 1.5;
	--phasma-weight-small: 400;
	--phasma-container-max: 1100px;
	--phasma-grid-columns: 12;
	--phasma-space-1: 4px;
	--phasma-space-2: 8px;
	--phasma-space-3: 16px;
	--phasma-space-4: 24px;
	--phasma-space-5: 32px;
	--phasma-space-6: 48px;
	--phasma-space-7: 64px;
}

@media (max-width: 782px) {
	:root {
		--phasma-size-body: 16px;
		--phasma-size-h1: 32px;
		--phasma-size-h2: 26px;
		--phasma-size-h3: 21px;
	}
}

/* =============================================================
   JER CHAPMAN — GeneratePress Child Theme
   Design brief: body font = Courier New, primary = #1a1a14,
   header owned by platform, no sidebar, full-width handled by platform.
   ============================================================= */

/* -------------------------------------------------------------
   BASE — body, typography, links
   ------------------------------------------------------------- */

html {
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--phasma-color-primary);
    color: var(--phasma-color-on-primary);
    font-family: var(--phasma-font-body);
    font-size: var(--phasma-size-body);
    font-weight: var(--phasma-weight-body);
    line-height: var(--phasma-line-body);
    overflow-x: hidden;
    max-width: 100%;
}

/* Grid children must not overflow their container */
[style*="display: grid"] > *,
[style*="display:grid"] > * {
    min-width: 0;
}

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

/* -------------------------------------------------------------
   LINKS
   ------------------------------------------------------------- */

a {
    color: #55ac6b;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #7dc490;
}

/* Prevent global a:hover bleeding into buttons */
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-amber:hover,
.btn-buy:hover {
    color: inherit;
}

.btn-buy:hover {
    color: var(--phasma-color-primary);
}

strong {
    font-weight: 600;
    color: var(--phasma-color-on-primary);
}

em {
    font-style: italic;
}

/* -------------------------------------------------------------
   HEADINGS — use phasma type tokens
   ------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--phasma-font-heading);
    color: var(--phasma-color-on-primary);
    line-height: var(--phasma-line-h1);
    margin-bottom: 0.75em;
}

h1 {
    font-size: var(--phasma-size-h1);
    font-weight: var(--phasma-weight-h1);
    line-height: var(--phasma-line-h1);
}

h2 {
    font-size: var(--phasma-size-h2);
    font-weight: var(--phasma-weight-h2);
    line-height: var(--phasma-line-h2);
}

h3 {
    font-size: var(--phasma-size-h3);
    font-weight: var(--phasma-weight-h3);
    line-height: var(--phasma-line-h3);
}

h4 {
    font-size: var(--phasma-size-body);
    font-weight: var(--phasma-weight-h3);
    line-height: var(--phasma-line-body);
}

p {
    margin-bottom: 1.4em;
}

p:last-child {
    margin-bottom: 0;
}

small,
.text-small {
    font-size: var(--phasma-size-small);
    font-weight: var(--phasma-weight-small);
    line-height: var(--phasma-line-small);
}

/* -------------------------------------------------------------
   COLOUR TOKENS — local aliases using site palette
   ------------------------------------------------------------- */

:root {
    --jc-surface:      #242318;
    --jc-surface-alt:  #2d2b1e;
    --jc-border:       #3a3828;
    --jc-text:         #f0ece4;
    --jc-text-muted:   #b0b0a2;
    --jc-green:        #55ac6b;
    --jc-green-dark:   #3b9853;
    --jc-green-light:  #7dc490;
    --jc-amber:        #d4a96a;
    --jc-amber-dark:   #b8894a;
    --jc-radius:       4px;
    --jc-radius-lg:    8px;
}

/* -------------------------------------------------------------
   CONTAINER / LAYOUT
   ------------------------------------------------------------- */

.container {
    max-width: var(--phasma-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--phasma-space-5);
    padding-right: var(--phasma-space-5);
}

@media (max-width: 600px) {
    .container {
        padding-left: var(--phasma-space-3);
        padding-right: var(--phasma-space-3);
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .container {
        padding-left: var(--phasma-space-4);
        padding-right: var(--phasma-space-4);
    }
}

.section {
    padding: var(--phasma-space-7) 0;
}

.section-alt {
    background-color: var(--jc-surface);
}

.section-alt2 {
    background-color: var(--jc-surface-alt);
}

/* -------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ------------------------------------------------------------- */

.section-label {
    display: block;
    font-size: var(--phasma-size-small);
    font-weight: 600;
    color: var(--jc-green);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    margin-bottom: var(--phasma-space-3);
}

.section-intro {
    font-size: var(--phasma-size-body);
    color: var(--jc-text);
    max-width: 640px;
    margin-bottom: var(--phasma-space-6);
    line-height: 1.8;
}

.text-green  { color: var(--jc-green); }
.text-amber  { color: var(--jc-amber); }
.text-muted  { color: var(--jc-text-muted); }
.text-xs     { font-size: 0.8rem; }
.text-italic { font-style: italic; }
.text-center { text-align: center; }

/* Spacing utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--phasma-space-2); }
.mt-2 { margin-top: var(--phasma-space-3); }
.mt-3 { margin-top: var(--phasma-space-4); }
.mt-4 { margin-top: var(--phasma-space-5); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--phasma-space-2); }
.mb-2 { margin-bottom: var(--phasma-space-3); }
.mb-3 { margin-bottom: var(--phasma-space-4); }
.mb-4 { margin-bottom: var(--phasma-space-5); }

.text-block-center {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

/* -------------------------------------------------------------
   EYEBROW / PILL / PULL-QUOTE COMPONENTS
   ------------------------------------------------------------- */

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--jc-green);
    font-weight: 600;
    margin-bottom: var(--phasma-space-3);
}

.meta-pill {
    display: inline-block;
    background: var(--jc-surface-alt);
    border: 1px solid var(--jc-border);
    border-radius: 3px;
    padding: 0.2rem 0.6rem;
    font-size: var(--phasma-size-small);
    color: var(--jc-text-muted);
    font-family: var(--phasma-font-body);
    margin: 0.2rem 0.2rem 0.2rem 0;
}

.blockquote-amber {
    border-left: 2px solid var(--jc-amber);
    padding: 0.75rem 1.25rem;
    font-style: italic;
    font-size: 0.88rem;
    color: var(--jc-text-muted);
    line-height: 1.7;
    margin: var(--phasma-space-3) 0;
}

.pull-quote {
    font-family: var(--phasma-font-body);
    font-style: italic;
    font-size: var(--phasma-size-h3);
    line-height: 1.5;
    color: var(--jc-text);
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.pull-quote .highlight {
    color: var(--jc-amber);
}

.terminal-line {
    font-family: var(--phasma-font-body);
    font-size: 0.85rem;
    color: var(--jc-text-muted);
    line-height: 1.7;
}

/* -------------------------------------------------------------
   INFO BOX / FEATURE TILE / FEATURE GRID
   ------------------------------------------------------------- */

.info-box {
    background: var(--jc-surface);
    border: 1px solid var(--jc-border);
    border-left: 3px solid var(--jc-green);
    border-radius: var(--jc-radius-lg);
    padding: 1.5rem 2rem;
}

.info-box.amber {
    border-left-color: var(--jc-amber);
}

.feature-tile {
    background: var(--jc-surface);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-radius-lg);
    padding: 1.25rem;
}

.feature-tile strong {
    display: block;
    color: var(--jc-amber);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.feature-tile span {
    color: var(--jc-text-muted);
    font-size: 0.9rem;
}

.feature-heading {
    font-family: var(--phasma-font-heading);
    font-size: var(--phasma-size-body);
    font-weight: 700;
    color: var(--phasma-color-on-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.feature-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.feature-grid-2 > * {
    min-width: 0;
}

@media (max-width: 820px) {
    .feature-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------
   SOCIAL BAR
   ------------------------------------------------------------- */

.social-bar {
    background: var(--jc-surface);
    border-bottom: 1px solid var(--jc-border);
    padding: 0.4rem 0;
}

.social-bar .container {
    display: flex;
    justify-content: flex-end;
}

.social-bar-links {
    display: flex;
    gap: var(--phasma-space-2);
    align-items: center;
}

.social-bar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--jc-text-muted);
    transition: color 0.2s;
    opacity: 0.7;
}

.social-bar-link:hover {
    color: var(--jc-green);
    opacity: 1;
}

.social-bar-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .social-bar .container {
        justify-content: center;
    }
}

/* -------------------------------------------------------------
   FOOTER SOCIAL
   ------------------------------------------------------------- */

.footer-social {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin: 0.25rem 0;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--jc-text-muted);
    transition: color 0.2s;
    opacity: 0.6;
}

.footer-social-link:hover {
    color: var(--jc-green);
    opacity: 1;
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* -------------------------------------------------------------
   NAVIGATION — layout / spacing only (colours are platform's)
   ------------------------------------------------------------- */

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

.site-nav > ul {
    display: flex;
    gap: 2rem;
}

.site-nav a {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.site-nav li {
    position: relative;
}

/* Dropdown arrow */
.site-nav .menu-item-has-children > a::after {
    content: '↓';
    font-size: 0.65em;
    opacity: 0.45;
    display: inline-block;
    margin-left: 0.4em;
    transition: transform 0.2s, opacity 0.2s;
}

.site-nav .menu-item-has-children:hover > a::after,
.site-nav .menu-item-has-children.open > a::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown panel */
.site-nav .sub-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--jc-surface);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-radius-lg);
    padding: 0.75rem 0 0.5rem;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    flex-direction: column;
    gap: 0;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.site-nav .sub-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.site-nav li:hover > .sub-menu,
.site-nav li.open > .sub-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.site-nav .sub-menu li {
    width: 100%;
}

.site-nav .sub-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: none;
    border-left: 2px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
}

.site-nav .sub-menu a:hover {
    border-left-color: var(--jc-green);
    background: var(--jc-surface-alt);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--phasma-space-2);
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--jc-surface);
        border-bottom: 1px solid var(--jc-border);
        padding: 1.5rem 2rem;
    }

    .site-nav.open {
        display: block;
    }

    .site-nav > ul {
        flex-direction: column;
        gap: 1.2rem;
    }

    .site-nav .sub-menu {
        display: none;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--jc-border);
        border-radius: 0;
        padding: 0.25rem 0 0.25rem 1rem;
        margin-top: 0.5rem;
        background: transparent;
        transition: none;
    }

    .site-nav .sub-menu::before {
        display: none;
    }

    .site-nav li:hover > .sub-menu {
        display: none;
        visibility: visible;
    }

    .site-nav li.open > .sub-menu {
        display: flex;
    }

    .site-nav .sub-menu a {
        padding: 0.4rem 0.75rem;
        font-size: 0.88rem;
    }
}

/* -------------------------------------------------------------
   HERO
   ------------------------------------------------------------- */

.hero {
    padding: var(--phasma-space-7) 0;
    background-color: var(--phasma-color-primary);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--phasma-space-7);
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: var(--phasma-size-small);
    font-weight: 600;
    color: var(--jc-green);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero h1 em {
    color: var(--jc-amber);
    font-style: italic;
}

.hero-sub {
    font-size: var(--phasma-size-body);
    color: var(--jc-text);
    max-width: 580px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-adams-quote {
    font-family: var(--phasma-font-body);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--jc-text-muted);
    opacity: 0.75;
    margin-top: var(--phasma-space-5);
    max-width: 480px;
    line-height: 1.6;
}

.hero-photo img {
    width: 100%;
    max-width: 280px;
    border-radius: 50%;
    border: 3px solid var(--jc-green);
    margin: 0 auto;
    transform-origin: center 80%;
    transition: transform 0.1s;
}

@keyframes jc-wiggle {
    0%   { transform: rotate(0deg); }
    15%  { transform: rotate(18deg); }
    35%  { transform: rotate(-14deg); }
    52%  { transform: rotate(10deg); }
    67%  { transform: rotate(-6deg); }
    80%  { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

.hero-photo img.is-wiggling {
    animation: jc-wiggle 0.9s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

@media (max-width: 860px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-photo {
        order: -1;
    }

    .hero-photo img {
        width: 180px;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .btn-group {
        justify-content: center;
    }
}

/* -------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 0.8em 1.9em;
    border-radius: var(--jc-radius);
    font-family: var(--phasma-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: 2px solid transparent;
    line-height: 1;
}

.btn-primary {
    background: var(--jc-green);
    color: var(--phasma-color-background);
    border-color: var(--jc-green);
}

.btn-primary:hover {
    background: var(--jc-green-dark);
    border-color: var(--jc-green-dark);
    color: var(--phasma-color-background);
}

.btn-secondary {
    background: transparent;
    color: var(--jc-text);
    border-color: var(--jc-border);
}

.btn-secondary:hover {
    border-color: var(--jc-green);
    color: var(--jc-green);
}

.btn-amber {
    background: var(--jc-amber);
    color: var(--phasma-color-primary);
    border-color: var(--jc-amber);
    font-weight: 700;
}

.btn-amber:hover {
    background: var(--jc-amber-dark);
    border-color: var(--jc-amber-dark);
    color: var(--phasma-color-primary);
}

.btn-buy {
    display: inline-block;
    background: var(--jc-amber);
    color: var(--phasma-color-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: var(--jc-radius);
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: -0.01em;
}

.btn-buy:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.btn-group {
    display: flex;
    gap: var(--phasma-space-3);
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 600px) {
    .btn,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .btn-group,
    .hero-actions,
    .error-actions,
    .about-closing-actions,
    .hosting-migrate-actions {
        flex-direction: column;
        width: 100%;
    }
}

/* -------------------------------------------------------------
   CLIENT STRIP
   ------------------------------------------------------------- */

.client-strip {
    background: var(--jc-surface);
    border-top: 1px solid var(--jc-border);
    border-bottom: 1px solid var(--jc-border);
    padding: 2.5rem 0;
    text-align: center;
}

.client-strip-label {
    display: block;
    font-size: var(--phasma-size-small);
    color: var(--jc-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0;
}

.client-logos a {
    font-family: var(--phasma-font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--jc-text-muted);
    opacity: 0.6;
    transition: color 0.2s, opacity 0.2s;
    text-decoration: none;
    letter-spacing: 0.01em;
    padding: 0.2rem 1.25rem;
    border-right: 1px solid var(--jc-border);
    line-height: 1;
}

.client-logos a:last-child {
    border-right: none;
}

.client-logos a:hover {
    color: var(--jc-text);
    opacity: 1;
}

.client-logos img {
    height: 34px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%) brightness(2);
    transition: opacity 0.2s, filter 0.2s;
}

.client-logos img:hover {
    opacity: 1;
    filter: none;
}

@media (max-width: 600px) {
    .client-logos {
        gap: 0.75rem 0;
    }

    .client-logos a {
        border-right: none;
        padding: 0.2rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* -------------------------------------------------------------
   SERVICES GRID
   ------------------------------------------------------------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
    gap: 1.25rem;
}

.services-grid > * {
    min-width: 0;
}

.service-card {
    background: var(--jc-surface-alt);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-radius-lg);
    padding: 1.75rem;
    transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
    border-color: var(--jc-green);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 1.6rem;
    margin-bottom: var(--phasma-space-3);
    display: block;
}

.service-card h3 {
    font-size: var(--phasma-size-h3);
    margin-bottom: 0.6em;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--jc-text);
    line-height: 1.7;
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.25rem;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* -------------------------------------------------------------
   NICHE GRID
   ------------------------------------------------------------- */

.niche-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.niche-grid > * {
    min-width: 0;
}

.niche-card {
    background: var(--jc-surface);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-radius-lg);
    padding: 2.5rem 2rem;
    transition: border-color 0.2s;
    min-width: 0;
    word-break: break-word;
}

.niche-card:hover {
    border-color: var(--jc-amber);
}

.niche-card h3 {
    font-size: var(--phasma-size-h3);
    margin-bottom: 0.75em;
}

.niche-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.enterprise-block {
    background: var(--jc-surface);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-radius-lg);
    padding: 2rem;
}

.enterprise-block h3 {
    font-size: var(--phasma-size-h3);
    margin-bottom: 0.5em;
}

.enterprise-block p {
    font-size: 0.95rem;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .niche-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .niche-grid {
        gap: 0.75rem;
    }
}

/* -------------------------------------------------------------
   TESTIMONIALS CAROUSEL
   ------------------------------------------------------------- */

.testimonials-carousel {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}

.testimonials-track {
    overflow: hidden;
}

.testimonial-card {
    background: var(--jc-surface);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-radius-lg);
    padding: 2.5rem 2.5rem 2rem;
    position: relative;
    display: none;
}

.testimonial-card.active {
    display: block;
    animation: jc-fadeIn 0.35s ease;
}

@keyframes jc-fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.testimonial-card::before {
    content: '\201C';
    font-family: var(--phasma-font-heading);
    font-size: 5rem;
    color: var(--jc-green);
    opacity: 0.2;
    position: absolute;
    top: 0.25rem;
    left: 1.5rem;
    line-height: 1;
    pointer-events: none;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.85;
    color: var(--jc-text);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--phasma-color-on-primary);
    font-style: normal;
    line-height: 1.6;
}

.testimonial-author a {
    color: var(--jc-amber);
    font-weight: 400;
}

.testimonial-author a:hover {
    color: var(--jc-amber-dark);
}

.testimonial-author .author-note {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--jc-text-muted);
    display: block;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--phasma-space-3);
    margin-top: 1.75rem;
}

.carousel-btn {
    background: var(--jc-surface);
    border: 1px solid var(--jc-border);
    border-radius: 50%;
    color: var(--jc-text-muted);
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.carousel-btn:hover {
    border-color: var(--jc-green);
    color: var(--jc-green);
}

.carousel-dots {
    display: flex;
    gap: var(--phasma-space-2);
    align-items: center;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--jc-border);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: var(--jc-green);
    transform: scale(1.3);
}

.testimonial-card.adams-quote {
    border-left-color: var(--jc-amber);
    border-left-width: 2px;
}

.testimonial-card.adams-quote .testimonial-text {
    color: var(--jc-text-muted);
    font-size: 0.98rem;
}

.testimonial-card.adams-quote .testimonial-author {
    color: var(--jc-amber);
    font-size: 0.85rem;
}

.testimonial-card.jer-quote {
    border-left-color: var(--jc-green);
}

.testimonial-card.jer-quote .testimonial-author {
    color: var(--jc-green);
}

@media (max-width: 600px) {
    .testimonial-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .carousel-controls {
        gap: var(--phasma-space-2);
    }
}

/* -------------------------------------------------------------
   AI SECTION
   ------------------------------------------------------------- */

.ai-section {
    background: linear-gradient(135deg, var(--jc-surface) 0%, var(--jc-surface-alt) 100%);
    border-top: 1px solid var(--jc-border);
    border-bottom: 1px solid var(--jc-border);
}

.ai-section h2 em {
    color: var(--jc-amber);
}

.ai-phasma-strip {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.ai-phasma-strip__logo img {
    height: 32px;
    width: auto;
    display: block;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.ai-phasma-strip__logo:hover img {
    opacity: 1;
}

/* -------------------------------------------------------------
   CTA SECTION
   ------------------------------------------------------------- */

.cta-section {
    background: var(--jc-surface);
    text-align: center;
    padding: var(--phasma-space-7) 0;
    border-top: 1px solid var(--jc-border);
}

.cta-section h2 {
    margin-bottom: var(--phasma-space-3);
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--jc-text);
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

.cta-section .btn-group {
    justify-content: center;
}

/* -------------------------------------------------------------
   CONTACT CTA
   ------------------------------------------------------------- */

.jc-contact-cta {
    background: var(--jc-surface);
    border-top: 1px solid var(--jc-border);
    padding: var(--phasma-space-7) 0;
}

.jc-cta-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.jc-cta-inner h2 {
    font-size: var(--phasma-size-h2);
    margin-bottom: 0.75rem;
}

.jc-cta-inner > p {
    color: var(--jc-text-muted);
    font-size: var(--phasma-size-body);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.jc-buy-block {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* -------------------------------------------------------------
   HOMEPAGE / WPFORMS
   ------------------------------------------------------------- */

.homepage-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.homepage-form .wpforms-form input[type="text"],
.homepage-form .wpforms-form input[type="email"],
.homepage-form .wpforms-form input[type="tel"],
.homepage-form .wpforms-form textarea,
.homepage-form .wpforms-form select {
    background: var(--phasma-color-primary) !important;
    border: 1px solid var(--jc-border) !important;
    border-radius: var(--jc-radius) !important;
    color: var(--jc-text) !important;
    padding: 0.75rem 1rem !important;
    font-family: var(--phasma-font-body) !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s !important;
}

.homepage-form .wpforms-form input:focus,
.homepage-form .wpforms-form textarea:focus {
    border-color: var(--jc-green) !important;
    outline: none !important;
    box-shadow: none !important;
}

.homepage-form .wpforms-form label {
    color: var(--jc-text) !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.35rem !important;
    display: block !important;
}

.homepage-form .wpforms-form .wpforms-submit-container {
    text-align: center !important;
}

.homepage-form .wpforms-form button[type="submit"],
.homepage-form .wpforms-form input[type="submit"] {
    background: var(--jc-green) !important;
    color: var(--phasma-color-background) !important;
    border: none !important;
    border-radius: var(--jc-radius) !important;
    padding: 0.85rem 2.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: opacity 0.2s !important;
    font-family: var(--phasma-font-body) !important;
}

.homepage-form .wpforms-form button[type="submit"]:hover {
    opacity: 0.85 !important;
}

.homepage-form .wpforms-field-container {
    display: grid;
    gap: 1.25rem;
}

.homepage-form .wpforms-confirmation-container-full {
    background: var(--jc-surface-alt) !important;
    border: 1px solid var(--jc-green) !important;
    border-radius: var(--jc-radius-lg) !important;
    padding: 1.5rem !important;
    color: var(--jc-text) !important;
    text-align: center !important;
}

/* -------------------------------------------------------------
   FOOTER SITEMAP
   ------------------------------------------------------------- */

.footer-sitemap {
    background: var(--jc-surface);
    border-top: 1px solid var(--jc-border);
    padding: 2.5rem 0 2rem;
}

.footer-sitemap .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-sitemap .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-sitemap .container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.footer-sitemap-col h4 {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--jc-green);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-sitemap-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-sitemap-col ul li a {
    font-size: 0.85rem;
    color: var(--jc-text-muted);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.15s;
}

.footer-sitemap-col ul li a:hover {
    color: var(--jc-green);
}

.footer-sitemap-col ul li a.footer-easter {
    opacity: 0.4;
    font-style: italic;
}

.footer-sitemap-col ul li a.footer-easter:hover {
    opacity: 1;
    color: var(--jc-amber);
}

/* -------------------------------------------------------------
   SITE FOOTER
   ------------------------------------------------------------- */

.site-footer {
    background: var(--jc-surface);
    border-top: 1px solid var(--jc-border);
    padding: 2rem 0;
    color: var(--jc-text-muted);
    font-size: 0.85rem;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--phasma-space-3);
}

.site-footer a {
    color: var(--jc-text-muted);
}

.site-footer a:hover {
    color: var(--jc-green);
}

.footer-year-click {
    cursor: pointer;
    border-bottom: 1px dotted var(--jc-border);
}

.footer-harmless {
    color: inherit;
    opacity: 0.5;
}

.footer-harmless:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 1.5rem var(--phasma-space-3);
    }

    .footer-social {
        gap: 0.75rem;
    }
}

/* -------------------------------------------------------------
   ABOUT SECTION
   ------------------------------------------------------------- */

.about-section__inner {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 2rem;
    align-items: center;
}

.about-section__text {
    min-width: 0;
}

.about-section__scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding-top: 2rem;
    align-self: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.about-section__scroll:hover .scroll-label {
    opacity: 0.8;
}

.about-section__scroll:hover .scroll-arrow {
    opacity: 1;
}

.scroll-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--jc-text-muted);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    opacity: 0.5;
}

.scroll-arrow {
    color: var(--jc-green);
    opacity: 0.6;
}

@keyframes jc-scroll-bounce {
    0%   { transform: translateY(0); opacity: 0.6; }
    40%  { transform: translateY(10px); opacity: 1; }
    60%  { transform: translateY(10px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.6; }
}

.scroll-arrow svg {
    display: block;
    animation: jc-scroll-bounce 2s ease-in-out infinite;
}

@media (max-width: 680px) {
    .about-section__inner {
        grid-template-columns: 1fr;
    }

    .about-section__scroll {
        display: none;
    }
}

.about-section p {
    max-width: 720px;
    line-height: 1.85;
}

/* -------------------------------------------------------------
   ACCESSIBILITY & REDUCED MOTION
   ------------------------------------------------------------- */

:focus-visible {
    outline: 2px solid var(--jc-green);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* -------------------------------------------------------------
   CONTENT VISIBILITY — deferred paint for below-fold sections
   ------------------------------------------------------------- */

.ent-cases,
.ent-difference,
.ent-events,
.ai-projects,
.ai-services-section,
.about-interests,
.about-timeline-section,
.hosting-included,
.hosting-security,
.hosting-reliability,
.devops-story,
.devops-services {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* -------------------------------------------------------------
   HIDDEN UTILITY (customizer carry-over)
   ------------------------------------------------------------- */

.rb {
    display: none;
}

#iconmenu {
    display: none;
}

/* -------------------------------------------------------------
   MEDIUM VIEWPORT ADJUSTMENTS
   ------------------------------------------------------------- */

@media (min-width: 601px) and (max-width: 900px) {
    .about-section,
    .about-section.wide,
    .about-section.wide.reverse,
    .hosting-diff .container,
    .hosting-security .container,
    .hosting-reliability .container,
    .devops-stack .container,
    .devops-story .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .interests-bento {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .interest-card.col-4,
    .interest-card.col-6,
    .interest-card.col-8 {
        grid-column: span 1;
    }

    .interest-card.col-12 {
        grid-column: span 2;
    }
}

/* -------------------------------------------------------------
   SMALL VIEWPORT ADJUSTMENTS (600px and below)
   ------------------------------------------------------------- */

@media (max-width: 600px) {
    .section,
    .section-alt {
        padding: var(--phasma-space-6) 0;
    }

    .hosting-cta,
    .devops-cta,
    .ent-cta,
    .about-tagline-break {
        padding: 2.5rem 0;
    }

    .about-section .container,
    .about-section,
    .about-section.wide,
    .about-section.wide.reverse,
    .about-closing .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-hero .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-hero-content h1 {
        font-size: 2rem;
    }

    .about-timeline {
        grid-template-columns: 1fr;
    }

    .interests-bento {
        display: flex;
        flex-direction: column;
        gap: var(--phasma-space-3);
    }

    .interest-card.col-4,
    .interest-card.col-6,
    .interest-card.col-8,
    .interest-card.col-12 {
        grid-column: span 1;
    }

    .stats-grid,
    .case-study-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .case-study {
        padding: 1.5rem;
    }

    .case-study-header {
        flex-direction: column;
        gap: var(--phasma-space-3);
    }

    .case-study-metrics {
        grid-template-columns: repeat(3, 1fr);
    }

    .case-study-body {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .hosting-hero-stats,
    .devops-hero-stats {
        gap: 1.25rem;
        flex-wrap: wrap;
    }

    .hosting-stat strong,
    .devops-stat strong {
        font-size: 1.4rem;
    }

    .devops-stack .container,
    .devops-story .container,
    .devops-unique-grid,
    .hosting-diff .container,
    .hosting-security .container,
    .hosting-reliability .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .devops-terminal {
        font-size: 0.78rem;
        padding: var(--phasma-space-3);
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title,
    h1,
    h2 {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .ent-hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: var(--phasma-space-3);
    }

    .error-number {
        font-size: 8rem;
    }

    .adventure-terminal {
        font-size: 0.8rem;
        padding: var(--phasma-space-3);
    }

    .about-timeline {
        grid-template-columns: 1fr 1fr;
    }

    .hosting-security .container,
    .hosting-diff .container,
    .hosting-reliability .container {
        direction: ltr;
    }
}

/* Header — PLATFORM-OWNED (layout.header = primary). The colours come from the tokens above; the model's stylesheet may not set them. */
.site-header,
.main-navigation,
.main-navigation ul ul {
	background-color: var(--phasma-color-primary);
}
.site-header .main-title a,
.site-header .main-title a:hover,
.site-header .site-description,
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
	color: var(--phasma-color-on-primary);
}
@media (min-width: 769px) {
	.site-header .inside-header {
		flex-wrap: wrap;
		row-gap: 12px;
	}
	.site-header .inside-header > .main-navigation {
		flex-shrink: 0;
		max-width: 100%;
	}
	.main-navigation .main-nav ul li a {
		padding-left: 8px;
		padding-right: 8px;
	}
}
.site-header .header-image {
	max-height: 64px;
	width: auto;
}
.site-header .site-logo .header-image {
	background-color: var(--phasma-color-background);
	padding: 6px 10px;
	border-radius: 4px;
}

/* Full-width sections — PLATFORM-OWNED (F-W37). A top-level .alignfull reaches the viewport
   edges; its content stays on the page's own column. The model's stylesheet may not move it. */
html,
body {
	overflow-x: clip;
}
.no-sidebar .entry-content > .alignfull {
	box-sizing: border-box;
	width: auto;
	max-width: 100vw;
	margin: 0 calc(50% - 50vw);
	padding-left: calc(50vw - 50%);
	padding-right: calc(50vw - 50%);
}
.no-sidebar .entry-content > .wp-block-group.alignfull.has-background {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: var(--phasma-space-5, 48px);
	padding-bottom: var(--phasma-space-5, 48px);
}
.no-sidebar .entry-content > .wp-block-group.alignfull > .wp-block-group__inner-container {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}
.entry-content .wp-block-cover:not(.has-text-color) {
	color: #fff;
}
.entry-content .wp-block-cover.is-light:not(.has-text-color) {
	color: #000;
}
.entry-content .wp-block-group.has-text-color :is(h1, h2, h3, h4, h5, h6, p, li, label, legend),
.entry-content .wp-block-cover:not(.has-text-color)
	:is(h1, h2, h3, h4, h5, h6, p, li, label, legend) {
	color: inherit;
}
.entry-content .wp-block-group.has-text-color a:not(.wp-block-button__link),
.entry-content .wp-block-cover:not(.has-text-color) a:not(.wp-block-button__link) {
	color: inherit;
	text-decoration: underline;
}
.separate-containers .inside-article:has(> .entry-content > .alignfull:first-child),
.one-container .site-content:has(.entry-content > .alignfull:first-child) {
	padding-top: 0;
}
.site-main:has(.entry-content > .alignfull:first-child) {
	margin-top: 0;
}
.site-content:has(.entry-content > .alignfull:first-child),
.entry-content:has(> .alignfull:first-child) {
	padding-top: 0;
}
