/* ============================================================================
   Julia Illanes — site styles.
   Text content is NOT here — edit content.js for any copy changes.
   ============================================================================ */

/* ---------- Design tokens ---------- */
:root {
	--cream: #faf6f1; /* base background across the whole page */
	--muted-cream: rgba(250, 246, 241, 0.8);
	--green: #1e3d2f; /* dominant color — nav, primary buttons, headings, dividers */
	--green-dark: #14291f; /* hover state for green fills */
	--sage: #5b8a73; /* muted secondary green — icon accent */
	--sage-soft: #9dbda9; /* paler secondary green — icon accent */
	--magenta: #c81e70; /* rare accent — eyebrow labels, bullets, icon accent */
	--pink-light: #e8a6bc; /* soft pink — icon accent + eyebrow on green */
	--ink: #262322; /* base body text */
	--ink-2: #3b362f; /* slightly softer body text (hero subtitle, about, skills rows) */
	--muted: #6b6459; /* secondary text (descriptions, labels) */
	--muted-2: #726b60; /* hero description */
	--muted-3: #8a8177; /* nav links, meta lines */
	--muted-4: #a69c8e; /* quote text, footer copy, lang inactive */
	--rule: #e7dfd3; /* divider lines within section content */
	--rule-soft: #eae2d8; /* nav / footer border */
	--lang-bg: #f1eae0;
	--muted-video: #7c8a7f; /* video placeholder subtitle (sits on the light sage block) */
	--radius: 6px;
	--shadow: 0 20px 40px rgba(30, 61, 47, 0.15);
	--font-display: "Poppins", "Montserrat", -apple-system, "Segoe UI", sans-serif;
	--font-body: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- Reset-ish ---------- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
img {
	max-width: 100%;
	display: block;
}
button {
	font: inherit;
	cursor: pointer;
	background: none;
	border: none;
	color: inherit;
}
a {
	color: inherit;
}
hr {
	border: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	background: var(--cream);
	color: var(--ink);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Language-swap fade */
body,
.site-header nav,
.site-footer {
	transition: opacity 0.18s ease;
}
body.lang-switching,
body.lang-switching .site-header nav,
body.lang-switching .site-footer {
	opacity: 0;
}

/* ---------- Eyebrow labels ---------- */
.eyebrow {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--magenta);
}
.eyebrow-on-green {
	color: var(--pink-light);
}

/* The descriptive line under each section's big heading. */
.tagline {
	font-size: 1.0625rem;
	line-height: 1.5;
	font-weight: 600;
	color: var(--magenta) !important;
}

/* ---------- Header ---------- */
header {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px clamp(20px, 5vw, 64px);
	background: var(--green);
	color: var(--cream);
	border-bottom: 1px solid var(--rule-soft);
	z-index: 100;
}

.logo {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.5rem;
	text-decoration: none;
	letter-spacing: -0.01em;
	color: var(--lang-bg);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 40px);
}

.site-nav {
	display: flex;
	gap: clamp(14px, 2vw, 32px);
}
.site-nav a {
	text-decoration: none;
	font-size: 0.94rem;
	color: rgba(250, 246, 241, 0.8);
	padding: 4px 2px;
	border-bottom: 2px solid transparent;
	transition:
		color 0.15s ease,
		border-color 0.15s ease;
	white-space: nowrap;
}
.site-nav a:hover {
	color: var(--cream);
}
.site-nav a.active {
	color: var(--pink-light);
	border-bottom-color: var(--pink-light);
}

.lang-toggle {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px;
	background: var(--lang-bg);
	border-radius: 999px;
}
.lang-toggle button {
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--muted-3);
	transition:
		background 0.15s ease,
		color 0.15s ease;
}
.lang-toggle button.active {
	background: var(--green);
	color: #fff;
}

/* Burger — mobile only */
.nav-burger {
	display: none;
	flex-direction: column;
	gap: 4px;
	padding: 8px;
}
.nav-burger span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--green);
	border-radius: 1px;
	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Shared section layout ---------- */
.section {
	padding: clamp(48px, 8vw, 88px) 0;
}
.section-inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 clamp(20px, 5vw, 64px);
}

.section-header {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 36px;
}
.section-header p {
	color: var(--muted);
	max-width: 700px;
}

.section-heading {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(1.7rem, 3vw, 2.125rem);
	line-height: 1.15;
	color: var(--green);
	letter-spacing: -0.01em;
}

.ruler {
	height: 1px;
	background: var(--rule);
	width: 100%;
	margin-bottom: 40px;
}
.ruler-grid > .ruler {
	grid-column: 1 / -1;
	margin: 0;
}

.line {
	white-space: pre;
}

/* Scroll reveal */
.reveal {
	opacity: 1;
	transform: none;
	transition:
		opacity 0.6s ease,
		transform 0.6s ease;
}
.reveal.primed {
	opacity: 0;
	transform: translateY(24px);
}

/* ---------- Ruler-grid (column layout used across most sections) ---------- */
.ruler-grid {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	column-gap: 0;
	row-gap: 40px;
}
.ruler-grid > * {
	display: flex;
	padding: 0 26px;
	border-left: 1px solid var(--rule);
	flex-direction: column;
	gap: var(--inner-gap, 13px);
}
.ruler-grid > *:first-child,
.ruler-grid > .ruler + * {
	padding-left: 0;
	border-left: none;
}

.icon {
	width: 34px;
	height: 34px;
}

/* ---------- 1. Hero ---------- */
.hero-inner {
	display: flex;
	align-items: center;
	gap: clamp(32px, 6vw, 72px);
	padding-top: clamp(48px, 8vw, 88px);
}
.hero-text {
	flex: 1.15;
	display: flex;
	flex-direction: column;
	gap: 26px;
	min-width: 0;
}

.hero-name {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2.4rem, 5.4vw, 4.25rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
	color: var(--green);
}
.hero-tagline {
	font-size: clamp(1.1rem, 1.8vw, 1.3125rem);
	line-height: 1.5;
	font-weight: 500;
	color: var(--ink-2);
	max-width: 520px;
}
.hero-secondary {
	font-size: 0.97rem;
	line-height: 1.6;
	color: var(--muted-2);
	max-width: 480px;
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 10px;
}

.hero-portrait-wrap {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}
.hero-portrait {
	width: clamp(220px, 26vw, 420px);
	height: clamp(220px, 26vw, 420px);
	object-fit: cover;
	object-position: top;
	border-radius: 50%;
	box-shadow: var(--shadow);
}

/* Headline numbers — sits inside the hero section, not a separate block */
.numbers-inner {
	margin-top: clamp(48px, 8vw, 96px);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}
.number {
	padding: 34px 30px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	border-left: 1px solid var(--rule);
}
.number:first-child {
	border-left: none;
}
.number > .value {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(1.6rem, 3vw, 2.375rem);
	color: var(--green);
	line-height: 1;
	letter-spacing: -0.02em;
}
.number > .label {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--muted);
	max-width: 240px;
}

/* ---------- About ---------- */
.about-text {
	font-size: 1.03125rem;
	line-height: 1.7;
	color: var(--ink-2);
}
.about-text-soft {
	color: var(--muted);
}

/* ---------- Experience ---------- */
.exp-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--green);
}
.exp-meta {
	font-size: 0.875rem;
	color: var(--muted-3);
}
.exp-summary {
	font-size: 0.90625rem;
	line-height: 1.6;
	color: var(--muted);
}

details {
	padding-top: 4px;
	display: grid;
	grid-template-rows: 1fr auto;
}
details > .details {
	min-height: 0;
}
details::details-content {
	display: grid;
	grid-template-rows: 0fr auto;
	overflow: hidden;
	transition: grid-template-rows 0.3s ease;
}
details[open]::details-content {
	grid-template-rows: 1fr auto;
}
details > summary {
	display: inline-flex;
	cursor: pointer;
	align-items: center;
	gap: 7px;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--green);
	grid-row: 2;
	margin-top: 1em;
}
details > summary:hover {
	text-decoration: underline;
}
details > summary > img {
	transition: transform 0.3s ease;
}
details[open] > summary > img {
	transform: rotate(180deg);
}

details ul {
	display: grid;
	padding-left: 18px;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--muted);
	order: 1;
}
details li::marker {
	color: var(--green);
}

#experience figure {
	margin: 4px 0;
}
#experience figure > img {
	border-radius: var(--radius);
	max-height: 260px;
	width: 100%;
	object-fit: cover;
}
#experience figure > figcaption {
	font-size: 0.78rem;
	color: var(--muted);
	margin-top: 6px;
}

/* ---------- Skills ---------- */

.htitle {
	display: flex;
	align-items: center;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--green);
	margin-bottom: 22px;
}
.htitle .tri {
	margin-right: 11px;
	position: relative;
	top: -1px;
}

.skill {
	margin-bottom: 18px;
}
.skill:last-child {
	margin-bottom: 0;
}
.sname {
	font-size: 0.96875rem;
	font-weight: 600;
	color: var(--green);
}
.sproof {
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--muted-3);
	margin-top: 3px;
}
.badge {
	color: var(--sage);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	margin-left: 7px;
}

.list {
	font-size: 0.9375rem;
	line-height: 2.15;
	color: var(--ink-2);
	list-style: none;
}
.cols {
	display: grid;
	grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
	column-gap: 32px;
}
.lvl {
	color: var(--muted-4);
	font-size: 0.84375rem;
}

/* ---------- Education ---------- */
.education-list {
	display: flex;
	flex-direction: column;
	max-width: 900px;
}
.fill-w {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}
.edu-item {
	padding: 26px;
	display: flex;
	flex-direction: column;
	gap: 13px;
	align-items: baseline;
	flex-wrap: wrap;
}
.edu-item > * {
	width: 100%;
}
.edu-item > .ruler {
	margin: 2px 0;
}
.edu-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.1875rem;
}
.edu-org {
	color: var(--muted);
	font-size: 0.88rem;
}
.edu-dates {
	background: var(--rule-soft);
	border-radius: 999px;
	color: var(--muted-3);
	font-weight: 600;
	font-size: 0.8125rem;
	padding: 6px 14px;
	white-space: nowrap;
}
.edu-summary {
	color: var(--muted);
	font-size: 0.90625rem;
	line-height: 1.6;
}

/* ---------- Values ---------- */
.value-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.0625rem;
	color: var(--green);
}
.value-text {
	font-size: 0.90625rem;
	line-height: 1.6;
	color: var(--muted);
}

/* ---------- Interests ---------- */
.interest-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.0625rem;
	color: var(--green);
}
.interest-text {
	font-size: 0.90625rem;
	line-height: 1.6;
	color: var(--muted);
}
.interest-media {
	width: 100%;
	height: 190px;
	border-radius: var(--radius);
	object-fit: cover;
}

/* ---------- Video ---------- */
.video-frame {
	border-radius: 8px;
	overflow: hidden;
}
.video-frame iframe,
.video-frame video {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
	aspect-ratio: 16/9;
}
.video-placeholder {
	width: 100%;
	height: 440px;
	background: #e7eee9;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 22px;
	text-align: center;
	padding: 20px;
}
.video-play-btn {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: var(--green);
	color: var(--cream);
	display: flex;
	align-items: center;
	justify-content: center;
	padding-left: 3px;
}
.video-ph-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.1875rem;
	color: var(--green);
}
.video-ph-text {
	font-size: 0.90625rem;
	color: #7c8a7f;
}

/* ---------- Testimonials ---------- */
img.quote {
	width: 30px;
	height: 24px;
}
.quote {
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--muted-4);
	font-style: italic;
}
.attribution {
	font-size: 0.84375rem;
	color: var(--muted-4);
	margin-top: auto;
}

/* ---------- Contact ---------- */
.contact-card {
	background: var(--green);
	border-radius: 14px;
	padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 64px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(32px, 6vw, 64px);
}
.contact-card-text {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 560px;
}
.contact-heading {
	color: var(--cream);
}
.contact-text {
	color: rgba(250, 246, 241, 0.72);
	font-size: 1.03125rem;
	line-height: 1.65;
}
.contact-location {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 0.90625rem;
	color: rgba(250, 246, 241, 0.6);
}
.contact-actions {
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 0 0 260px;
}

.btn-contact {
	justify-content: center;
	width: 100%;
	padding: 16px 28px;
}
.btn-contact-primary {
	background: var(--cream);
	color: var(--green);
}
.btn-contact-primary:hover {
	background: #f0ece3;
}
.btn-contact-outline {
	background: transparent;
	color: var(--cream);
	border: 1.5px solid rgba(250, 246, 241, 0.35);
}
.btn-contact-outline:hover {
	background: rgba(255, 255, 255, 0.08);
}
.btn-contact-tertiary {
	background: transparent;
	color: rgba(250, 246, 241, 0.75);
	border: 1.5px solid rgba(250, 246, 241, 0.18);
}
.btn-contact-tertiary:hover {
	background: rgba(255, 255, 255, 0.05);
}

.contact-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 40px;
	margin-top: 40px;
	border-top: 1px solid var(--rule-soft);
}
.footer-name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1rem;
	color: var(--green);
}
.footer-copy {
	font-size: 0.84375rem;
	color: var(--muted-4);
}

/* ---------- Buttons (shared) ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 15px 30px;
	border-radius: var(--radius);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9375rem;
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease,
		background 0.15s ease;
}
.btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}
.btn[hidden] {
	display: none;
} /* higher specificity than .btn's display so [hidden] actually hides it */
.btn-primary {
	background: var(--green);
	color: #fff;
}
.btn-primary:hover {
	background: var(--green-dark);
}
.btn-secondary {
	background: transparent;
	color: var(--green);
	border: 1.5px solid #d8cfc1;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.site-nav {
		position: fixed;
		top: 73px;
		left: 0;
		right: 0;
		background: var(--cream);
		flex-direction: column;
		padding: 16px 24px 22px;
		gap: 4px;
		border-bottom: 1px solid var(--rule-soft);
		box-shadow: 0 10px 26px rgba(30, 61, 47, 0.1);
		transform: translateY(-130%);
		transition: transform 0.25s ease;
		z-index: 99;
	}
	.site-nav.open {
		transform: translateY(0);
	}
	.site-nav a {
		font-size: 1rem;
		padding: 10px 0;
		border-bottom: none;
	}
	.nav-burger {
		display: flex;
	}
}

@media (max-width: 768px) {
	.hero-inner {
		flex-direction: column;
		text-align: center;
		gap: 40px;
	}
	.hero-text {
		align-items: center;
	}
	.hero-actions {
		justify-content: center;
	}
	.numbers-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.number:nth-child(3) {
		border-left: none;
	}

	.ruler-grid,
	.pair,
	.cols {
		grid-template-columns: 1fr !important;
	}
	.ruler-grid > * {
		border-left: none !important;
		padding-left: 0 !important;
	}
	.ruler-grid > .ruler {
		display: none;
	}
	.htitle {
		justify-content: center;
	}

	.contact-card {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
	.contact-actions {
		flex: auto;
	}
	.contact-card-text {
		max-width: none;
	}
	.contact-location {
		justify-content: center;
	}
	.contact-footer {
		flex-direction: column;
		text-align: center;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	* {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
