/**
Theme Name: JRoblesDev Child
Author: J. Robles
Description: Portfolio child theme — mobile-first, Inter typography
Version: 1.3.0
Template: astra
Text Domain: jroblesdev-child
*/

:root {
	--jr-primary: #007cf0;
	--jr-primary-dark: #0056b3;
	--jr-dark: #0f172a;
	--jr-gray: #475569;
	--jr-muted: #64748b;
	--jr-light: #f8fafc;
	--jr-border: #e2e8f0;
	--jr-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--jr-mono: "JetBrains Mono", "SF Mono", Consolas, "Courier New", monospace;
	--jr-header-h: 64px;
	--jr-radius: 10px;
	--jr-radius-sm: 8px;
}

body {
	font-family: var(--jr-font);
	-webkit-font-smoothing: antialiased;
}

.site-primary-footer-wrap,
.site-below-footer-wrap,
.ast-small-footer {
	display: none !important;
}

/* Brand mark — mono accent only */
.site-title a,
.jr-footer-logo {
	font-family: var(--jr-mono) !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.site-title a::before { content: "< "; color: var(--jr-primary); }
.site-title a::after { content: " />"; color: var(--jr-primary); }

/* Header */
.ast-builder-layout-element .ast-custom-button,
.header-button-1 .ast-custom-button {
	background: var(--jr-primary) !important;
	color: #fff !important;
	border-radius: var(--jr-radius-sm) !important;
	font-family: var(--jr-font) !important;
	font-weight: 600 !important;
	font-size: 0.875rem !important;
	padding: 8px 18px !important;
	line-height: 1.3 !important;
	transition: all 0.25s ease !important;
	min-height: 44px;
	display: inline-flex !important;
	align-items: center !important;
}

.ast-builder-layout-element .ast-custom-button:hover,
.header-button-1 .ast-custom-button:hover {
	background: var(--jr-primary-dark) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 124, 240, 0.35);
}

.main-header-menu .menu-link {
	font-family: var(--jr-font) !important;
	font-weight: 500 !important;
	font-size: 0.9375rem !important;
}

#ast-desktop-header,
#ast-mobile-header {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	z-index: 9999 !important;
	background: rgba(255, 255, 255, 0.95) !important;
	backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 var(--jr-border) !important;
}

#masthead, .ast-mobile-header-wrap { background: transparent !important; }
#page { margin-top: var(--jr-header-h) !important; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--jr-header-h) + 16px) !important;
}

/* Hero */
.hero-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: auto;
	padding: clamp(48px, 12vw, 96px) 20px clamp(40px, 8vw, 64px);
	background: linear-gradient(180deg, #fff 0%, var(--jr-light) 100%);
}

.hero-section h1 {
	font-family: var(--jr-font) !important;
	font-size: clamp(2rem, 7vw, 3.75rem) !important;
	font-weight: 800 !important;
	letter-spacing: -0.03em !important;
	margin-bottom: 16px !important;
	line-height: 1.08 !important;
	color: var(--jr-dark);
}

.hero-section p {
	font-size: clamp(1rem, 2.5vw, 1.2rem) !important;
	max-width: 36rem;
	margin: 0 auto 32px !important;
	color: var(--jr-muted);
	line-height: 1.65 !important;
}

.hero-section .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	width: 100%;
	max-width: 24rem;
	margin: 0 auto;
}

.hero-section .wp-block-button { flex: 1 1 auto; min-width: 140px; }

.hero-section .wp-block-button__link {
	border-radius: var(--jr-radius-sm) !important;
	font-family: var(--jr-font) !important;
	font-weight: 600 !important;
	font-size: 0.9375rem !important;
	padding: 14px 24px !important;
	width: 100%;
	text-align: center;
	transition: all 0.25s ease !important;
	min-height: 48px;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.hero-section .wp-block-button:first-child .wp-block-button__link {
	background: var(--jr-primary) !important;
	color: #fff !important;
	border: 2px solid var(--jr-primary) !important;
}

.hero-section .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--jr-primary) !important;
	border: 2px solid var(--jr-border) !important;
}

.hero-section .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--jr-primary) !important;
	color: #fff !important;
	border-color: var(--jr-primary) !important;
}

/* About + tech stack */
.about-section {
	padding: clamp(40px, 8vw, 64px) 20px;
	text-align: center;
}

.about-section > h2,
.projects-section > h2,
.contact-section h2 {
	font-family: var(--jr-font) !important;
	font-size: clamp(1.5rem, 4vw, 2.25rem) !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em !important;
	color: var(--jr-dark);
	margin-bottom: 12px !important;
}

.about-section > p,
.projects-section > p,
.contact-section > p {
	color: var(--jr-muted);
	font-size: clamp(0.95rem, 2vw, 1.05rem);
	max-width: 36rem;
	margin: 0 auto 32px !important;
	line-height: 1.65;
}

.tech-stack-section {
	padding: 0 0 8px;
	gap: 16px !important;
	width: 100%;
	max-width: 1100px;
}

.tech-stack-section .wp-block-column {
	padding: clamp(20px, 4vw, 28px);
	border: 1px solid var(--jr-border);
	border-radius: var(--jr-radius);
	background: #fff;
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.tech-stack-section .wp-block-column:hover {
	border-color: var(--jr-primary);
	transform: translateY(-3px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.tech-stack-section h3 {
	font-family: var(--jr-font);
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--jr-dark);
	margin-bottom: 12px;
}

/* Projects */
.projects-section {
	padding: clamp(48px, 8vw, 80px) 20px;
	background: var(--jr-light);
	text-align: center;
}

.projects-grid {
	max-width: 1100px;
	margin: 0 auto;
	gap: 16px !important;
}

.project-card {
	background: #fff;
	border: 1px solid var(--jr-border);
	border-radius: var(--jr-radius);
	padding: clamp(20px, 4vw, 28px);
	text-align: left;
	transition: all 0.25s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.project-card:hover {
	border-color: var(--jr-primary);
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.project-card .project-badge {
	display: inline-block;
	font-size: 0.65rem;
	font-weight: 700;
	font-family: var(--jr-mono);
	background: var(--jr-primary);
	color: #fff;
	padding: 5px 10px;
	border-radius: 20px;
	margin-bottom: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.project-card h3 {
	font-size: clamp(1.1rem, 2.5vw, 1.25rem) !important;
	font-weight: 700 !important;
	color: var(--jr-dark);
	margin-bottom: 10px !important;
}

.project-card p {
	color: var(--jr-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
	flex-grow: 1;
	margin-bottom: 16px !important;
}

.project-card .wp-block-button__link {
	background: transparent !important;
	color: var(--jr-primary) !important;
	border: none !important;
	padding: 0 !important;
	font-family: var(--jr-font) !important;
	font-weight: 600 !important;
	font-size: 0.9rem !important;
	min-height: 44px;
	display: inline-flex !important;
	align-items: center !important;
}

.project-card .wp-block-button__link::after { content: " →"; }

/* Badge color variants */
.project-badge--green {
	background: #16a34a !important;
}
.project-badge--purple {
	background: #7c3aed !important;
}
.project-badge--dark {
	background: var(--jr-dark) !important;
}

/* Make entire card clickable */
.project-card {
	cursor: pointer;
	position: relative;
}

/* 6-card grid — 3 columns on desktop, 2 on tablet, 1 on mobile */
.projects-section .projects-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 16px !important;
}
.projects-section .projects-grid .wp-block-column {
	width: auto !important;
	flex: none !important;
}

.projects-section .view-all-wrap { margin-top: 36px; }

.projects-section .view-all-wrap .wp-block-button__link {
	background: var(--jr-dark) !important;
	color: #fff !important;
	border-radius: var(--jr-radius-sm) !important;
	font-family: var(--jr-font) !important;
	font-weight: 600 !important;
	padding: 14px 28px !important;
	min-height: 48px;
}

/* Contact */
.contact-section {
	padding: clamp(48px, 8vw, 80px) 20px;
	text-align: center;
	background: #fff;
}

.contact-section .wp-block-buttons {
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	max-width: 24rem;
	margin: 0 auto;
}

.contact-section .wp-block-button__link {
	border-radius: var(--jr-radius-sm) !important;
	font-family: var(--jr-font) !important;
	font-weight: 600 !important;
	padding: 14px 24px !important;
	min-height: 48px;
}

.contact-section .wp-block-button:first-child .wp-block-button__link {
	background: #14a800 !important;
	color: #fff !important;
}

.about-section .tech-stack-section,
.projects-section .projects-grid {
	max-width: 1100px;
	width: 100%;
	margin-left: auto !important;
	margin-right: auto !important;
	justify-content: center;
}

/* Footer */
.jr-site-footer {
	background: var(--jr-dark);
	color: #94a3b8;
	padding: clamp(40px, 8vw, 64px) 20px 0;
}

.jr-footer-inner { max-width: 1100px; margin: 0 auto; }

.jr-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: clamp(24px, 4vw, 40px);
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jr-footer-logo {
	font-size: 1.15rem;
	color: #fff;
	text-decoration: none;
	display: inline-block;
	margin-bottom: 14px;
}

.jr-footer-logo:hover { color: var(--jr-primary); }

.jr-footer-brand p {
	font-size: 0.9rem;
	line-height: 1.7;
	margin: 0;
	max-width: 280px;
}

.jr-footer-col h4 {
	color: #fff;
	font-family: var(--jr-font);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 16px;
}

.jr-footer-col ul { list-style: none; margin: 0; padding: 0; }
.jr-footer-col li { margin-bottom: 8px; }
.jr-footer-col a {
	color: #94a3b8;
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.2s;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.jr-footer-col a:hover { color: var(--jr-primary); }

.jr-footer-cta {
	display: inline-flex;
	align-items: center;
	margin-top: 16px;
	background: var(--jr-primary);
	color: #fff !important;
	padding: 10px 18px;
	border-radius: var(--jr-radius-sm);
	font-family: var(--jr-font);
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	min-height: 44px;
	transition: all 0.25s;
}

.jr-footer-cta:hover {
	background: var(--jr-primary-dark);
	transform: translateY(-1px);
}

.jr-footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 20px 0;
	font-size: 0.8125rem;
}

.jr-footer-bottom p { margin: 0; }

.jr-footer-tagline {
	font-family: var(--jr-mono);
	font-size: 0.75rem;
	color: #64748b;
}

.jr-social-icons { display: flex; gap: 10px; margin-top: 16px; }

.jr-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--jr-radius-sm);
	background: rgba(255, 255, 255, 0.06);
	color: #94a3b8;
	transition: all 0.25s;
	text-decoration: none;
}

.jr-social-icon:hover {
	background: var(--jr-primary);
	color: #fff;
	transform: translateY(-2px);
}

.jr-upwork-mark {
	font-family: "Helvetica Neue", Arial, sans-serif;
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: -0.04em;
}

.jr-social-upwork:hover {
	background: #14a800 !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(20, 168, 0, 0.35) !important;
}

/* Mobile-first responsive */
@media (max-width: 921px) {
	:root { --jr-header-h: 60px; }

	.tech-stack-section .wp-block-columns {
		flex-direction: column !important;
	}

	.tech-stack-section .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}

	/* Tablet: 2-column grid */
	.projects-section .projects-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.jr-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 544px) {
	/* Mobile: single column */
	.projects-section .projects-grid {
		grid-template-columns: 1fr !important;
	}

	.hero-section .wp-block-buttons {
		flex-direction: column;
		max-width: 100%;
	}

	.hero-section .wp-block-button {
		width: 100%;
		min-width: 0;
	}

	.contact-section .wp-block-buttons {
		flex-direction: column;
		width: 100%;
	}

	.contact-section .wp-block-button { width: 100%; }

	.jr-footer-grid { grid-template-columns: 1fr; }

	.jr-footer-bottom {
		flex-direction: column;
		text-align: center;
	}

	.jr-footer-brand p { max-width: none; }

	.ast-builder-layout-element .ast-custom-button,
	.header-button-1 .ast-custom-button {
		padding: 8px 14px !important;
		font-size: 0.8125rem !important;
	}
}

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