/*
Theme Name: ARKEDIO
Theme URI: https://arkedio.com/
Author: ARKEDIO
Author URI: https://arkedio.com/
Description: Custom classic theme for ARKEDIO — a digital · design · strategy consultancy. One designed homepage edited entirely in the Customizer, a Contact page template with a built-in contact form, self-hosted Poppins + Playfair Display. No page builder, no custom post types, no extra plugins.
Version: 1.4.1
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arkedio
Tags: business, portfolio, blog, custom-menu, featured-images, translation-ready, threaded-comments
*/

/* ==========================================================================
   1. Design tokens — ARKEDIO brand
   ========================================================================== */
:root {
	/* Brand palette */
	--ark-lime: #C6FF00;
	--ark-cream: #F7F5EC;
	--ark-forest: #18352B;
	--ark-ink: #171816;
	--ark-sage: #A8B86B;
	--ark-navy: #0d1b3a;   /* header */

	/* Roles — light sections */
	--ark-color-bg: var(--ark-cream);            /* ivory background */
	--ark-color-surface: #ffffff;
	--ark-color-surface-2: #efeee3;
	--ark-color-heading: var(--ark-ink);         /* black headings  #171816 */
	--ark-color-text: var(--ark-forest);         /* forest body text #18352B */
	--ark-color-text-muted: #47564e;             /* muted forest — leads, captions */
	--ark-color-border: #dddccb;
	--ark-color-primary: var(--ark-lime);        /* lime buttons — editable in Customizer */
	--ark-color-primary-ink: var(--ark-ink);     /* text that sits on lime */
	--ark-color-heading-accent: var(--ark-forest);

	/* Roles — dark sections (forest #18352B background) */
	--ark-on-dark: var(--ark-cream);             /* ivory text on dark */
	--ark-on-dark-muted: rgba(247, 245, 236, .78);

	/* Fonts */
	--ark-font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ark-font-heading: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ark-font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

	--ark-radius: 4px;
	--ark-radius-lg: 8px;
	--ark-radius-pill: 999px;
	--ark-shadow: 0 1px 2px rgba(23, 24, 22, .05), 0 22px 48px -20px rgba(23, 24, 22, .28);
	--ark-shadow-sm: 0 1px 2px rgba(23, 24, 22, .05), 0 10px 24px -14px rgba(23, 24, 22, .22);

	--ark-maxw: 1180px;
	--ark-maxw-narrow: 760px;

	/* Spacing scale */
	--ark-space-2xs: 0.25rem;
	--ark-space-xs: 0.5rem;
	--ark-space-sm: 0.75rem;
	--ark-space-md: 1rem;
	--ark-space-lg: 1.5rem;
	--ark-space-xl: 2rem;
	--ark-space-2xl: 2.5rem;
	--ark-space-3xl: 3.5rem;
	--ark-gutter: clamp(1.15rem, 4vw, 2.5rem);
	--ark-gap: clamp(2rem, 5vw, 4.5rem);
	--ark-gap-lg: clamp(2rem, 6vw, 5rem);
	--ark-space: clamp(1rem, 3vw, 2.5rem);
	--ark-space-tight: clamp(2.25rem, 5vw, 3.75rem);
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--ark-font-body);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.68;
	color: var(--ark-color-text);
	background: var(--ark-color-bg);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ark-forest); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .12s ease; }
a:hover { color: var(--ark-ink); }

h1, h2, h3, h4 {
	font-family: var(--ark-font-heading);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--ark-color-heading);
	margin: 0 0 var(--ark-space-sm);
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 var(--ark-space-md); }
ul, ol { margin: 0 0 var(--ark-space-md); padding-left: 1.25em; }
strong, b { font-weight: 600; }

/* Serif accent — used for the lyrical half of a headline (put it in <em>) */
.ark-display em,
.ark-hero h1 em,
.ark-page-header h1 em,
.ark-serif {
	font-family: var(--ark-font-serif);
	font-style: italic;
	font-weight: 500;
	letter-spacing: -0.01em;
}
.ark-serif--upright { font-style: normal; }

/* Emphasised word inside a heading — plain bold, no highlight */
.ark-hero h1 strong,
.ark-display strong,
.ark-page-header h1 strong {
	color: var(--ark-color-heading); font-weight: 600;
}
.ark-section--forest h1 strong, .ark-section--forest h2 strong,
.ark-section--ink h1 strong, .ark-section--ink h2 strong,
.ark-section--lime h1 strong, .ark-section--lime h2 strong,
.ark-hero--dark h1 strong { color: var(--ark-lime); background-image: none; padding-inline: 0; }

blockquote {
	margin: var(--ark-space-lg) 0; padding: .2em 0 .2em 1.3em;
	border-left: 3px solid var(--ark-lime);
	font-family: var(--ark-font-serif); font-style: italic; font-size: 1.25rem;
	color: var(--ark-color-text-muted);
}
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--ark-color-surface-2); border-radius: var(--ark-radius); }
code { padding: .15em .4em; font-size: .9em; }
pre { padding: var(--ark-space-md); overflow-x: auto; }
hr { border: 0; border-top: 1px solid var(--ark-color-border); margin: var(--ark-space-2xl) 0; }
:focus-visible { outline: 3px solid var(--ark-forest); outline-offset: 2px; border-radius: 2px; }
.ark-section--forest :focus-visible, .ark-section--ink :focus-visible, .ark-footer :focus-visible { outline-color: var(--ark-lime); }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.ark-container { width: 100%; max-width: var(--ark-maxw); margin-inline: auto; padding-inline: var(--ark-gutter); }
.ark-narrow { max-width: var(--ark-maxw-narrow); margin-inline: auto; }
.ark-section { padding-block: var(--ark-space); position: relative; }
.ark-section--tight { padding-block: var(--ark-space-tight); }
.ark-section-intro { max-width: 38.75rem; }
.ark-section--surface { background: var(--ark-color-surface-2); }
.ark-section--forest { background: var(--ark-forest); color: var(--ark-on-dark); }
.ark-section--ink { background: var(--ark-ink); color: var(--ark-on-dark); }
.ark-section--lime { background: var(--ark-lime); color: var(--ark-ink); }
.ark-section--forest h1, .ark-section--forest h2, .ark-section--forest h3,
.ark-section--ink h1, .ark-section--ink h2, .ark-section--ink h3 { color: var(--ark-on-dark); }
.ark-section--lime h1, .ark-section--lime h2, .ark-section--lime h3 { color: var(--ark-ink); }

/* Services section — background + text colour set in Customize → Homepage: Services */
.ark-section--services {
	--svc-bg: var(--ark-services-bg, var(--ark-navy));
	--svc-fg: var(--ark-services-fg, var(--ark-lime));
	background: var(--svc-bg);
	color: var(--svc-fg);
}
.ark-section--services h1, .ark-section--services h2, .ark-section--services h3,
.ark-section--services .ark-eyebrow { color: var(--svc-fg); }
.ark-section--services .ark-lead { color: var(--svc-fg); opacity: .82; }
.ark-section--services .ark-servicelist__item { border-color: rgba(255, 255, 255, .16); border-color: color-mix(in srgb, var(--svc-fg) 24%, transparent); }
.ark-section--services .ark-servicelist__icon { color: var(--svc-fg); }
.ark-section--services .ark-servicelist__body h3 { color: var(--svc-fg); }
.ark-section--services .ark-servicelist__body p { color: var(--svc-fg); opacity: .78; }
.ark-section--services .ark-btn--primary { background: var(--svc-fg); color: var(--svc-bg); }
.ark-section--services .ark-btn--primary:hover { background: #fff; color: var(--svc-bg); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.ark-center { text-align: center; }

.ark-eyebrow {
	text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 600;
	color: var(--ark-forest); margin: 0 0 var(--ark-space-md); display: inline-block;
}
.ark-section--forest .ark-eyebrow, .ark-section--ink .ark-eyebrow, .ark-hero--dark .ark-eyebrow { color: var(--ark-lime); }
.ark-section--lime .ark-eyebrow { color: var(--ark-ink); }

.ark-lead { font-size: 1.18rem; line-height: 1.6; color: var(--ark-color-text-muted); }
.ark-section--forest .ark-lead, .ark-section--ink .ark-lead { color: var(--ark-on-dark-muted); }
.ark-section--lime .ark-lead { color: #2c3316; }

/* Vertical rhythm for stacked intro blocks — gap only, no doubled child margins */
.ark-stack {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--ark-space-md);
}
.ark-stack > * { margin-top: 0; margin-bottom: 0; }
.ark-stack + .ark-servicelist { margin-top: var(--ark-space-2xl); }
.ark-actions { margin-top: var(--ark-space-2xl); }
.ark-stack > .ark-actions { margin-top: var(--ark-space-lg); }

.screen-reader-text { position: absolute !important; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--ark-ink); color: #fff; padding: var(--ark-space-sm) 1.25rem; }
.skip-link:focus { left: 0; }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.ark-btn {
	display: inline-flex; align-items: center; gap: .7rem;
	padding: 0.95rem 1.7rem; border-radius: var(--ark-radius-pill);
	font-family: var(--ark-font-body); font-weight: 600; font-size: .82rem;
	letter-spacing: .12em; text-transform: uppercase; line-height: 1;
	text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
	transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, color .14s ease, border-color .14s ease;
}
.ark-btn__arrow { width: 1.1em; height: 1.1em; flex: none; }
.ark-btn--primary { background: var(--ark-lime); color: var(--ark-color-primary-ink); }
.ark-btn--primary:hover { background: var(--ark-ink); color: var(--ark-lime); transform: translateY(-2px); box-shadow: var(--ark-shadow-sm); }
.ark-btn--ghost { background: transparent; color: var(--ark-color-text); border-color: currentColor; }
.ark-btn--ghost:hover { background: var(--ark-ink); color: var(--ark-cream); border-color: var(--ark-ink); }
.ark-section--forest .ark-btn--ghost, .ark-section--ink .ark-btn--ghost, .ark-hero--dark .ark-btn--ghost { color: #fff; }
.ark-section--forest .ark-btn--ghost:hover, .ark-section--ink .ark-btn--ghost:hover { background: var(--ark-lime); color: var(--ark-ink); border-color: var(--ark-lime); }
.ark-section--lime .ark-btn--primary { background: var(--ark-ink); color: var(--ark-lime); }
.ark-section--lime .ark-btn--primary:hover { background: var(--ark-forest); color: #fff; }

/* Text link with arrow */
.ark-arrowlink {
	display: inline-flex; align-items: center; gap: .6rem;
	font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
	text-decoration: none; color: currentColor;
}
.ark-arrowlink svg { width: 1.4em; height: 1.4em; transition: transform .14s ease; }
.ark-arrowlink:hover svg { transform: translateX(4px); }
.ark-section--forest .ark-arrowlink, .ark-section--ink .ark-arrowlink { color: var(--ark-lime); }

/* ==========================================================================
   5. Header
   ========================================================================== */
.ark-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--ark-navy);
    border-bottom: 2px solid var(--ark-lime);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.5s ease-out;
}

.ark-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 76px;
    padding: 0 var(--ark-gutter);
}

.ark-brand {
    display: flex;
    align-items: center;
    color: var(--ark-lime);
    text-decoration: none;
    flex: none;
    animation: fadeInLeft 0.6s ease-out 0.1s both;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.ark-brand svg {
    display: block;
    height: 26px;
    width: auto;
    margin-right: 0.5rem;
}

.ark-brand img {
    max-height: 42px;
    width: auto;
}

.ark-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.25rem);
}

.ark-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(.9rem, 1.8vw, 1.9rem);
    margin: 0;
    padding: 0;
}

.ark-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: .8rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .2s ease;
}

.ark-nav a:hover,
.ark-nav .current-menu-item > a {
    color: var(--ark-lime);
}

.ark-nav .current-menu-item > a {
    border-bottom: 2px solid var(--ark-lime);
}

.ark-header .ark-btn--primary {
    padding: 0.7rem 1.4rem;
    flex: none;
    background: var(--ark-lime);
    color: var(--ark-navy);
    font-weight: 600;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.ark-header .ark-btn--primary:hover,
.ark-header .ark-btn--primary:focus-visible {
    background: #ffffff;
    color: var(--ark-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(198, 255, 0, 0.35);
}

.ark-header .ark-btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(198, 255, 0, 0.3);
}

.ark-nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid #ffffff;
    border-radius: var(--ark-radius);
    padding: .5rem .6rem;
    cursor: pointer;
    color: #ffffff;
}

.ark-nav-toggle svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 960px) {
    .ark-nav-toggle {
        display: inline-flex;
    }

    .ark-nav {
        position: absolute;
        inset: 76px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--ark-cream);
        border-bottom: 1px solid var(--ark-color-border);
        box-shadow: 0 20px 40px -18px rgba(23, 24, 22, .35);
        padding: var(--ark-space-xs) var(--ark-gutter) var(--ark-space-lg);
        transform: translateY(-6px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .16s ease, transform .16s ease, visibility .16s;
    }

    .ark-nav[data-open="true"] {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .ark-nav ul {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
    }

    .ark-nav li {
        border-bottom: 1px solid var(--ark-color-border);
    }

    .ark-nav a {
        display: block;
        padding: var(--ark-space-md) .1rem;
        font-size: .9rem;
        color: var(--ark-ink);
    }

    .ark-header .ark-btn--primary {
        margin-top: var(--ark-space-md);
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.ark-hero { background: var(--ark-cream); overflow: clip; }
.ark-hero--dark { background: var(--ark-forest); color: var(--ark-on-dark); }
.ark-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--ark-gap); align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.ark-hero h1 { margin-bottom: 0; }
.ark-hero__tagline {
	font-family: var(--ark-font-serif); font-style: italic; font-weight: 500;
	font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.25;
	color: var(--ark-forest); margin: 0;
}
.ark-hero--dark .ark-hero__tagline { color: var(--ark-lime); }
.ark-hero__cta { display: flex; flex-wrap: wrap; gap: var(--ark-space-md); margin-top: 0; }
.ark-stack > .ark-hero__cta { margin-top: var(--ark-space-md); }

/* Media panel with angular lime shapes echoing the A-mark */
.ark-hero__media { position: relative; align-self: stretch; min-height: 340px; }
.ark-hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--ark-radius); position: relative; z-index: 1; }
.ark-hero__media::before {
	content: ""; position: absolute; z-index: 0; inset: -8% -6% auto auto; width: 62%; height: 60%;
	background: var(--ark-lime);
	clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.ark-hero__media::after {
	content: ""; position: absolute; z-index: 2; left: -7%; bottom: -9%; width: 44%; height: 42%;
	background: var(--ark-forest);
	clip-path: polygon(0 0, 100% 0, 0 100%);
}
.ark-hero--dark .ark-hero__media::after { background: var(--ark-lime); }
.ark-hero__media--plain::before, .ark-hero__media--plain::after,
.ark-hero__media--blank::before, .ark-hero__media--blank::after { display: none; }

/* Portrait treatment: circle behind a cut-out style image */
.ark-portrait { position: relative; display: grid; place-items: center; }
.ark-portrait::before {
	content: ""; position: absolute; width: min(78%, 360px); aspect-ratio: 1; border-radius: 50%;
	background: var(--ark-lime); z-index: 0; transform: translateY(-4%);
}
.ark-portrait img { position: relative; z-index: 1; max-height: 440px; width: auto; filter: grayscale(1) contrast(1.05); }

@media (max-width: 920px) {
	.ark-hero__grid { grid-template-columns: 1fr; }
	.ark-hero__media { order: 2; min-height: 280px; }
}

/* ==========================================================================
   7. Stats band
   ========================================================================== */
.ark-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.ark-stats > div { padding: 1.75rem clamp(.75rem, 2vw, 1.5rem); border-left: 1px solid var(--ark-color-border); }
.ark-stats > div:first-child { border-left: 0; }
.ark-stats b { display: block; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; letter-spacing: -0.03em; color: var(--ark-ink); line-height: 1; }
.ark-stats span { display: block; margin-top: var(--ark-space-xs); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ark-color-text-muted); }
.ark-section--forest .ark-stats > div, .ark-section--ink .ark-stats > div { border-color: rgba(255,255,255,.14); }
.ark-section--forest .ark-stats b, .ark-section--ink .ark-stats b { color: var(--ark-lime); }
.ark-section--forest .ark-stats span, .ark-section--ink .ark-stats span { color: var(--ark-on-dark-muted); }
@media (max-width: 720px) { .ark-stats { grid-template-columns: repeat(2, 1fr); }
	.ark-stats > div:nth-child(3) { border-left: 0; }
	.ark-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--ark-color-border); } }

/* ==========================================================================
   8. Trust bar
   ========================================================================== */
.ark-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--ark-space-md) 2.75rem; }
.ark-trust span { color: var(--ark-color-text-muted); font-weight: 500; letter-spacing: .04em; font-size: 1.02rem; }

/* ==========================================================================
   9. Service list (icon + text rows) & cards
   ========================================================================== */
.ark-servicelist { display: grid; gap: 0; }
.ark-servicelist__item {
    display: grid; grid-template-columns: 2.75rem 1fr; gap: var(--ark-space-lg); align-items: center;
    padding: 1.85rem 0; border-top: 1px solid rgba(255,255,255,.16);
}
.ark-servicelist__item:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.ark-section--surface .ark-servicelist__item, .ark-section--cream .ark-servicelist__item { border-color: var(--ark-color-border); }
.ark-servicelist__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--ark-lime); flex: none; }
.ark-servicelist__icon svg, .ark-servicelist__icon img { width: 100%; height: 100%; }
.ark-servicelist__icon svg { stroke-width: 1.5; }
.ark-servicelist__icon img { border-radius: 4px; object-fit: cover; }
.ark-servicelist__body h3 { margin: 0 0 var(--ark-space-2xs); color: #ffffff; }
.ark-servicelist__body p { margin: 0; color: #ffffff; max-width: 60ch; }
.ark-section--surface .ark-servicelist__body p { color: var(--ark-color-text-muted); }
@media (max-width: 640px) {
	.ark-servicelist__item { grid-template-columns: 2.5rem 1fr; gap: var(--ark-space-md); }
	.ark-servicelist__icon { width: 2.5rem; height: 2.5rem; }
}

.ark-grid { display: grid; gap: var(--ark-space-lg); }
.ark-grid--1 { grid-template-columns: 1fr; max-width: 600px; margin-inline: auto; }
.ark-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ark-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .ark-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ark-grid--2, .ark-grid--3 { grid-template-columns: 1fr; } }

.ark-card { background: var(--ark-color-surface); border: 1px solid var(--ark-color-border); border-radius: var(--ark-radius-lg); padding: 1.9rem; color: var(--ark-color-text); }
.ark-card--link { transition: transform .14s ease, box-shadow .14s ease; }
.ark-card--link:hover { transform: translateY(-3px); box-shadow: var(--ark-shadow); }
.ark-card h3 a { text-decoration: none; color: inherit; }
.ark-card h3 a:hover { color: var(--ark-forest); }
.ark-card p { margin-bottom: 0; color: var(--ark-color-text-muted); }
.ark-section--forest .ark-card h3, .ark-section--ink .ark-card h3 { color: var(--ark-on-dark); }
.ark-section--forest .ark-card p, .ark-section--ink .ark-card p { color: var(--ark-color-text-muted); }
.ark-card__icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ark-forest); margin-bottom: 1.1rem; }
.ark-card__icon svg { width: 100%; height: 100%; }
.ark-card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.ark-card__more::after { content: "\2192"; }

/* ==========================================================================
   10. Split feature (image + content)
   ========================================================================== */
.ark-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ark-gap); align-items: center; }
.ark-split--flip .ark-split__media { order: 2; }
.ark-split--start { align-items: start; gap: var(--ark-gap-lg); }
.ark-split__media img { width: 100%; border-radius: var(--ark-radius); object-fit: cover; }
.ark-split__media { position: relative; }
.ark-split__media::before { content: ""; position: absolute; inset: auto auto -1.25rem -1.25rem; width: 55%; height: 55%; background: var(--ark-lime); z-index: -1; clip-path: polygon(0 0, 100% 100%, 0 100%); }
@media (max-width: 860px) { .ark-split { grid-template-columns: 1fr; } .ark-split--flip .ark-split__media { order: 0; } }

/* ==========================================================================
   11. Process steps
   ========================================================================== */
.ark-steps { counter-reset: step; display: grid; gap: var(--ark-space-lg); list-style: none; padding: 0; margin: 0; }
.ark-steps li { position: relative; padding-left: 4rem; min-height: 2.75rem; }
.ark-steps li::before {
	counter-increment: step; content: counter(step, decimal-leading-zero);
	position: absolute; left: 0; top: 0;
	display: grid; place-items: center;
	width: 2.75rem; height: 2.75rem; border-radius: 50%;
	background: var(--ark-navy); color: var(--ark-lime);
	font-family: var(--ark-font-serif); font-style: italic;
	font-size: 1.05rem; font-weight: 600;
	box-shadow: 0 4px 12px rgba(13, 27, 58, .22);
}
.ark-steps h3 { margin-bottom: var(--ark-space-2xs); }
.ark-steps p { margin-bottom: 0; color: var(--ark-color-text-muted); }
.ark-section--forest .ark-steps p, .ark-section--ink .ark-steps p { color: var(--ark-on-dark-muted); }

/* ==========================================================================
   12. Testimonials
   ========================================================================== */
.ark-quote { background: var(--ark-color-surface); border: 1px solid var(--ark-color-border); border-radius: var(--ark-radius-lg); padding: 1.9rem; }
.ark-quote > div p { font-family: var(--ark-font-serif); font-style: italic; font-size: 1.12rem; line-height: 1.55; color: var(--ark-color-text); }
.ark-quote figcaption { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; color: var(--ark-color-text-muted); font-size: .9rem; }
.ark-quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.ark-quote figcaption b { display: block; color: var(--ark-color-heading); font-weight: 600; }

/* ==========================================================================
   13. CTA band
   ========================================================================== */
.ark-cta { text-align: center; }
.ark-cta h2 { margin-bottom: var(--ark-space-xs); }
.ark-cta__url { margin-top: var(--ark-space-lg); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; }
.ark-cta .ark-btn { margin-top: var(--ark-space-lg); }

/* ==========================================================================
   14. Content / single / archive
   ========================================================================== */
.ark-page-header { padding-block: clamp(3rem, 7vw, 5rem); background: var(--ark-cream); border-bottom: 1px solid var(--ark-color-border); }
.ark-page-header .ark-container {
	display: flex;
	flex-direction: column;
	gap: var(--ark-space-md);
}
.ark-page-header .ark-container > * { margin-block: 0; }
.ark-content :where(h2, h3) { margin-top: var(--ark-space-xl); }
.ark-content img { border-radius: var(--ark-radius); }
.ark-content > .wp-post-image { margin-bottom: var(--ark-space-xl); }
.ark-content figure { margin: 1.75rem 0; }
.ark-content a { color: var(--ark-forest); text-decoration: underline; }
.ark-content .alignright { float: right; margin: var(--ark-space-2xs) 0 var(--ark-space-md) var(--ark-space-lg); }
.ark-content .alignleft { float: left; margin: var(--ark-space-2xs) var(--ark-space-lg) var(--ark-space-md) 0; }
.ark-content .aligncenter { margin-inline: auto; }

.ark-postmeta { color: var(--ark-color-text-muted); font-size: .9rem; margin-bottom: var(--ark-space-lg); letter-spacing: .02em; }
.ark-post-list { display: grid; gap: var(--ark-space-xl); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .ark-post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ark-post-list { grid-template-columns: 1fr; } }
.ark-post-card img { border-radius: var(--ark-radius); margin-bottom: var(--ark-space-md); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; filter: grayscale(1); transition: filter .2s ease; }
.ark-post-card:hover img { filter: none; }
.ark-post-card h3 { margin-bottom: var(--ark-space-2xs); }
.ark-post-card h3 a { text-decoration: none; color: var(--ark-color-heading); }
.ark-post-card h3 a:hover { color: var(--ark-forest); }

.ark-pagination { display: flex; gap: var(--ark-space-xs); flex-wrap: wrap; margin-top: var(--ark-space-3xl); }
.ark-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--ark-space-xs); border: 1px solid var(--ark-color-border); border-radius: var(--ark-radius); text-decoration: none; font-size: .9rem; }
.ark-pagination .current { background: var(--ark-ink); color: var(--ark-lime); border-color: var(--ark-ink); }

/* ==========================================================================
   15. Contact form
   ========================================================================== */
.ark-form { display: grid; gap: var(--ark-space-md); }
.ark-form p { margin: 0; }
.ark-form__note { margin: 0; font-size: .85rem; color: var(--ark-color-text-muted); }
.ark-field { display: grid; gap: var(--ark-space-2xs); }
.ark-field label { font-weight: 500; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ark-color-text-muted); }
.ark-field input, .ark-field textarea, .ark-field select {
	width: 100%; padding: .85rem .95rem; font: inherit; color: inherit;
	background: var(--ark-color-surface); border: 1px solid var(--ark-color-border); border-radius: var(--ark-radius);
}
.ark-field input:focus, .ark-field textarea:focus, .ark-field select:focus { border-color: var(--ark-forest); outline: none; box-shadow: 0 0 0 3px rgba(24,53,43,.14); }
.ark-field textarea { min-height: 150px; resize: vertical; }
.ark-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ark-form__notice { padding: .95rem 1.15rem; border-radius: var(--ark-radius); font-size: .96rem; }
.ark-form__notice--ok { background: #eef7d6; border: 1px solid var(--ark-sage); color: #3a4a12; }
.ark-form__notice--err { background: #fdecec; border: 1px solid #f0b4b4; color: #a12626; }
.ark-contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--ark-gap); align-items: start; }
@media (max-width: 860px) { .ark-contact-grid { grid-template-columns: 1fr; } }
.ark-contact-grid .ark-content { margin-bottom: var(--ark-space-xl); }
.ark-contact-grid aside h2 { font-size: 1.3rem; }
.ark-contact-detail { display: grid; gap: var(--ark-space-2xs); padding: var(--ark-space-md) 0; border-bottom: 1px solid var(--ark-color-border); }
.ark-contact-detail b { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ark-color-text-muted); font-weight: 600; }

/* ==========================================================================
   16. Footer
   ========================================================================== */
.ark-footer { background: var(--ark-navy); color: var(--ark-on-dark-muted); padding-block: clamp(3rem, 6vw, 4.5rem) var(--ark-space-xl); }
.ark-footer a { color: var(--ark-on-dark); text-decoration: none; }
.ark-footer a:hover { color: var(--ark-lime); }
.ark-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
@media (max-width: 640px) { .ark-footer__grid { grid-template-columns: 1fr; gap: var(--ark-space-2xl); } }

.ark-footer__logo { display: inline-flex; color: var(--ark-lime); line-height: 0; }
.ark-footer__logo .ark-logo { display: block; height: 26px; width: auto; }
.ark-footer__brand p { color: var(--ark-on-dark-muted); max-width: 40ch; margin: var(--ark-space-md) 0 0; font-size: .95rem; line-height: 1.6; }

.ark-footer h4 { color: var(--ark-on-dark); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 var(--ark-space-md); font-weight: 600; }
.ark-footer__contactlist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--ark-space-sm); }
.ark-footer__contactlist li,
.ark-footer__contactlist a { font-size: .95rem; line-height: 1.6; letter-spacing: normal; text-transform: none; }
.ark-footer__contactlist li:last-child { color: var(--ark-on-dark-muted); }

.ark-social { display: flex; gap: 1.1rem; margin-top: var(--ark-space-lg); list-style: none; padding: 0; }
.ark-social a { display: inline-flex; }

.ark-footer__bottom { margin-top: var(--ark-space-3xl); padding-top: var(--ark-space-lg); border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: var(--ark-space-md); flex-wrap: wrap; font-size: .82rem; letter-spacing: .04em; }
.ark-footer__bottom a { color: var(--ark-lime); text-transform: uppercase; letter-spacing: .1em; }

/* ==========================================================================
   17. WP core / a11y
   ========================================================================== */
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { max-width: none; }
.wp-caption-text, .wp-element-caption { font-size: .86rem; color: var(--ark-color-text-muted); text-align: center; margin-top: var(--ark-space-xs); }
.admin-bar .ark-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ark-header { top: 46px; } }

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   18. Misc component bits
   ========================================================================== */
.ark-icon { display: block; }

.ark-logo { display: block; height: 26px; width: auto; }
.ark-brand .ark-logo { height: 26px; }

.ark-initial {
	display: grid; place-items: center; width: 100%; height: 100%;
	font-family: var(--ark-font-serif); font-style: italic; font-weight: 600; font-size: 1.6rem;
	color: var(--ark-lime); background: rgba(255,255,255,.06); border-radius: var(--ark-radius);
}
.ark-section--surface .ark-initial, .ark-card .ark-initial { color: var(--ark-forest); background: var(--ark-color-surface-2); }

/* Hero placeholder shape (shown until a hero image is set) — echoes the A-mark */
.ark-hero__media--blank { min-height: 400px; }
.ark-hero__shape {
	position: absolute; inset: 0; display: block; background: var(--ark-forest);
	border-radius: var(--ark-radius); overflow: hidden;
}
.ark-hero__shape::before {
	content: ""; position: absolute; inset: 0;
	background: var(--ark-lime);
	clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
}
.ark-hero__shape::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1 / 1.15;
	transform: translate(-50%, -50%);
	background: var(--ark-forest);
	clip-path: polygon(50% 0, 100% 100%, 78% 100%, 50% 34%, 22% 100%, 0 100%);
}

/* Checklist (feature block) */
.ark-checklist { list-style: none; padding: 0; margin: var(--ark-space-2xs) 0 0; display: grid; gap: var(--ark-space-sm); }
.ark-checklist li { position: relative; padding-left: 1.9rem; color: var(--ark-color-text-muted); }
.ark-checklist li::before {
	content: ""; position: absolute; left: 0; top: .3rem; width: 1.15rem; height: 1.15rem;
	background: var(--ark-forest);
	-webkit-mask: no-repeat center / 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	mask: no-repeat center / 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.ark-split--noimg { grid-template-columns: 1fr; max-width: 720px; }

.ark-section--forest .ark-checklist li, .ark-section--ink .ark-checklist li { color: var(--ark-on-dark-muted); }

.ark-stack .ark-card h3 { margin: 0 0 var(--ark-space-2xs); }
.ark-stack .ark-card .ark-postmeta { margin: 0 0 var(--ark-space-xs); }
.ark-stack .ark-card p { margin: 0; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 255, 0, 0.8), inset 0 0 0 0 rgba(198, 255, 0, 0);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(198, 255, 0, 0), inset 0 0 0 0 rgba(198, 255, 0, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(198, 255, 0, 0), inset 0 0 0 0 rgba(198, 255, 0, 0);
    }
}

@keyframes buttonBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Apply animations */
.ark-hero h1 { animation: fadeInUp 0.6s ease-out 0.1s both; }
.ark-hero__tagline { animation: fadeInUp 0.6s ease-out 0.2s both; }
.ark-hero__cta { animation: fadeInUp 0.6s ease-out 0.3s both; }
.ark-hero__media { animation: slideInRight 0.7s ease-out 0.2s both; }

.ark-display { animation: fadeInUp 0.7s ease-out both; }

.ark-section-intro { animation: fadeInUp 0.6s ease-out both; }

.ark-card { animation: scaleIn 0.5s ease-out both; }
.ark-card:nth-child(1) { animation-delay: 0.1s; }
.ark-card:nth-child(2) { animation-delay: 0.2s; }
.ark-card:nth-child(3) { animation-delay: 0.3s; }
.ark-card:nth-child(4) { animation-delay: 0.4s; }

.ark-servicelist__item { animation: fadeInUp 0.5s ease-out both; }
.ark-servicelist__item:nth-child(1) { animation-delay: 0.1s; }
.ark-servicelist__item:nth-child(2) { animation-delay: 0.2s; }
.ark-servicelist__item:nth-child(3) { animation-delay: 0.3s; }

.ark-steps li { animation: fadeInUp 0.5s ease-out both; }
.ark-steps li:nth-child(1) { animation-delay: 0.1s; }
.ark-steps li:nth-child(2) { animation-delay: 0.2s; }
.ark-steps li:nth-child(3) { animation-delay: 0.3s; }

.ark-quote { animation: scaleIn 0.6s ease-out both; }

.ark-split__media { animation: slideInRight 0.7s ease-out both; }
.ark-split--flip .ark-split__media { animation: slideInLeft 0.7s ease-out both; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
