Files
gw-svelte/src/lib/styles/responsive.css
T
2026-05-13 00:34:34 +12:00

822 lines
15 KiB
CSS

@media (max-width: 1024px) {
nav,
.mobile-menu {
padding-left: 30px;
padding-right: 30px;
}
.promise-inner,
.services-inner,
.values-inner,
.testimonials-inner,
.info-inner,
.form-inner {
padding-left: 30px;
padding-right: 30px;
}
footer {
padding-left: 30px;
padding-right: 30px;
}
.hero-text h1 {
font-size: 40px;
}
}
@media (max-width: 768px) {
/*
* Mobile body type bumps to 16px — modern legibility standard, and
* matches the iOS-Safari zoom-on-focus threshold. Reserve room at
* the bottom of the page for the sticky MobileBookBar so the footer
* never sits behind it; the bar adds its own safe-area-inset
* padding on top of this.
*/
body {
font-size: 16px;
line-height: 1.7;
}
body.mobile-cta-enabled {
padding-bottom: 64px;
}
@keyframes mobileMenuSheetIn {
0% {
opacity: 0;
transform: translateY(-16px) scale(0.985);
}
100% {
opacity: 1;
transform: translateY(0) scaleY(1);
}
}
@keyframes mobileMenuItemIn {
0% {
opacity: 0;
transform: translateY(8px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
header {
background: #fff;
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
nav {
grid-template-columns: auto minmax(0, 1fr) auto auto;
padding: 20px 24px;
column-gap: 12px;
}
.logo {
justify-content: flex-start;
justify-self: start;
}
.logo img {
height: 25px;
width: auto;
}
.mobile-phone {
display: inline-flex;
justify-self: center;
align-self: center;
min-height: 44px;
padding: 11px 14px;
background: rgba(33, 48, 33, 0.1);
color: var(--gw-green);
font-family: var(--font-head);
font-size: 11px;
font-weight: 700;
line-height: 1.2;
letter-spacing: 0.01em;
}
.mobile-phone .icon {
font-size: 12px;
}
.nav-links {
display: none;
}
.nav-right {
display: flex;
gap: 18px;
justify-content: flex-end;
grid-column: 3;
}
.nav-right .btn {
display: none;
}
.instagram-icon {
color: #0a304e;
font-size: 24px;
}
.hamburger {
display: flex;
color: #2e3031;
grid-column: 4;
justify-self: end;
}
.mobile-menu {
display: flex;
max-width: none;
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-shell {
display: block;
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-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-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;
}
:global(.mobile-menu-link-arrow) {
font-size: 12px;
color: rgba(33, 48, 33, 0.42);
}
.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);
}
body.mobile-menu-open {
overflow: visible;
}
.mobile-menu-shell:not(.open) .mobile-menu-links a {
animation: none;
}
.mobile-menu-shell.open .mobile-menu-links a {
opacity: 1;
}
/* ── Full-bleed mobile hero ── */
#hero {
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 {
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: 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: 14px;
font-size: 38px;
line-height: 1.06;
}
.hero-heading-desktop {
display: none;
}
.hero-text h1 .hero-heading-mobile {
display: block;
color: #fff;
font-family: var(--font-head);
font-size: 40px;
font-weight: 800;
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%;
flex-direction: column;
gap: 8px;
padding-right: 0;
}
.hero-buttons .btn {
width: 100%;
padding: 13px 20px;
font-size: 14px;
font-weight: 700;
text-align: center;
border-radius: 999px;
line-height: 1.2;
letter-spacing: -0.01em;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
}
.hero-buttons .btn-yellow {
background: var(--yellow);
color: #000;
}
.hero-buttons .btn-outline {
background: rgba(255, 255, 255, 0.08);
color: #fff;
border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.hero-buttons .btn:active {
transform: translateY(1px) scale(0.985);
}
.hero-buttons .btn-yellow:active {
background: #e6bb00;
}
.hero-buttons .btn-outline:active {
background: rgba(255, 255, 255, 0.14);
}
#intro {
padding: 30px 24px 24px;
}
.intro-trust-badge {
grid-template-columns: 1fr;
gap: 14px;
padding: 18px 18px 16px;
border-radius: 22px;
}
.intro-trust-mark {
width: 48px;
height: 48px;
font-size: 21px;
}
.intro-google-logo {
width: 24px;
}
#intro p {
font-size: 17px;
line-height: 1.45;
font-weight: 600;
margin-bottom: 0;
}
.intro-trust-meta {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.intro-trust-cta {
gap: 8px;
padding: 8px 14px;
font-size: 15px;
}
.intro-trust-stars {
font-size: 13px;
}
.promise-inner {
flex-direction: column;
padding: 0 24px;
}
.promise-text {
order: 1;
}
.promise-img {
order: 2;
flex: none;
width: 100%;
max-width: 320px;
margin: 0 auto;
}
.services-grid,
.testimonials-grid,
.info-inner,
.field-group,
.footer-inner {
grid-template-columns: 1fr;
}
.values-grid {
grid-template-columns: 1fr;
}
.value-card:nth-child(odd) {
border-right: none;
}
.value-card {
padding: 24px 0;
}
.service-icon-bubble {
width: 78px;
height: 78px;
margin-bottom: 20px;
}
.service-card .service-card-icon {
font-size: 30px;
}
.booking-header {
margin-bottom: 34px;
}
.booking-eyebrow {
margin-bottom: 12px;
padding: 6px 10px;
font-size: 11px;
}
.booking-title {
font-size: 34px;
line-height: 1.02;
margin-bottom: 24px;
}
.booking-intro {
margin-top: -4px;
font-size: 15px;
line-height: 1.55;
}
.booking-trust-row {
gap: 10px;
margin-top: 16px;
}
.booking-trust-chip {
padding: 8px 12px;
font-size: 13px;
}
.booking-title-highlight::after {
left: 12px;
right: 12px;
bottom: -14px;
height: 20px;
}
.booking-stepper {
gap: 12px;
align-items: flex-start;
}
.booking-step {
flex-direction: column;
gap: 8px;
flex: 1;
}
.booking-step-number {
width: 46px;
height: 46px;
font-size: 20px;
}
.booking-step-label {
font-size: 15px;
text-align: center;
}
.booking-step-divider {
margin-top: 22px;
height: 1px;
width: 36px;
}
.booking-panel-banner {
padding: 22px 18px 34px;
border-radius: 24px 24px 0 0;
font-size: 15px;
line-height: 1.45;
}
.booking-card-grid-owner,
.booking-card-grid-dog {
grid-template-columns: 1fr;
}
.booking-field-group-owner,
.booking-field-group-dog {
grid-template-columns: 1fr;
gap: 18px;
}
.booking-field-card {
padding: 24px 22px;
border-radius: 24px;
}
.booking-card-grid-with-banner .booking-field-card {
border-radius: 0 0 24px 24px;
}
.booking-field-card-group {
padding: 24px 22px;
}
.booking-field-card label,
.booking-service-label {
font-size: 16px;
}
.booking-field-card input,
.booking-field-card textarea {
padding: 14px 18px;
/*
* 16px is the iOS-Safari threshold for triggering auto-zoom on
* focus. Anything smaller and the page jolts every time a field
* is tapped — kills the form's perceived quality at the most
* critical conversion step.
*/
font-size: 16px;
border-width: 2px;
border-radius: 18px;
}
.booking-service-row {
grid-template-columns: 1fr;
gap: 16px;
padding: 22px;
border-radius: 24px;
}
.booking-service-options {
gap: 12px 18px;
}
.booking-toggle-group {
flex-direction: column;
}
.booking-toggle-option {
width: 100%;
border-width: 2px;
border-radius: 16px;
padding: 14px 16px;
}
.booking-toggle-indicator {
width: 22px;
height: 22px;
border-width: 2px;
}
.booking-check-option {
font-size: 15px;
}
.booking-check-box {
width: 24px;
height: 24px;
border-width: 2px;
border-radius: 6px;
}
.booking-actions-final {
gap: 14px;
flex-direction: column-reverse;
align-items: stretch;
}
.booking-actions-final .btn,
.booking-actions-next .btn {
justify-content: center;
}
.services-inner,
.values-inner,
.testimonials-inner,
.info-inner,
.form-inner {
padding: 0 24px;
}
.section-heading {
font-size: 30px;
}
footer {
padding: 48px 24px 28px;
}
.footer-inner {
grid-template-columns: 1fr;
gap: 16px;
}
.footer-action {
order: -1;
}
.footer-panel {
padding: 22px 18px;
border-radius: 24px;
}
.footer-action-title {
font-size: 22px;
}
.footer-action-copy {
font-size: 14px;
}
.footer-book-note {
text-align: left;
}
.footer-nav a {
padding: 11px 0;
}
.footer-contact {
gap: 6px;
}
.footer-bottom {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
#instagram {
padding: 48px 24px;
}
}
@media (max-width: 480px) {
.footer-nav {
gap: 2px 16px;
}
.mobile-phone {
gap: 6px;
padding: 10px 12px;
font-size: 12px;
}
.mobile-phone span {
letter-spacing: -0.01em;
}
.hero-text h1,
.hero-heading {
font-size: 32px;
line-height: 1.12;
}
.hero-text h1 .hero-heading-mobile {
font-size: 31px;
line-height: 1.12;
}
.hero-buttons {
flex-direction: row;
gap: 8px;
padding-right: 0;
}
.hero-buttons .btn {
flex: 1 1 0;
width: 0;
margin-right: 0 !important;
padding: 13px 9px;
font-size: 12px;
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);
}
}