Design language

This commit is contained in:
2026-05-13 00:34:34 +12:00
parent ac6179e776
commit 6c943b14bd
34 changed files with 1986 additions and 697 deletions
+283 -24
View File
@@ -19,44 +19,100 @@
#hero {
background: var(--gw-green);
color: #fff;
padding: 44px 50px 0;
padding: 0;
display: flex;
align-items: center;
min-height: 500px;
flex-direction: column;
justify-content: flex-end;
min-height: 65svh;
max-height: 680px;
overflow: hidden;
position: relative;
}
/* Gradient blends the hero image's bottom edge into the green background */
#hero::after {
content: '';
position: absolute;
inset: auto 0 0 42%;
height: 120px;
background: linear-gradient(to top, var(--gw-green) 0%, transparent 100%);
inset: 0;
height: auto;
background: linear-gradient(
to bottom,
transparent 25%,
rgba(33, 48, 33, 0.4) 52%,
rgba(33, 48, 33, 0.88) 70%,
#213021 82%
);
pointer-events: none;
z-index: 1;
}
.hero-inner {
align-items: flex-end;
position: relative;
z-index: 2;
flex: none;
display: block;
width: 100%;
max-width: 700px;
margin: 0 auto;
padding: 0 50px 32px;
gap: 0;
}
.hero-text,
.promise-text {
flex: 1;
}
.hero-text {
padding-bottom: 44px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding-bottom: 0;
}
.hero-kicker {
margin: 0 0 14px;
font-family: var(--font-head);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.5);
}
.hero-subtitle {
margin: -8px 0 26px;
max-width: 460px;
max-width: 480px;
color: rgba(255, 255, 255, 0.86);
font-size: 18px;
line-height: 1.55;
text-align: center;
}
.hero-floating-pill {
display: flex;
position: absolute;
top: 28px;
left: 50%;
transform: translateX(-50%);
z-index: 3;
white-space: nowrap;
padding: 10px 20px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.28);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
color: #fff;
font-family: var(--font-head);
font-size: 13px;
font-weight: 600;
letter-spacing: 0.01em;
line-height: 1;
}
.hero-chips {
display: none;
}
.hero-trust-chip {
@@ -109,25 +165,39 @@
display: flex;
gap: 16px;
flex-wrap: wrap;
justify-content: center;
}
:global(.hero-cta-arrow) {
font-size: 11px;
margin-left: 4px;
}
.hero-img {
flex: 0 0 46%;
display: flex;
justify-content: flex-end;
align-self: flex-end;
margin-top: 0;
position: absolute;
inset: 0;
z-index: 0;
width: 100%;
height: 100%;
flex: none;
display: block;
margin: 0;
}
.hero-img picture {
display: block;
width: 100%;
height: 100%;
}
.hero-img img {
width: min(100%, 530px);
margin: -12px -18px -72px 0;
}
@media (max-width: 1100px) {
.hero-img img {
margin-bottom: -32px;
}
width: 60%;
height: 100%;
max-width: none;
margin: 0;
object-fit: cover;
object-position: center -10%;
transform: none;
}
#intro {
@@ -897,3 +967,192 @@ footer {
.footer-legal a:hover {
opacity: 1;
}
.footer-back-top {
font-size: 12px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
opacity: 0.5;
flex: 0 0 auto;
transition: opacity 0.2s;
}
.footer-back-top:hover {
opacity: 1;
}
/* ── PageHeader shared component ──────────────────────────────────────── */
.page-header {
padding: 72px 0 80px;
}
.ph-inner {
max-width: var(--max-w);
margin: 0 auto;
padding: 0 50px;
text-align: center;
}
/* Green variant */
.page-header--green {
background: var(--gw-green);
color: #fff;
}
.page-header--green .eyebrow {
color: rgba(255, 255, 255, 0.55);
}
/* White variant */
.page-header--white {
background: var(--off-white);
color: var(--text);
}
/* 2-col layout when media slot is used (service pages) */
.ph-inner--grid {
display: grid;
grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
gap: 52px;
align-items: center;
text-align: left;
}
/* Title */
.ph-title {
margin: 0 0 16px;
font-family: var(--font-head);
font-size: clamp(34px, 4vw, 56px);
font-weight: 800;
line-height: 1.05;
letter-spacing: -0.04em;
}
.page-header--green .ph-title {
color: #fff;
}
.page-header--white .ph-title {
color: #000;
}
/* Subtitle */
.ph-subtitle {
font-size: 17px;
line-height: 1.6;
max-width: 520px;
margin: 0 auto;
}
.page-header--green .ph-subtitle {
color: rgba(255, 255, 255, 0.8);
}
.page-header--white .ph-subtitle {
color: var(--gray);
}
.ph-inner--grid .ph-subtitle {
margin: 0;
}
/* Media column */
.ph-media {
aspect-ratio: 4 / 3;
border-radius: 28px;
overflow: hidden;
background: #f4efe7;
box-shadow: 0 16px 40px rgba(17, 20, 24, 0.08);
}
.ph-media img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
/* Shared chip styles — used via default slot content */
.ph-chips {
display: flex;
justify-content: center;
gap: 10px;
flex-wrap: wrap;
margin-top: 28px;
}
.ph-chip {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 9px 18px;
border-radius: 999px;
font-family: var(--font-head);
font-size: 14px;
font-weight: 700;
line-height: 1.2;
letter-spacing: 0.01em;
}
.page-header--green .ph-chip {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.14);
color: #fff;
}
.page-header--white .ph-chip {
background: rgba(33, 48, 33, 0.07);
border: 1px solid rgba(33, 48, 33, 0.1);
color: var(--gw-green);
}
.ph-chip--link {
text-decoration: none;
transition: background 0.18s ease;
}
.page-header--green .ph-chip--link:hover {
background: rgba(255, 255, 255, 0.18);
}
.page-header--white .ph-chip--link:hover {
background: rgba(33, 48, 33, 0.12);
}
/* Responsive */
@media (max-width: 1024px) {
.ph-inner--grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
align-items: start;
}
}
@media (max-width: 768px) {
.page-header {
padding: 48px 0 56px;
}
.ph-inner {
padding: 0 24px;
}
.ph-inner--grid {
grid-template-columns: 1fr;
gap: 24px;
}
.ph-title {
font-size: clamp(28px, 7vw, 38px);
}
.ph-chips {
gap: 8px;
}
.ph-chip {
font-size: 13px;
padding: 8px 14px;
}
}