/* ============================================
   AGENT CREATIVE — Custom Styles
   Apple-level precision, every edge considered
   ============================================ */

/* === GLOBAL RESET & BASE === */
*, *::before, *::after {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	overflow-x: hidden;
	background: #FFFFFF;
}

::selection {
	background: rgba(0, 127, 255, 0.12);
	color: #1F2937;
}

/* === TYPOGRAPHY REFINEMENTS === */
h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
	max-width: 65ch;
}

.has-text-align-center p,
.has-text-align-center {
	margin-left: auto;
	margin-right: auto;
}

/* Label / Eyebrow text */
.ac-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--primary);
	display: inline-block;
	margin-bottom: 0.75rem;
}

/* === HEADER === */
.ac-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ac-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.9rem 2rem;
}

/* Navigation Links */
.ac-header .wp-block-navigation a,
.ac-header nav a {
	font-size: 0.875rem;
	font-weight: 500;
	color: #4B5563;
	text-decoration: none;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	transition: all 0.2s ease;
	letter-spacing: -0.005em;
}

.ac-header .wp-block-navigation a:hover,
.ac-header nav a:hover {
	color: #111827;
	background: rgba(0, 0, 0, 0.04);
}

/* Logo */
.ac-logo {
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #111827;
	text-decoration: none !important;
}

.ac-logo span {
	color: var(--wp--preset--color--primary);
}

/* Header CTA */
.ac-header-cta {
	font-size: 0.8125rem !important;
	font-weight: 500 !important;
	padding: 0.6rem 1.35rem !important;
	background: #111827 !important;
	color: #FFFFFF !important;
	border-radius: 8px !important;
	text-decoration: none !important;
	transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
	border: none !important;
}

.ac-header-cta:hover {
	background: var(--wp--preset--color--primary) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 127, 255, 0.25);
}

/* === HERO SECTION === */
.ac-hero {
	padding: 8rem 2rem 6rem;
	position: relative;
	overflow: hidden;
}

.ac-hero::before {
	content: '';
	position: absolute;
	top: -200px;
	right: -200px;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(0, 127, 255, 0.04) 0%, transparent 70%);
	pointer-events: none;
}

.ac-hero::after {
	content: '';
	position: absolute;
	bottom: -150px;
	left: -150px;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(255, 165, 0, 0.03) 0%, transparent 70%);
	pointer-events: none;
}

.ac-hero h1 {
	max-width: 800px;
}

.ac-hero p {
	color: var(--wp--preset--color--gray-500);
	max-width: 540px;
}

/* === BUTTONS === */
.wp-block-button__link,
.ac-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: "Inter", sans-serif;
	font-weight: 500;
	border-radius: 8px;
	transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	cursor: pointer;
	border: none;
	text-decoration: none !important;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1.5px solid var(--wp--preset--color--gray-300);
	background: transparent;
	color: var(--wp--preset--color--gray-700);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--gray-900);
	color: var(--wp--preset--color--gray-900);
	background: var(--wp--preset--color--gray-50);
}

/* Primary button */
.ac-btn-primary,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: #111827;
	color: #FFFFFF;
	padding: 0.85rem 2rem;
	font-size: 0.9375rem;
}

.ac-btn-primary:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary);
	box-shadow: 0 4px 14px rgba(0, 127, 255, 0.3);
}

/* Ghost button */
.ac-btn-ghost {
	background: transparent;
	color: var(--wp--preset--color--gray-600);
	padding: 0.85rem 1.5rem;
	font-size: 0.9375rem;
}

.ac-btn-ghost:hover {
	color: var(--wp--preset--color--gray-900);
	background: var(--wp--preset--color--gray-100);
}

/* === SECTION STYLES === */
.ac-section {
	padding: 6rem 2rem;
	position: relative;
}

.ac-section-sm {
	padding: 4rem 2rem;
}

.ac-section-lg {
	padding: 8rem 2rem;
}

.ac-section-gray {
	background: var(--wp--preset--color--gray-50);
}

.ac-section-dark {
	background: var(--wp--preset--color--gray-900);
	color: var(--wp--preset--color--gray-100);
}

.ac-section-dark h2,
.ac-section-dark h3 {
	color: #FFFFFF;
}

.ac-section-dark p {
	color: var(--wp--preset--color--gray-400);
}

/* === CARDS === */
.ac-card {
	background: #FFFFFF;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 16px;
	padding: 2.5rem;
	transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	position: relative;
	overflow: hidden;
}

.ac-card:hover {
	border-color: rgba(0, 0, 0, 0.1);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

.ac-card-icon {
	width: 48px;
	height: 48px;
	background: var(--wp--preset--color--gray-100);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	font-size: 1.25rem;
}

.ac-card h3,
.ac-card h4 {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.ac-card p {
	color: var(--wp--preset--color--gray-500);
	font-size: 0.9375rem;
	line-height: 1.65;
}

/* === PORTFOLIO / WORK GRID === */
.ac-work-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

@media (max-width: 768px) {
	.ac-work-grid {
		grid-template-columns: 1fr;
	}
}

.ac-work-item {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4/3;
	background: var(--wp--preset--color--gray-100);
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ac-work-item:hover {
	transform: scale(1.01);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.ac-work-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ac-work-item:hover img {
	transform: scale(1.05);
}

.ac-work-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 2rem;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.ac-work-item:hover .ac-work-overlay {
	opacity: 1;
}

.ac-work-overlay h3 {
	color: #FFFFFF;
	font-size: 1.25rem;
	margin-bottom: 0.25rem;
}

.ac-work-overlay p {
	color: rgba(255,255,255,0.7);
	font-size: 0.875rem;
}

/* === STATS / METRICS === */
.ac-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	text-align: center;
	padding: 3rem 0;
}

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

.ac-stat-number {
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	color: var(--wp--preset--color--gray-900);
	line-height: 1.1;
	margin-bottom: 0.5rem;
}

.ac-stat-label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--wp--preset--color--gray-400);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* === TESTIMONIALS === */
.ac-testimonial {
	background: #FFFFFF;
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 16px;
	padding: 2.5rem;
}

.ac-testimonial-text {
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--wp--preset--color--gray-700);
	margin-bottom: 1.5rem;
	font-style: normal;
}

.ac-testimonial-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.ac-testimonial-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wp--preset--color--gray-200);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--wp--preset--color--gray-500);
}

.ac-testimonial-name {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--gray-900);
}

.ac-testimonial-role {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--gray-400);
}

/* === TEAM === */
.ac-team-member {
	text-align: center;
}

.ac-team-photo {
	width: 100%;
	aspect-ratio: 3/4;
	border-radius: 16px;
	overflow: hidden;
	background: var(--wp--preset--color--gray-100);
	margin-bottom: 1.25rem;
}

.ac-team-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.ac-team-member:hover .ac-team-photo img {
	transform: scale(1.03);
}

/* === CTA SECTION === */
.ac-cta {
	text-align: center;
	background: var(--wp--preset--color--gray-900);
	border-radius: 24px;
	padding: 5rem 3rem;
	position: relative;
	overflow: hidden;
}

.ac-cta::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -20%;
	width: 60%;
	height: 200%;
	background: radial-gradient(ellipse, rgba(0, 127, 255, 0.08) 0%, transparent 60%);
	pointer-events: none;
}

.ac-cta h2 {
	color: #FFFFFF;
	max-width: 600px;
	margin: 0 auto 1rem;
}

.ac-cta p {
	color: var(--wp--preset--color--gray-400);
	margin: 0 auto 2rem;
}

/* === FOOTER === */
.ac-footer {
	background: var(--wp--preset--color--gray-50);
	border-top: 1px solid var(--wp--preset--color--gray-200);
}

.ac-footer a {
	color: var(--wp--preset--color--gray-500);
	text-decoration: none;
	font-size: 0.875rem;
	transition: color 0.2s ease;
}

.ac-footer a:hover {
	color: var(--wp--preset--color--gray-900);
}

.ac-footer-bottom {
	border-top: 1px solid var(--wp--preset--color--gray-200);
	padding-top: 1.5rem;
	margin-top: 2rem;
}

.ac-footer-note {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--gray-400);
}

/* === DIVIDER — THIN LINE === */
.ac-divider {
	width: 48px;
	height: 2px;
	background: var(--wp--preset--color--primary);
	border: none;
	margin: 1.5rem 0;
	border-radius: 1px;
}

.has-text-align-center .ac-divider {
	margin-left: auto;
	margin-right: auto;
}

/* === PILL / TAG === */
.ac-pill {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary);
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 100px;
	letter-spacing: 0.02em;
}

.ac-pill-orange {
	background: var(--wp--preset--color--secondary-light);
	color: var(--wp--preset--color--secondary-dark);
}

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

.ac-animate {
	animation: fadeInUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.ac-animate-delay-1 { animation-delay: 0.1s; }
.ac-animate-delay-2 { animation-delay: 0.2s; }
.ac-animate-delay-3 { animation-delay: 0.3s; }
.ac-animate-delay-4 { animation-delay: 0.4s; }

/* === BLOG CARDS === */
.ac-blog-card {
	border-radius: 16px;
	overflow: hidden;
	background: #FFFFFF;
	border: 1px solid rgba(0,0,0,0.06);
	transition: all 0.3s ease;
}

.ac-blog-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.06);
	transform: translateY(-2px);
}

.ac-blog-card-image {
	aspect-ratio: 16/10;
	overflow: hidden;
	background: var(--wp--preset--color--gray-100);
}

.ac-blog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ac-blog-card-content {
	padding: 1.5rem;
}

.ac-blog-card-meta {
	font-size: 0.75rem;
	color: var(--wp--preset--color--gray-400);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.75rem;
}

/* === CONTACT FORM === */
.ac-form input,
.ac-form textarea,
.ac-form select {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1.5px solid var(--wp--preset--color--gray-200);
	border-radius: 10px;
	font-family: "Inter", sans-serif;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--gray-800);
	background: #FFFFFF;
	transition: all 0.2s ease;
	outline: none;
}

.ac-form input:focus,
.ac-form textarea:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(0, 127, 255, 0.08);
}

.ac-form input::placeholder,
.ac-form textarea::placeholder {
	color: var(--wp--preset--color--gray-400);
}

.ac-form label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--gray-700);
	margin-bottom: 0.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
	.ac-hero {
		padding: 5rem 1.5rem 4rem;
	}
	.ac-section {
		padding: 4rem 1.5rem;
	}
}

@media (max-width: 768px) {
	.ac-hero {
		padding: 4rem 1.25rem 3rem;
	}
	.ac-section {
		padding: 3rem 1.25rem;
	}
	.ac-cta {
		padding: 3rem 1.5rem;
		border-radius: 16px;
	}
	.ac-card {
		padding: 1.75rem;
	}
	.ac-stats {
		gap: 1.5rem;
	}
	.ac-header-inner {
		padding: 0.75rem 1.25rem;
	}
}

/* === UTILITY CLASSES === */
.ac-max-w-sm { max-width: 540px; }
.ac-max-w-md { max-width: 720px; }
.ac-max-w-lg { max-width: 900px; }
.ac-mx-auto { margin-left: auto; margin-right: auto; }
.ac-text-center { text-align: center; }
.ac-text-gray { color: var(--wp--preset--color--gray-500); }
.ac-text-muted { color: var(--wp--preset--color--gray-400); }
.ac-mb-0 { margin-bottom: 0 !important; }
.ac-mb-1 { margin-bottom: 0.5rem; }
.ac-mb-2 { margin-bottom: 1rem; }
.ac-mb-3 { margin-bottom: 1.5rem; }
.ac-mb-4 { margin-bottom: 2rem; }
.ac-mb-6 { margin-bottom: 3rem; }
.ac-mt-0 { margin-top: 0 !important; }
.ac-gap-sm { gap: 0.75rem; }
.ac-gap-md { gap: 1.5rem; }
.ac-gap-lg { gap: 2.5rem; }

/* Accent dot */
.ac-dot {
	color: var(--wp--preset--color--primary);
}

/* Orange accent underline */
.ac-underline-accent {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--secondary);
	text-underline-offset: 4px;
	text-decoration-thickness: 2px;
}

/* Gradient text */
.ac-gradient-text {
	background: linear-gradient(135deg, #007FFF, #0059B3);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Subtle grid background */
.ac-grid-bg {
	background-image: 
		linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
	background-size: 48px 48px;
}
