Files
vitareba/components/sections/Hero.module.css
T
GandClaude 265d9a7013 feat(ux): mobile nav menu + above-the-fold hero CTA (#20)
On phones the marketing nav hid every action — no menu, no sign-in, no
CTA — and the hero filled the first screen with text alone. Now:

- Hamburger menu (<768px) with section links, the Inflection Edge CTA
  and Sign in / Dashboard; Escape closes it and body scroll locks while
  open.
- Hero dark panel gains mobile-only CTA pair (Take the Inflection Edge /
  Book Consultation) so the primary action sits in the first viewport.
- Hero subtitle tightened to one sentence in all four locales to cut
  reading load before the CTA.

Verified in-browser at 390x844: menu open/close, sign-in from menu,
login, forgot/reset password round-trip (old password rejected, new
accepted), and the guest assessment through to results + lead capture.


Claude-Session: https://claude.ai/code/session_01B2j2tdVLir2PaEEALjQXK3

Co-authored-by: Claude <noreply@anthropic.com>
2026-08-12 12:40:52 +02:00

260 lines
4.5 KiB
CSS

.hero {
display: grid;
grid-template-columns: 1fr;
min-height: 100vh;
}
.heroL {
background: var(--ink);
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 6rem 2rem 3rem;
position: relative;
overflow: hidden;
}
.heroL::before {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(
ellipse at 30% 60%,
var(--teal-20),
transparent 60%
);
}
.heroR {
background: var(--off);
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 3rem 2rem;
}
.eyebrow {
font-size: 0.72rem;
letter-spacing: 0.3em;
text-transform: uppercase;
color: var(--white-55);
margin-bottom: 1.8rem;
position: relative;
z-index: 1;
}
.title {
font-family: var(--font-cormorant), serif;
font-size: 2.4rem;
font-weight: 300;
line-height: 1.15;
color: var(--white);
position: relative;
z-index: 1;
}
.title em {
font-style: italic;
color: var(--teal);
}
.sub {
font-size: 0.88rem;
color: var(--white-62);
line-height: 1.9;
margin-top: 1.8rem;
max-width: 32rem;
position: relative;
z-index: 1;
}
.pills {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 1.5rem;
position: relative;
z-index: 1;
}
.pill {
font-size: 0.68rem;
letter-spacing: 0.15em;
text-transform: uppercase;
padding: 0.4rem 0.9rem;
border: 1px solid var(--white-18);
color: var(--white-50);
border-radius: var(--radius-2xl);
}
.rightEyebrow {
font-size: 0.72rem;
letter-spacing: 0.3em;
text-transform: uppercase;
color: var(--muted);
margin-bottom: 1.2rem;
}
.rightTitle {
font-family: var(--font-cormorant), serif;
font-size: 1.8rem;
font-weight: 300;
line-height: 1.2;
color: var(--ink);
}
.rightTitle em {
font-style: italic;
color: var(--teal);
}
.rightSub {
font-size: 0.85rem;
color: var(--muted);
line-height: 1.85;
margin-top: 1.2rem;
max-width: 28rem;
}
.quoteBar {
font-family: var(--font-cormorant), serif;
font-style: italic;
font-size: 1.05rem;
color: var(--ink2);
border-left: 2px solid var(--teal);
padding-left: 1.2rem;
margin: 2rem 0;
line-height: 1.6;
}
.btns {
display: flex;
gap: 0.8rem;
margin-top: 1.5rem;
flex-wrap: wrap;
}
.btnDark {
background: var(--ink);
color: var(--white);
border: none;
padding: 0.75rem 1.8rem;
font-size: 0.68rem;
letter-spacing: 0.14em;
text-transform: uppercase;
cursor: pointer;
font-family: var(--font-dm-sans), sans-serif;
border-radius: var(--radius-xs);
transition: background var(--transition-normal);
}
.btnDark:hover {
background: var(--teal);
}
.btnOutline {
background: none;
border: 1px solid var(--border);
color: var(--ink2);
padding: 0.75rem 1.8rem;
font-size: 0.68rem;
letter-spacing: 0.14em;
text-transform: uppercase;
cursor: pointer;
font-family: var(--font-dm-sans), sans-serif;
border-radius: var(--radius-xs);
transition: all var(--transition-normal);
text-decoration: none;
display: inline-block;
}
.btnOutline:hover {
border-color: var(--teal);
color: var(--teal);
}
/* Mobile-only CTA block inside the dark hero panel */
.mobileCtas {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-top: 2rem;
position: relative;
z-index: 1;
}
.btnLight {
background: var(--white);
color: var(--ink);
padding: 0.9rem 1.8rem;
min-height: 2.75rem;
font-size: 0.72rem;
letter-spacing: 0.14em;
text-transform: uppercase;
text-align: center;
text-decoration: none;
font-family: var(--font-dm-sans), sans-serif;
border-radius: var(--radius-xs);
transition: background var(--transition-normal);
}
.btnLight:hover {
background: var(--teal);
color: var(--white);
}
.btnGhostLight {
border: 1px solid var(--white-30);
color: var(--white-90);
padding: 0.9rem 1.8rem;
min-height: 2.75rem;
font-size: 0.72rem;
letter-spacing: 0.14em;
text-transform: uppercase;
text-align: center;
text-decoration: none;
font-family: var(--font-dm-sans), sans-serif;
border-radius: var(--radius-xs);
transition: border-color var(--transition-normal), color var(--transition-normal);
}
.btnGhostLight:hover {
border-color: var(--white-60);
color: var(--white);
}
@media (max-width: 767px) {
.btnDark,
.btnOutline {
min-height: 2.75rem;
}
}
@media (min-width: 768px) {
.mobileCtas {
display: none;
}
}
@media (min-width: 768px) {
.hero {
grid-template-columns: 1fr 1fr;
}
.heroL {
padding: 8rem 4rem 5rem;
}
.heroR {
padding: 8rem 4rem 5rem;
}
.title {
font-size: 3.6rem;
}
.rightTitle {
font-size: 2.6rem;
}
}