Design language
This commit is contained in:
+239
-111
@@ -5,11 +5,6 @@
|
||||
padding-right: 30px;
|
||||
}
|
||||
|
||||
#hero {
|
||||
padding-left: 30px;
|
||||
padding-right: 30px;
|
||||
}
|
||||
|
||||
.promise-inner,
|
||||
.services-inner,
|
||||
.values-inner,
|
||||
@@ -47,15 +42,10 @@
|
||||
padding-bottom: 64px;
|
||||
}
|
||||
|
||||
@keyframes mobileMenuBounceIn {
|
||||
@keyframes mobileMenuSheetIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(-10px) scaleY(0.98);
|
||||
}
|
||||
|
||||
70% {
|
||||
opacity: 1;
|
||||
transform: translateY(2px) scaleY(1.01);
|
||||
transform: translateY(-16px) scale(0.985);
|
||||
}
|
||||
|
||||
100% {
|
||||
@@ -67,7 +57,7 @@
|
||||
@keyframes mobileMenuItemIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(-6px);
|
||||
transform: translateY(8px);
|
||||
}
|
||||
|
||||
100% {
|
||||
@@ -106,14 +96,14 @@
|
||||
background: rgba(33, 48, 33, 0.1);
|
||||
color: var(--gw-green);
|
||||
font-family: var(--font-head);
|
||||
font-size: 13px;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.mobile-phone .icon {
|
||||
font-size: 14px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
@@ -144,103 +134,219 @@
|
||||
}
|
||||
|
||||
.mobile-menu {
|
||||
display: flex;
|
||||
max-width: none;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
transform-origin: top center;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
padding: 10px;
|
||||
background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(248, 248, 245, 0.98));
|
||||
border: 1px solid rgba(33, 48, 33, 0.08);
|
||||
border-radius: 22px;
|
||||
box-shadow:
|
||||
0 16px 32px rgba(17, 20, 24, 0.12),
|
||||
0 2px 10px rgba(17, 20, 24, 0.05);
|
||||
opacity: 0;
|
||||
transform: translateY(-10px) scale(0.992);
|
||||
transition:
|
||||
opacity 180ms ease,
|
||||
transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
.mobile-menu.open {
|
||||
animation: mobileMenuBounceIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
.mobile-menu a {
|
||||
.mobile-menu-shell {
|
||||
display: block;
|
||||
padding: 14px 24px;
|
||||
border-bottom: none;
|
||||
font-size: 16px;
|
||||
line-height: 1.35;
|
||||
position: absolute;
|
||||
top: calc(100% + 8px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 120;
|
||||
padding: 0 16px;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition:
|
||||
opacity 160ms ease,
|
||||
visibility 160ms ease;
|
||||
}
|
||||
|
||||
.mobile-menu-shell.open {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.mobile-menu-shell.open .mobile-menu {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
animation: mobileMenuSheetIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
.mobile-menu-links {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.mobile-menu-links a {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-height: 48px;
|
||||
padding: 9px 12px;
|
||||
border-radius: 16px;
|
||||
border: 1px solid rgba(33, 48, 33, 0.06);
|
||||
background: rgba(255, 255, 255, 0.78);
|
||||
color: var(--gw-green);
|
||||
text-decoration: none;
|
||||
opacity: 0;
|
||||
animation: mobileMenuItemIn 220ms ease-out forwards;
|
||||
box-shadow: 0 2px 10px rgba(17, 20, 24, 0.03);
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
.mobile-menu.open a:nth-child(1) {
|
||||
animation-delay: 30ms;
|
||||
.mobile-menu-shell.open .mobile-menu-links a:nth-child(1) { animation-delay: 30ms; }
|
||||
.mobile-menu-shell.open .mobile-menu-links a:nth-child(2) { animation-delay: 55ms; }
|
||||
.mobile-menu-shell.open .mobile-menu-links a:nth-child(3) { animation-delay: 80ms; }
|
||||
.mobile-menu-shell.open .mobile-menu-links a:nth-child(4) { animation-delay: 105ms; }
|
||||
.mobile-menu-shell.open .mobile-menu-links a:nth-child(5) { animation-delay: 130ms; }
|
||||
.mobile-menu-shell.open .mobile-menu-links a:nth-child(6) { animation-delay: 155ms; }
|
||||
.mobile-menu-shell.open .mobile-menu-links a:nth-child(7) { animation-delay: 180ms; }
|
||||
|
||||
.mobile-menu-link-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 11px;
|
||||
background: var(--gw-green);
|
||||
color: var(--yellow);
|
||||
font-size: 13px;
|
||||
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
.mobile-menu.open a:nth-child(2) {
|
||||
animation-delay: 60ms;
|
||||
.mobile-menu-link-label {
|
||||
font-family: var(--font-head);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
color: var(--gw-green);
|
||||
min-width: 0;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.mobile-menu.open a:nth-child(3) {
|
||||
animation-delay: 90ms;
|
||||
:global(.mobile-menu-link-arrow) {
|
||||
font-size: 12px;
|
||||
color: rgba(33, 48, 33, 0.42);
|
||||
}
|
||||
|
||||
.mobile-menu.open a:nth-child(4) {
|
||||
animation-delay: 120ms;
|
||||
.mobile-menu-links a.mobile-link-active {
|
||||
background: linear-gradient(180deg, rgba(255, 209, 0, 0.2), rgba(255, 209, 0, 0.1));
|
||||
border-color: rgba(255, 209, 0, 0.28);
|
||||
box-shadow: 0 6px 16px rgba(255, 209, 0, 0.08);
|
||||
}
|
||||
|
||||
.mobile-menu.open a:nth-child(5) {
|
||||
animation-delay: 150ms;
|
||||
body.mobile-menu-open {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.mobile-menu.open a:nth-child(6) {
|
||||
animation-delay: 180ms;
|
||||
.mobile-menu-shell:not(.open) .mobile-menu-links a {
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.mobile-menu.open a:nth-child(7) {
|
||||
animation-delay: 210ms;
|
||||
.mobile-menu-shell.open .mobile-menu-links a {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.mobile-menu.open a:nth-child(8) {
|
||||
animation-delay: 240ms;
|
||||
}
|
||||
|
||||
.mobile-menu.open a:nth-child(9) {
|
||||
animation-delay: 270ms;
|
||||
}
|
||||
/* ── Full-bleed mobile hero ── */
|
||||
|
||||
#hero {
|
||||
min-height: auto;
|
||||
padding: 50px 20px 0;
|
||||
min-height: 90svh;
|
||||
padding: 0;
|
||||
gap: 0;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
/* Full-section gradient: transparent top → Goodwalk green bottom.
|
||||
hero-img is now a sibling of hero-inner (direct child of #hero),
|
||||
so this ::after correctly overlays the full section. */
|
||||
#hero::after {
|
||||
inset: 0;
|
||||
height: auto;
|
||||
background: linear-gradient(
|
||||
to bottom,
|
||||
transparent 22%,
|
||||
rgba(33, 48, 33, 0.45) 48%,
|
||||
rgba(33, 48, 33, 0.88) 65%,
|
||||
#213021 78%
|
||||
);
|
||||
}
|
||||
|
||||
/* Dog photo fills the entire section as a background layer */
|
||||
.hero-img {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
flex: none;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.hero-img picture {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.hero-img img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
object-fit: cover;
|
||||
object-position: center 48%;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.hero-floating-pill {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Text content sits above the gradient (z-index: 2) */
|
||||
.hero-inner {
|
||||
flex-direction: column;
|
||||
gap: 18px;
|
||||
align-items: stretch;
|
||||
text-align: left;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
flex: none;
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
padding: 0 26px 36px;
|
||||
}
|
||||
|
||||
.hero-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.hero-kicker {
|
||||
margin: 0 0 8px;
|
||||
font-size: 10px;
|
||||
letter-spacing: 0.13em;
|
||||
color: rgba(255, 255, 255, 0.48);
|
||||
}
|
||||
|
||||
.hero-text h1,
|
||||
.hero-heading {
|
||||
margin-bottom: 22px;
|
||||
margin-bottom: 14px;
|
||||
font-size: 38px;
|
||||
line-height: 1.08;
|
||||
}
|
||||
|
||||
.hero-subtitle {
|
||||
margin: -10px 0 22px;
|
||||
max-width: none;
|
||||
font-size: 16px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.hero-trust-chip {
|
||||
margin-bottom: 18px;
|
||||
padding: 10px 14px;
|
||||
font-size: 14px;
|
||||
line-height: 1.06;
|
||||
}
|
||||
|
||||
.hero-heading-desktop {
|
||||
@@ -251,48 +357,70 @@
|
||||
display: block;
|
||||
color: #fff;
|
||||
font-family: var(--font-head);
|
||||
font-size: 36px;
|
||||
font-size: 40px;
|
||||
font-weight: 800;
|
||||
line-height: 1.08;
|
||||
line-height: 1.06;
|
||||
letter-spacing: -0.04em;
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
/* Subtitle and chips not needed — photo + kicker carry the context */
|
||||
.hero-subtitle,
|
||||
.hero-subtitle-desktop,
|
||||
.hero-chips {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hero-trust-chip {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
margin-bottom: 14px;
|
||||
padding: 9px 12px;
|
||||
gap: 8px;
|
||||
font-size: 11px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-color: rgba(255, 255, 255, 0.18);
|
||||
}
|
||||
|
||||
.hero-trust-stars {
|
||||
font-size: 9px;
|
||||
gap: 1px;
|
||||
}
|
||||
|
||||
.hero-trust-logo {
|
||||
width: 12px;
|
||||
height: 13px;
|
||||
}
|
||||
|
||||
.hero-buttons {
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.hero-buttons .btn {
|
||||
flex: 1 1 0;
|
||||
width: 0;
|
||||
min-width: 0;
|
||||
padding: 14px 10px;
|
||||
font-size: 13px;
|
||||
width: 100%;
|
||||
padding: 13px 20px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
border-radius: 999px;
|
||||
line-height: 1.15;
|
||||
line-height: 1.2;
|
||||
letter-spacing: -0.01em;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
.hero-buttons .btn:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.hero-buttons .btn-yellow {
|
||||
background: var(--yellow);
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.hero-buttons .btn-outline {
|
||||
background: transparent;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: #fff;
|
||||
border: 2px solid rgba(255, 255, 255, 0.84);
|
||||
border: 1.5px solid rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
.hero-buttons .btn:active {
|
||||
@@ -304,26 +432,7 @@
|
||||
}
|
||||
|
||||
.hero-buttons .btn-outline:active {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.hero-img {
|
||||
flex: none;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.hero-img img {
|
||||
width: min(100%, 460px);
|
||||
max-width: 100%;
|
||||
margin: 0 auto -7px;
|
||||
object-fit: contain;
|
||||
object-position: center top;
|
||||
transform: none;
|
||||
background: rgba(255, 255, 255, 0.14);
|
||||
}
|
||||
|
||||
#intro {
|
||||
@@ -417,11 +526,6 @@
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
.mobile-menu a.mobile-link-active {
|
||||
background: var(--yellow);
|
||||
color: #0a304e;
|
||||
}
|
||||
|
||||
.booking-header {
|
||||
margin-bottom: 34px;
|
||||
}
|
||||
@@ -691,3 +795,27 @@
|
||||
line-height: 1.1;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 769px) {
|
||||
.hero-img img {
|
||||
transform: translateX(-120px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
body:has(#hero) .hero-inner {
|
||||
padding-bottom: 120px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Ultrawide (≥1800px) ────────────────────────────────────────────────────
|
||||
Only add rules here that are genuinely ultrawide-specific.
|
||||
Normal desktop, tablet, and mobile breakpoints are handled above. ── */
|
||||
@media (min-width: 1800px) {
|
||||
/* ServiceHero: stop content drifting far right on wide screens.
|
||||
The component reads this custom property with the normal formula as its
|
||||
fallback — so nothing below 1800px is affected. */
|
||||
:root {
|
||||
--sh-copy-left-pad: clamp(420px, 22vw, 550px);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user