/*
Theme Name: aicreation
Theme URI: https://aicreation.ai
Author: aicreation
Description: Dark, blue-glow business theme for aicreation — Home, Services, About us, Blogs and Register pages built from the Figma design.
Version: 1.0.0
Requires at least: 5.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: aicreation
*/

:root {
	--bg: #000;
	--blue: #0a84ff;
	--blue-soft: rgba(10, 132, 255, .45);
	--text: #fff;
	--muted: #98a2b3;
	--card: #020a14;
	--card-2: #040c16;
	--line: #0b2a4a;
	--line-soft: #10243a;
	--font-display: "Audiowide", "Orbitron", "Bai Jamjuree", system-ui, sans-serif;
	--font-ui: "Bai Jamjuree", "Inter", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1336px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 100;
	background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * 60px); margin: 0 auto; padding: 0 60px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; padding: 28px 0 0; }
.header-inner { display: flex; align-items: center; gap: 40px; }
.site-logo {
	font-family: var(--font-ui); font-weight: 700; font-size: 2.2rem;
	color: var(--blue); text-decoration: none; letter-spacing: -.01em; line-height: 1;
	margin-right: clamp(30px, 11vw, 160px); flex: 0 0 auto;
}
.custom-logo-link img { max-height: 48px; width: auto; display: block; }
.main-nav { display: flex; }
.main-nav ul { display: flex; gap: clamp(28px, 4.6vw, 96px); align-items: center; }
.main-nav li { position: relative; }
.main-nav a {
	font-family: var(--font-ui); font-size: 1.35rem; color: #fff;
	text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
	display: inline-block; padding: 6px 0;
}
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a { color: var(--blue); }
.main-nav .current-menu-item::after,
.main-nav .current_page_item::after,
.main-nav .current-menu-ancestor::after {
	content: ""; position: absolute; left: 0; bottom: -10px; width: 28px; height: 2px; background: var(--blue);
}
.header-cta { margin-left: auto; flex: 0 0 auto; }

.btn-glass {
	display: inline-block;
	font-family: var(--font-ui); font-size: 1.35rem; color: #fff;
	text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
	padding: 14px 40px; border-radius: 16px; border: 1.5px solid var(--blue);
	background: linear-gradient(180deg, #072544 0%, #031629 100%);
	box-shadow: 0 0 14px rgba(10, 132, 255, .5), inset 0 0 12px rgba(10, 132, 255, .25);
	transition: box-shadow .2s, transform .2s;
}
.btn-glass:hover { box-shadow: 0 0 22px rgba(10, 132, 255, .8), inset 0 0 14px rgba(10, 132, 255, .35); }

.nav-toggle {
	display: none; background: none; border: 1.5px solid var(--blue); border-radius: 12px;
	width: 48px; height: 48px; padding: 0; cursor: pointer; margin-left: auto;
	align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Shared bits ---------- */
.eyebrow {
	display: flex; align-items: center; gap: 12px;
	font-family: var(--font-ui); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--blue); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--blue); }

.page-title {
	font-family: var(--font-display); color: #fff; line-height: 1.15;
	font-size: clamp(2rem, 3.6vw, 3.4rem);
}
.lede { color: var(--muted); font-size: 1.3rem; line-height: 1.55; font-weight: 300; }

.btn-blue {
	display: inline-flex; align-items: center; gap: 28px;
	font-family: var(--font-ui); font-size: 1.1rem; color: #fff;
	background: var(--blue); border: 0; border-radius: 10px; padding: 12px 22px; cursor: pointer;
	text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
	transition: filter .2s, transform .2s;
}
.btn-blue:hover { filter: brightness(1.12); }
.btn-blue svg { width: 14px; height: 14px; flex: none; }

.site-footer { margin-top: 28px; padding-bottom: 22px; }
.footer-inner {
	display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center;
	border-top: 1px solid var(--line); padding-top: 16px;
	font-size: .85rem; color: var(--muted); font-family: var(--font-ui);
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-links a.footer-mail { color: var(--blue); }

/* ---------- Home ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 70px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-swirl {
	position: absolute; right: 0; top: 10px; width: min(50vw, 700px); aspect-ratio: 1; z-index: 0;
	filter: drop-shadow(0 0 60px rgba(10, 132, 255, .55));
}
.hero-swirl img { width: 100%; display: block; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
	font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1.22;
	max-width: 12.5em; margin-top: clamp(40px, 6vw, 80px); letter-spacing: .01em;
}
.hero-sub {
	font-family: var(--font-body); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.9rem); line-height: 1.3;
	max-width: 17em; margin: clamp(22px, 3vw, 38px) 0 30px;
}

/* ---------- Services ---------- */
.page-head { position: relative; padding: clamp(36px, 5vw, 60px) 0 30px; }
.page-head .head-swirl {
	position: absolute; right: 60px; top: 0; width: clamp(120px, 14vw, 210px);
	filter: drop-shadow(0 0 30px rgba(10, 132, 255, .5)); pointer-events: none;
}
.page-head .lede { margin-top: 16px; font-size: 1.15rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 10px; }
.service-card {
	background: var(--card); border: 2px solid var(--blue); border-radius: 22px;
	padding: 24px 26px 28px; box-shadow: 0 0 18px rgba(10, 132, 255, .35), inset 0 0 18px rgba(10, 132, 255, .08);
	display: flex; flex-direction: column;
}
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-top svg { width: 28px; height: 28px; color: var(--blue); }
.card-top .num { font-family: var(--font-ui); color: var(--blue); font-size: .95rem; }
.service-card h2 {
	font-family: var(--font-ui); font-weight: 500; font-size: 1.7rem; line-height: 1.2;
	text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; margin-bottom: 18px; min-height: 2.4em;
}
.service-card .desc { color: var(--muted); font-size: .95rem; font-weight: 300; line-height: 1.6; margin-bottom: 20px; min-height: 4.8em; }
.service-card li {
	position: relative; padding-left: 18px; font-size: .9rem; margin-bottom: 8px; font-family: var(--font-body);
}
.service-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--blue); }
.services-cta {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center;
	margin-top: 24px; color: var(--muted); font-weight: 300;
}
.services-cta p { margin: 0; }
.services-cta a { font-family: var(--font-ui); font-weight: 600; text-decoration: none; font-size: 1.05rem; }

/* ---------- About ---------- */
.about-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: clamp(36px, 5vw, 60px) 0 30px; }
.about-hero .page-title { margin-bottom: 26px; }
.about-hero .lede-strong { font-size: 1.4rem; font-weight: 400; line-height: 1.5; margin-bottom: 20px; max-width: 28em; }
.about-hero .lede { font-size: 1.1rem; max-width: 34em; margin-bottom: 26px; }
.about-swirl { display: flex; justify-content: center; filter: drop-shadow(0 0 50px rgba(10, 132, 255, .55)); }
.about-swirl img { width: min(100%, 520px); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--line); padding-top: 22px; }
.value h3 { font-family: var(--font-ui); font-weight: 500; font-size: 1.35rem; border-left: 4px solid var(--blue); padding-left: 12px; line-height: 1.1; margin-bottom: 10px; }
.value p { color: var(--muted); font-weight: 300; font-size: .98rem; max-width: 24em; }

/* ---------- Blog ---------- */
.blog-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-end; padding-top: clamp(36px, 5vw, 56px); }
.blog-head .lede { font-size: 1.15rem; max-width: 22em; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 26px; }
.chip {
	font-family: var(--font-body); font-size: .9rem; color: var(--muted); background: #050d17; cursor: pointer;
	border: 1px solid var(--line-soft); border-radius: 999px; padding: 8px 18px; transition: background .2s, color .2s;
}
.chip:hover { color: #fff; border-color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.post-card[hidden] { display: none; }
.post-thumb { display: block; height: 180px; background: #020a14; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.post-thumb img.art-swirl { width: 62%; margin: 0 auto; object-fit: cover; object-position: center 22%; }
.post-body { padding: 22px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-ui); margin-bottom: 14px; }
.post-meta .cat { color: var(--blue); }
.post-meta .date { color: var(--muted); }
.post-card h2 { font-family: var(--font-ui); font-weight: 500; font-size: 1.35rem; line-height: 1.3; margin-bottom: 10px; }
.post-card h2 a { color: #fff; text-decoration: none; }
.post-card .excerpt { color: var(--muted); font-size: .95rem; font-weight: 300; flex: 1; }
.post-foot { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.post-foot a { color: var(--blue); text-decoration: none; font-family: var(--font-ui); font-weight: 600; }
.pagination { margin: 30px 0 0; }
.pagination .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pagination a, .pagination span {
	padding: 8px 16px; border: 1px solid var(--line-soft); border-radius: 999px; color: #fff; text-decoration: none; font-size: .9rem;
}
.pagination .current { background: var(--blue); border-color: var(--blue); }
.no-posts { color: var(--muted); padding: 40px 0; }

/* ---------- Single post / default page ---------- */
.article { max-width: 760px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) 0 20px; }
.article .post-meta { justify-content: flex-start; gap: 18px; }
.article h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.2; margin-bottom: 26px; }
.article-thumb { border-radius: 20px; overflow: hidden; margin-bottom: 30px; border: 1px solid var(--line-soft); }
.article-thumb img { display: block; width: 100%; }
.entry-content { font-size: 1.1rem; line-height: 1.8; color: #d6dbe4; font-weight: 300; }
.entry-content h2, .entry-content h3 { font-family: var(--font-ui); font-weight: 500; color: #fff; margin: 1.6em 0 .6em; }
.entry-content h2 { font-size: 1.8rem; } .entry-content h3 { font-size: 1.4rem; }
.entry-content blockquote { border-left: 4px solid var(--blue); margin: 1.6em 0; padding: .2em 0 .2em 1.2em; color: #fff; }
.entry-content img { border-radius: 14px; }
.entry-content pre, .entry-content code { background: #07121e; border-radius: 8px; padding: .15em .4em; }
.entry-content pre { padding: 1em; overflow-x: auto; }
.back-link { display: inline-block; margin-top: 30px; font-family: var(--font-ui); text-decoration: none; font-weight: 600; }

/* ---------- Register ---------- */
.register { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: clamp(36px, 5vw, 60px) 0 40px; align-items: start; }
.register .page-title { margin-bottom: 26px; }
.register .lede { font-size: 1.15rem; max-width: 24em; }
.register-swirl { margin-top: 36px; width: min(300px, 55%); filter: drop-shadow(0 0 40px rgba(10, 132, 255, .55)); }
.form-card { background: var(--card-2); border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px 22px; }
.form-card h2 { font-family: var(--font-ui); font-weight: 500; font-size: 1.8rem; }
.form-card .signin { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.form-card .signin a { font-weight: 600; text-decoration: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 14px; position: relative; }
.field label { display: block; font-family: var(--font-ui); font-size: .95rem; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password] {
	width: 100%; height: 44px; background: #07121e; border: 1px solid var(--line-soft); border-radius: 10px;
	padding: 0 44px 0 14px; color: #fff; font: 400 .95rem var(--font-body);
}
.field input::placeholder { color: #6b778a; }
.field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(10, 132, 255, .2); }
.field .icon-btn {
	position: absolute; right: 8px; bottom: 7px; background: none; border: 0; color: #cfd6e2; cursor: pointer; width: 30px; height: 30px;
	display: flex; align-items: center; justify-content: center; padding: 0;
}
.field .icon-btn svg, .field .icon { width: 18px; height: 18px; }
.field .icon { position: absolute; right: 14px; bottom: 13px; color: #cfd6e2; pointer-events: none; }
.hint { font-size: .78rem; color: var(--muted); margin: 6px 0 0; }
.terms { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--muted); margin: 14px 0 16px; }
.terms input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--blue); border-radius: 4px; background: transparent; margin: 1px 0 0; cursor: pointer; }
.terms input:checked { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/80% no-repeat; }
.terms a { color: var(--muted); }
.form-card .btn-blue { width: 100%; justify-content: space-between; font-size: 1.1rem; padding: 13px 20px; text-decoration: none; }
.private-note { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; margin: 14px 0 0; }
.private-note svg { width: 14px; height: 14px; color: var(--blue); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: .92rem; }
.notice.ok { background: rgba(10, 132, 255, .12); border: 1px solid var(--blue); }
.notice.err { background: rgba(255, 69, 58, .1); border: 1px solid #ff453a; color: #ffb3ae; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.wrap { padding: 0 32px; }
	.service-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
	.main-nav a, .btn-glass { font-size: 1.15rem; }
	.page-head .head-swirl { right: 32px; }
}
@media (max-width: 900px) {
	.header-inner { flex-wrap: wrap; gap: 16px; }
	.nav-toggle { display: flex; }
	.site-logo { margin-right: 0; }
	.main-nav, .header-cta { display: none; width: 100%; margin: 0 !important; }
	.nav-open .main-nav { display: block; order: 3; }
	.nav-open .header-cta { display: block; order: 4; }
	.main-nav ul { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 0; }
	.main-nav .current-menu-item::after, .main-nav .current_page_item::after, .main-nav .current-menu-ancestor::after { bottom: 0; }
	.header-cta .btn-glass { display: block; text-align: center; }
	.about-hero, .register { grid-template-columns: 1fr; }
	.about-swirl { order: -1; }
	.values { grid-template-columns: 1fr; gap: 26px; }
	.hero-swirl { width: 90vw; right: -25%; top: 40px; opacity: .55; }
	.hero h1 { max-width: none; }
	.page-head .head-swirl { display: none; }
}
@media (max-width: 640px) {
	.wrap { padding: 0 20px; }
	.service-grid, .post-grid { grid-template-columns: 1fr; }
	.field-row { grid-template-columns: 1fr; gap: 0; }
	.footer-inner { flex-direction: column; align-items: flex-start; }
	.service-card .desc { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* WordPress core alignment helpers */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); }
.admin-bar .site-header { margin-top: 0; }
