/* MKT Agency — main.css. Bump MKT_VERSION in functions.php whenever this file changes. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--mkt-font-body);
	font-size: var(--mkt-fs-body);
	line-height: 1.65;
	color: var(--mkt-text);
	background: var(--mkt-bg);
	transition: background var(--mkt-transition), color var(--mkt-transition);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mkt-primary); text-decoration: none; }
a:hover { color: var(--mkt-primary-hover); }
:focus-visible { outline: 3px solid var(--mkt-primary); outline-offset: 2px; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.mkt-container { max-width: var(--mkt-container); margin: 0 auto; padding: 0 1.5rem; }
.mkt-section { padding: var(--mkt-section-pad) 0; }
.mkt-bg-alt { background: var(--mkt-bg-alt); }

/* Eyebrow / heading pattern used across sections */
.mkt-eyebrow { display: block; font-size: var(--mkt-fs-eyebrow); color: var(--mkt-text-muted); margin-bottom: .35rem; }
.mkt-heading { font-size: var(--mkt-fs-h2); font-weight: 700; line-height: 1.25; margin: 0 0 .6rem; }
.mkt-heading-accent { display: inline-block; width: 46px; height: 3px; background: var(--mkt-primary); margin-bottom: 1.1rem; border-radius: 2px; }
.mkt-lead { color: var(--mkt-text-muted); max-width: 62ch; margin: 0 0 1.5rem; }
.mkt-center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.mkt-btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .85rem 1.9rem; border-radius: var(--mkt-radius);
	font-size: .85rem; font-weight: 600; letter-spacing: .04em;
	border: 2px solid transparent; cursor: pointer;
	transition: background var(--mkt-transition), border-color var(--mkt-transition), color var(--mkt-transition);
}
.mkt-btn--solid { background: var(--mkt-primary); color: var(--mkt-primary-on); }
.mkt-btn--solid:hover { background: var(--mkt-primary-hover); color: var(--mkt-primary-on); }
.mkt-btn--outline { border-color: currentColor; color: inherit; background: transparent; }
.mkt-btn--outline:hover { background: rgba(255,255,255,.12); }

/* -------------------- Top bar -------------------- */
.mkt-topbar { background: var(--mkt-secondary); color: rgba(255,255,255,.85); font-size: .8125rem; }
.mkt-topbar .mkt-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .5rem; padding-bottom: .5rem; flex-wrap: wrap; }
.mkt-topbar a { color: inherit; }
.mkt-topbar a:hover { color: var(--mkt-primary-light); }
.mkt-topbar-left, .mkt-topbar-mid, .mkt-topbar-right { display: flex; align-items: center; gap: 1.1rem; }
.mkt-topbar-menu { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; }
.mkt-social { list-style: none; display: flex; gap: .65rem; margin: 0; padding: 0; }
.mkt-social .mkt-icon { width: 15px; height: 15px; }
.mkt-topbar-search { display: flex; border: 1px solid rgba(255,255,255,.25); border-radius: var(--mkt-radius); overflow: hidden; }
.mkt-topbar-search input { background: transparent; border: 0; color: #fff; padding: .35rem .6rem; width: 130px; }
.mkt-topbar-search button { background: transparent; border: 0; color: inherit; padding: 0 .6rem; cursor: pointer; }

/* -------------------- Header -------------------- */
.mkt-header { background: var(--mkt-surface); border-bottom: 1px solid var(--mkt-border); position: sticky; top: 0; z-index: 40; }
.mkt-header .mkt-container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.mkt-logo { font-size: 1.4rem; font-weight: 700; color: var(--mkt-text); }
.mkt-logo img { max-height: 44px; }
.mkt-primary-nav ul { list-style: none; display: flex; gap: 1.9rem; margin: 0; padding: 0; }
.mkt-primary-nav a { color: var(--mkt-text); font-weight: 500; }
.mkt-primary-nav a:hover, .mkt-primary-nav .current-menu-item > a { color: var(--mkt-primary); }
.mkt-header-actions { display: flex; align-items: center; gap: 1.1rem; }
.mkt-header-actions button { background: none; border: 0; cursor: pointer; color: var(--mkt-text); position: relative; display: flex; }
.mkt-icon { width: 20px; height: 20px; }
.mkt-cart-count { position: absolute; top: -6px; right: -8px; background: var(--mkt-primary); color: var(--mkt-primary-on); font-size: .625rem; line-height: 1; padding: 3px 5px; border-radius: 999px; }
.mkt-mode-toggle .mkt-icon--moon { display: none; }
:root[data-theme='dark'] .mkt-mode-toggle .mkt-icon--sun { display: none; }
:root[data-theme='dark'] .mkt-mode-toggle .mkt-icon--moon { display: block; }
.mkt-menu-toggle { display: none; }

/* -------------------- Hero slider -------------------- */
.mkt-hero { position: relative; overflow: hidden; padding: 0; }
.mkt-hero-slide { position: relative; min-height: 560px; display: none; align-items: center; background-size: cover; background-position: center; }
.mkt-hero-slide.is-active { display: flex; }
.mkt-hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,30,.72), rgba(20,22,30,.25)); }
.mkt-hero-content { position: relative; z-index: 1; color: #fff; max-width: 620px; padding: 2rem 1.5rem; }
.mkt-hero-content h1 { font-size: var(--mkt-fs-h1); line-height: 1.15; font-weight: 800; margin: 0 0 1rem; }
.mkt-hero-content p { color: rgba(255,255,255,.88); max-width: 52ch; margin-bottom: 1.75rem; }
.mkt-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.mkt-hero-actions .mkt-btn--outline { border-color: rgba(255,255,255,.7); color: #fff; }
.mkt-hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255,255,255,.15); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mkt-hero-arrow:hover { background: var(--mkt-primary); }
.mkt-hero-arrow--prev { left: 1.5rem; }
.mkt-hero-arrow--next { right: 1.5rem; }
.mkt-hero-arrow--prev .mkt-icon { transform: rotate(90deg); }
.mkt-hero-arrow--next .mkt-icon { transform: rotate(-90deg); }
.mkt-hero-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 2; }
.mkt-hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.mkt-hero-dots button.is-active { background: var(--mkt-primary); }

/* -------------------- Icon features row -------------------- */
.mkt-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--mkt-gap); }
.mkt-feature { display: flex; gap: 1rem; align-items: flex-start; }
.mkt-feature-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--mkt-primary); display: flex; align-items: center; justify-content: center; color: var(--mkt-primary); }
.mkt-feature h3 { font-size: var(--mkt-fs-h3); margin: 0 0 .4rem; }
.mkt-feature-text p { margin: 0; color: var(--mkt-text-muted); font-size: .9375rem; }

/* -------------------- Infographics split -------------------- */
.mkt-split { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.mkt-split--reverse { grid-template-columns: 1fr 0.85fr; }
.mkt-split--reverse .mkt-split-media { order: 2; }
.mkt-split-media img { border-radius: var(--mkt-radius); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.mkt-split-media--portrait img { aspect-ratio: 3/4; }
.mkt-stats { display: flex; gap: 2.5rem; margin-top: 1.75rem; flex-wrap: wrap; }
.mkt-stat { display: flex; align-items: center; gap: 1rem; }
.mkt-stat-ring { --pct: 0; width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none;
	background: conic-gradient(var(--mkt-primary) calc(var(--pct) * 1%), var(--mkt-border) 0); }
.mkt-stat-ring span { background: var(--mkt-surface); width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.mkt-stat-label { color: var(--mkt-text-muted); font-size: .875rem; line-height: 1.4; }

/* -------------------- Highlight strip (3 panels) -------------------- */
.mkt-highlights { display: grid; grid-template-columns: repeat(3, 1fr); }
.mkt-highlight { display: flex; align-items: center; gap: 1rem; padding: 2.1rem 2rem; color: #fff; }
.mkt-highlight--primary { background: var(--mkt-primary); }
.mkt-highlight--secondary { background: var(--mkt-secondary-light); }
.mkt-highlight--dark { background: var(--mkt-secondary); }
.mkt-highlight .mkt-icon { width: 30px; height: 30px; flex: none; }
.mkt-highlight h3 { margin: 0 0 .2rem; font-size: 1rem; }
.mkt-highlight p { margin: 0; font-size: .875rem; opacity: .85; }

/* -------------------- FAQ accordion -------------------- */
.mkt-accordion-item { border-bottom: 1px solid var(--mkt-border); }
.mkt-accordion-item:first-child { border-top: 1px solid var(--mkt-border); }
.mkt-accordion-trigger { width: 100%; display: flex; align-items: center; gap: .75rem; background: none; border: 0; padding: 1.1rem 0; text-align: left; font-weight: 600; color: var(--mkt-text); cursor: pointer; font-size: 1rem; }
.mkt-accordion-trigger .mkt-icon { color: var(--mkt-primary); flex: none; }
.mkt-accordion-panel { max-height: 0; overflow: hidden; transition: max-height 260ms ease; }
.mkt-accordion-item.is-open .mkt-accordion-panel { max-height: 320px; }
.mkt-accordion-panel-inner { padding: 0 0 1.25rem 2.3rem; color: var(--mkt-text-muted); font-size: .9375rem; }

.mkt-video-frame { position: relative; border-radius: var(--mkt-radius); overflow: hidden; aspect-ratio: 16/9; }
.mkt-video-frame img { width: 100%; height: 100%; object-fit: cover; }
.mkt-video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20,22,30,.25); border: 0; cursor: pointer; }
.mkt-video-play .mkt-icon { width: 62px; height: 62px; color: #fff; }
.mkt-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* -------------------- Gallery strip -------------------- */
.mkt-gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.mkt-gallery-item { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.mkt-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.mkt-gallery-item:hover img { transform: scale(1.06); }
.mkt-gallery-overlay { position: absolute; inset: 0; background: rgba(24,193,217,.85); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: 0; transition: opacity var(--mkt-transition); padding: 1rem; }
.mkt-gallery-item:hover .mkt-gallery-overlay, .mkt-gallery-item.has-overlay .mkt-gallery-overlay { opacity: 1; }
.mkt-gallery-overlay h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.mkt-gallery-overlay p { margin: 0; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; }

/* -------------------- Pricing table -------------------- */
.mkt-pricing-table { width: 100%; border-collapse: collapse; margin-top: 2.5rem; }
.mkt-pricing-table th, .mkt-pricing-table td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--mkt-border); text-align: center; }
.mkt-pricing-table th:first-child, .mkt-pricing-table td:first-child { text-align: left; }
.mkt-pricing-table thead th { font-size: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.mkt-pricing-table td.is-premium, .mkt-pricing-table th.is-premium { background: var(--mkt-primary-tint); }
.mkt-check { color: var(--mkt-primary); width: 20px; height: 20px; }
.mkt-cross { color: var(--mkt-text-muted); opacity: .5; width: 18px; height: 18px; }

/* -------------------- Process -------------------- */
.mkt-process { position: relative; background-size: cover; background-position: center; color: #fff; }
.mkt-process::before { content: ''; position: absolute; inset: 0; background: rgba(18,20,27,.78); }
.mkt-process .mkt-container { position: relative; z-index: 1; }
.mkt-steps { display: flex; justify-content: center; align-items: flex-start; gap: 0; margin-top: 3rem; }
.mkt-step { display: flex; flex-direction: column; align-items: center; gap: 1rem; flex: 1; max-width: 180px; }
.mkt-step-circle { width: 84px; height: 84px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; }
.mkt-step-connector { flex: 1; border-top: 2px dashed rgba(255,255,255,.4); margin-top: 42px; }

/* -------------------- Clients -------------------- */
.mkt-clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; align-items: center; margin-top: 2.5rem; }
.mkt-clients-grid img { max-height: 34px; width: auto; margin: 0 auto; filter: grayscale(1); opacity: .7; transition: opacity var(--mkt-transition); }
.mkt-clients-grid img:hover { opacity: 1; filter: none; }

/* -------------------- CTA banner -------------------- */
.mkt-cta-banner { background: var(--mkt-primary); color: var(--mkt-primary-on); }
.mkt-cta-banner .mkt-container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 1.6rem; padding-bottom: 1.6rem; flex-wrap: wrap; }
.mkt-cta-banner p { margin: 0; font-size: 1.05rem; }
.mkt-cta-banner .mkt-btn { background: var(--mkt-primary-on); color: var(--mkt-primary); }

/* -------------------- Footer -------------------- */
.mkt-footer { background: var(--mkt-secondary); color: rgba(255,255,255,.75); }
.mkt-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--mkt-gap); padding: 4rem 0 2.5rem; }
.mkt-footer-heading { color: #fff; font-size: 1rem; margin: 0 0 1.25rem; }
.mkt-footer address { font-style: normal; margin-bottom: .75rem; }
.mkt-footer .mkt-social { margin-top: 1.25rem; }
.mkt-footer .mkt-social a { color: rgba(255,255,255,.7); }
.mkt-footer .mkt-social a:hover { color: var(--mkt-primary); }
.mkt-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; text-align: center; font-size: .8125rem; }

/* -------------------- Back to top -------------------- */
.mkt-to-top { position: fixed; right: 1.5rem; bottom: 1.5rem; width: 46px; height: 46px; border-radius: 50%; background: var(--mkt-secondary); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity var(--mkt-transition); z-index: 30; }
.mkt-to-top.is-visible { opacity: 1; pointer-events: auto; }

/* =====================================================================
   Responsive — mobile stacking order per mockup analysis §mobile
   ===================================================================== */
@media (max-width: 991px) {
	.mkt-primary-nav, .mkt-topbar-mid { display: none; }
	.mkt-menu-toggle { display: flex; }
	.mkt-features-grid, .mkt-highlights, .mkt-clients-grid { grid-template-columns: 1fr; }
	.mkt-split, .mkt-split--reverse { grid-template-columns: 1fr; }
	.mkt-split-media, .mkt-split--reverse .mkt-split-media { order: -1; }
	.mkt-gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.mkt-footer-grid { grid-template-columns: 1fr 1fr; }
	.mkt-steps { flex-wrap: wrap; row-gap: 2.5rem; }
	.mkt-step { flex-basis: 45%; max-width: none; }
	.mkt-step-connector { display: none; }
}

@media (max-width: 600px) {
	.mkt-topbar-left { display: none; }
	.mkt-footer-grid { grid-template-columns: 1fr; }
	.mkt-clients-grid { grid-template-columns: repeat(2, 1fr); }
	.mkt-hero-content h1 { font-size: 1.9rem; }
	.mkt-pricing-table th, .mkt-pricing-table td { padding: .75rem .5rem; font-size: .875rem; }
}

/* -------------------- Blog / archive / search fallbacks -------------------- */
.mkt-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--mkt-gap); }
.mkt-blog-card img { border-radius: var(--mkt-radius); margin-bottom: 1rem; }
.mkt-blog-card h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.mkt-page-content { max-width: 72ch; }
.mkt-search-form { display: flex; gap: .5rem; max-width: 420px; margin: 0 auto; }
.mkt-search-form input { flex: 1; padding: .7rem 1rem; border: 1px solid var(--mkt-border); border-radius: var(--mkt-radius); background: var(--mkt-surface); color: var(--mkt-text); }
.mkt-search-form button { padding: .7rem 1.4rem; border: 0; border-radius: var(--mkt-radius); background: var(--mkt-primary); color: var(--mkt-primary-on); cursor: pointer; }
@media (max-width: 991px) { .mkt-blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mkt-blog-grid { grid-template-columns: 1fr; } }

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