/* Part of the component CSS split: one file per component.
   Loaded by views/layout.templ in cascade order after tokens.css.
   Component: see views/components/ (same base name). */

/* The hero shares the site content column (48rem): headline and subtitle
   start on the same left edge and the block sits centered on the page,
   while the text inside stays left-aligned. */
.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1.25rem, 2vw, 2rem);
	width: 100%;
	max-width: 48rem;
	margin: 0 auto clamp(3.5rem, 8vw, 8rem);
	padding: 0 0 clamp(2rem, 5vw, 4rem);
	border-bottom: 2px solid var(--border);
	text-align: left;
}

.hero::before {
	content: "SRARS / ENGINEERING SYSTEMS";
	position: absolute;
	top: -1.8rem;
	left: 0;
	right: 0;
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: .64rem;
	font-weight: 700;
	letter-spacing: .14em;
}

.hero h1 {
	width: 100%;
	margin: 0;
	/* Cap sized so the longest localized line (pt-BR "Software melhor.")
	   fits the 48rem column: two balanced lines, never a mid-word cut. */
	font-size: clamp(2.25rem, 7vw, 6rem);
	font-weight: 600;
	letter-spacing: -.055em;
	line-height: 1.08;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
	text-wrap: balance;
	text-align: left;
}

/* Hidden characters still occupy their final positions: balancing and
   responsive line breaks remain stable throughout the reveal. */
.typewriter-char { visibility: hidden; }
.typewriter-char[data-visible] { visibility: visible; }
.typewriter-char[data-caret] { position: relative; }
.typewriter-char[data-caret]::after {
	content: "";
	position: absolute;
	left: 100%;
	top: .1em;
	width: .06em;
	height: .85em;
	background: currentColor;
	pointer-events: none;
}

/* PageTitle: the canonical page-opening block, same axis as the hero. */
.page-title {
	max-width: 48rem;
	margin: 0 auto clamp(4rem, 9vw, 9rem);
	text-align: center;
}

.page-title h1 {
	margin: 0 0 clamp(1.5rem, 3vw, 3rem);
	font-size: clamp(3.4rem, 8.7vw, 8.6rem);
	font-weight: 500;
	letter-spacing: -.065em;
	line-height: .86;
	text-wrap: balance;
	text-align: left;
}

.page-title p {
	max-width: 34rem;
	margin: 0;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
	color: var(--fg-muted);
	font-size: clamp(1rem, 1.5vw, 1.3rem);
	line-height: 1.45;
	text-align: left;
}

.hero p {
	width: 100%;
	max-width: 48rem;
	/* Left edge flush with the h1: the hero centers narrower children
	   (align-items: center), which indented the paragraph relative to the
	   full-width heading. */
	align-self: flex-start;
	margin: 0;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
	color: var(--fg-muted);
	font-size: clamp(1rem, 1.5vw, 1.3rem);
	line-height: 1.6;
	text-align: left;
}

/* Centered actions wrap as a group and stack on small screens. */
.cta-group {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	max-width: 100%;
	gap: .75rem;
}
