/*
Theme Name: Analystics Arena
Theme URI: https://analysticsarena.shop
Author: ANALYSTICS ARENA LLC
Author URI: https://analysticsarena.shop
Description: A native WordPress corporate theme for ANALYSTICS ARENA LLC, an AI automation and technology company. Editable through the Customizer and the block editor, with a secure contact form, blog, and legal page starters.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: analystics-arena
Tags: business, custom-logo, custom-menu, featured-images, blog, translation-ready, accessibility-ready, threaded-comments
*/

:root {
	--navy: #10233F;
	--navy-2: #183A60;
	--blue: #2878D0;
	--blue-ink: #1F65B8; /* accent for text/buttons: passes WCAG AA on white */
	--light-blue: #EAF3FC;
	--white: #FFFFFF;
	--gray: #F4F6F8;
	--text: #263445;
	--muted: #5A6A7D;
	--line: #DCE3EB;
	--radius: 10px;
	--max: 1180px;
	--font: Inter, Manrope, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: #fff; clip: auto; clip-path: none; color: var(--navy); display: block; height: auto; width: auto; left: 8px; top: 8px; padding: 12px 18px; z-index: 100000; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.skip-link:focus { position: fixed; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.icon { flex-shrink: 0; }

/* Buttons */
.btn { display: inline-block; font: 600 1rem/1 var(--font); padding: 15px 26px; border-radius: 8px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--blue-ink); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.custom-logo-link img { max-height: 52px; width: auto; }
.primary-nav .menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--navy); text-decoration: none; font-weight: 550; font-size: .98rem; }
.primary-nav a:hover { background: var(--light-blue); }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: var(--light-blue); color: var(--navy-2); }
.primary-nav .menu-item:last-child > a { background: var(--blue-ink); color: #fff; margin-left: 8px; }
.primary-nav .menu-item:last-child > a:hover { background: var(--navy-2); }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px; color: var(--navy); cursor: pointer; }
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: inline; }

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; box-shadow: 0 12px 24px rgba(16,35,63,.08); }
	.nav-open .primary-nav { display: block; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; }
	.primary-nav .menu-item:last-child > a { margin: 8px 0 0; text-align: center; }
}

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 10%, rgba(40,120,208,.35), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: clamp(56px, 9vw, 112px) 0; overflow: hidden; }
.hero h1 { color: #fff; max-width: 15em; }
.hero .lead { font-size: 1.2rem; color: #D8E6F6; max-width: 36em; margin-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-art svg { width: 100%; max-width: 520px; margin-left: auto; display: block; }
.hero-lines path { stroke-dasharray: 6 8; animation: aaw-flow 2.4s linear infinite; }
@keyframes aaw-flow { to { stroke-dashoffset: -28; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-gray { background: var(--gray); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.intro .narrow p { font-size: 1.12rem; }

.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: clamp(44px, 6vw, 76px) 0; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero .lead { color: #D8E6F6; font-size: 1.15rem; margin: 0; }
.page-hero .entry-meta, .page-hero .entry-meta a { color: #BBD6F2; }
.page-hero .search-form { margin-top: 24px; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; }
.service-card h3 { margin-bottom: .4em; }
.service-card p { color: var(--muted); flex: 1; }
.icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: var(--light-blue); color: var(--blue-ink); margin-bottom: 18px; }
.icon-wrap-lg { width: 68px; height: 68px; border-radius: 16px; }
.service-detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.service-detail { scroll-margin-top: 90px; }
.service-detail-uses { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 26px; }
.section-gray .service-detail-uses { background: #fff; }
.service-detail:not(.section-gray) .service-detail-uses { background: var(--light-blue); border-color: transparent; border-left: 4px solid var(--blue); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 10px; padding: 8px 0; align-items: flex-start; }
.check-list .icon { color: var(--blue-ink); margin-top: 4px; }
@media (max-width: 860px) { .service-detail-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Why */
.why-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.why-intro { position: sticky; top: 110px; }
.why-intro p { color: var(--muted); font-size: 1.1rem; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.why-list li:first-child { padding-top: 0; }
.why-list li:last-child { border-bottom: 0; }
.why-list h3 { margin-bottom: .25em; }
.why-list p { margin: 0; color: var(--muted); }
.why-check { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--light-blue); color: var(--blue-ink); display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 860px) { .why-layout { grid-template-columns: 1fr; gap: 28px; } .why-intro { position: static; } }

/* CTA */
.cta-band { background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D8E6F6; font-size: 1.1rem; }

/* About */
.about-blocks { display: grid; gap: 8px; }
.about-block { padding: 24px 0; border-bottom: 1px solid var(--line); }
.about-block:last-of-type { border-bottom: 0; }
.about-block p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.contact-list .icon { margin-top: 5px; color: var(--blue); }
.contact-list address { font-style: normal; }
.contact-list a { color: inherit; }
.contact-list-lg li { background: var(--gray); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.contact-list-lg strong { display: block; color: var(--navy); }
.contact-list-lg a, .contact-list-lg address { color: var(--text); }
.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; scroll-margin-top: 100px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field textarea { width: 100%; font: inherit; color: var(--text); padding: 12px 14px; border: 1.5px solid #B9C5D3; border-radius: 8px; background: #fff; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(40,120,208,.25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.field-check label { font-weight: 400; color: var(--text); margin: 0; }
.field-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue-ink); }
.field-check .field-error { grid-column: 1 / -1; }
.req { color: #B3261E; }
.field-error { color: #B3261E; font-size: .92rem; margin: 6px 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 8px; padding: 14px 18px; margin-bottom: 22px; }
.notice ul { margin: 6px 0 0; }
.notice-success { background: #E7F5EC; border: 1px solid #8CCBA1; color: #14532D; }
.notice-error { background: #FDECEA; border: 1px solid #E6A39E; color: #7A1914; }
.extra-content { margin-top: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } .contact-form-wrap { padding: 22px; } }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-body p { color: var(--muted); flex: 1; }
.post-card-title { font-size: 1.2rem; }
.post-card-title a { color: var(--navy); text-decoration: none; }
.post-card-title a:hover { color: var(--blue-ink); text-decoration: underline; }
.entry-meta { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.entry-cat { font-weight: 600; text-decoration: none; }
.cat-filter ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 32px; }
.cat-filter a { display: inline-block; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 550; font-size: .95rem; }
.cat-filter a:hover { background: var(--light-blue); }
.search-form { display: flex; max-width: 460px; }
.search-field { flex: 1; font: inherit; padding: 12px 14px; border: 1.5px solid #B9C5D3; border-right: 0; border-radius: 8px 0 0 8px; min-width: 0; }
.search-submit { background: var(--blue-ink); color: #fff; border: 0; border-radius: 0 8px 8px 0; padding: 0 16px; cursor: pointer; }
.search-submit:hover { background: var(--navy-2); }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0; margin: 40px 0 0; }
.pagination a, .pagination span { display: inline-block; min-width: 42px; text-align: center; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.no-results { max-width: 560px; margin: 0 auto; text-align: center; padding: 24px 0; }
.related { background: var(--gray); padding: 56px 0; }
.related h2 { margin-bottom: 28px; }

/* Entry content */
.entry-content { font-size: 1.06rem; }
.entry-content h2 { margin-top: 1.8em; font-size: 1.5rem; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content img { border-radius: 8px; }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--blue); color: var(--navy-2); }
.entry-content table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-thumb { margin: 0 0 32px; }
.entry-thumb img { width: 100%; border-radius: var(--radius); }
.tag-list { margin: 36px 0 0; font-size: .95rem; }
.tag-list a { display: inline-block; background: var(--gray); padding: 3px 12px; border-radius: 999px; margin: 0 4px 4px 0; text-decoration: none; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.nav-sub { display: block; font-size: .85rem; color: var(--muted); }
.comments-wrap { padding-bottom: 48px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; }
.comment-body { border-bottom: 1px solid var(--line); padding: 16px 0; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid #B9C5D3; border-radius: 8px; }
.comment-form .submit { background: var(--blue-ink); color: #fff; border: 0; border-radius: 8px; padding: 13px 24px; font: 600 1rem var(--font); cursor: pointer; }

/* Footer */
.site-footer { background: var(--navy); color: #C9D8EA; }
.site-footer a { color: #E4EEF9; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.3fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.site-footer .brand-link { color: #fff; margin-bottom: 14px; }
.footer-tagline { color: #fff; font-weight: 600; margin-bottom: .5em; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer .menu { list-style: none; margin: 0; padding: 0; }
.site-footer .menu li { margin-bottom: 8px; }
.site-footer .menu a { text-decoration: none; }
.site-footer .menu a:hover { text-decoration: underline; }
.site-footer .contact-list .icon { color: #8CC0F5; }
.social-links { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 0; margin: 16px 0 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0; font-size: .92rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; padding-top: 44px; } }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, .gallery-caption { max-width: 100%; font-size: .9rem; color: var(--muted); }
.sticky .post-card-title::after { content: ""; }
.bypostauthor { display: block; }

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