Files
gw-svelte/src/lib/styles/layout.css
T

369 lines
6.0 KiB
CSS
Raw Normal View History

2026-05-02 08:26:18 +12:00
header {
2026-05-02 19:44:45 +12:00
position: relative;
2026-05-02 08:26:18 +12:00
z-index: 100;
2026-05-02 19:44:45 +12:00
isolation: isolate;
overflow: visible;
2026-05-02 08:26:18 +12:00
background: var(--green);
}
nav,
.mobile-menu,
.hero-inner,
.intro-inner,
2026-05-02 08:26:18 +12:00
.promise-inner,
.services-inner,
.values-inner,
.testimonials-inner,
.info-inner,
.form-inner,
.footer-inner,
.footer-bottom {
max-width: var(--max-w);
margin: 0 auto;
}
nav {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
padding: 16px 50px;
}
.nav-links {
display: flex;
gap: 4px;
align-items: center;
list-style: none;
}
.nav-links li {
position: relative;
}
.nav-links > li > a {
color: #fff;
font-weight: 500;
display: flex;
align-items: center;
gap: 6px;
white-space: nowrap;
padding: 8px 16px;
border-radius: 40px;
transition: background 0.15s, color 0.15s;
}
.nav-links > li > a:hover {
background: #fff;
color: var(--green);
}
.nav-links > li > a.nav-link-active {
background: #eadbbf;
color: #000;
}
.mega-chevron {
font-size: 11px;
transition: transform 0.2s;
}
.has-mega:hover .mega-chevron {
transform: rotate(180deg);
}
.mega-menu {
position: absolute;
top: 100%;
left: 0;
padding-top: 12px;
z-index: 200;
opacity: 0;
visibility: hidden;
transform: translateY(-6px);
transition:
opacity 0.18s ease,
transform 0.18s ease,
visibility 0.18s;
}
.mega-menu-inner {
background: #fff;
border-radius: 20px;
padding: 16px;
display: flex;
flex-direction: row;
gap: 6px;
box-shadow:
0 4px 6px rgba(0, 0, 0, 0.04),
0 16px 40px rgba(0, 0, 0, 0.12);
min-width: 400px;
}
.has-mega:hover .mega-menu {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.mega-service {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
padding: 16px 14px 14px;
border-radius: 14px;
flex: 1;
text-decoration: none;
color: var(--text);
transform: translateY(0);
transition:
background 0.15s,
transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
box-shadow 0.18s ease;
2026-05-02 08:26:18 +12:00
}
.mega-service:hover {
background: rgba(33, 48, 33, 0.05);
}
.mega-icon {
width: 64px;
height: 64px;
background: var(--green);
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
color: #fff;
box-shadow: 0 10px 22px rgba(33, 48, 33, 0.12);
transform: translateY(0) rotate(0deg) scale(1);
transition:
background 0.15s,
transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
box-shadow 0.2s ease;
2026-05-02 08:26:18 +12:00
}
.mega-service:hover .mega-icon {
background: #2d4230;
}
@media (hover: hover) and (min-width: 769px) {
.has-mega:hover .mega-service {
animation: mega-service-settle 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.has-mega:hover .mega-service:nth-child(1) {
animation-delay: 0.02s;
}
.has-mega:hover .mega-service:nth-child(2) {
animation-delay: 0.06s;
}
.has-mega:hover .mega-service:nth-child(3) {
animation-delay: 0.1s;
}
.mega-service:hover {
transform: translateY(-3px);
box-shadow: 0 12px 26px rgba(17, 20, 24, 0.08);
}
.mega-service:hover .mega-icon {
transform: translateY(-3px) rotate(-5deg) scale(1.04);
box-shadow: 0 16px 28px rgba(33, 48, 33, 0.18);
}
.mega-service:nth-child(even):hover .mega-icon {
transform: translateY(-3px) rotate(5deg) scale(1.04);
}
}
@keyframes mega-service-settle {
from {
opacity: 0;
transform: translateY(6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
2026-05-02 08:26:18 +12:00
.mega-service-label {
font-weight: 700;
font-size: 14px;
color: #000;
white-space: nowrap;
}
.mega-service-desc {
font-size: 12px;
font-weight: 400;
color: var(--gray);
text-align: center;
line-height: 1.3;
margin-top: -4px;
}
.nav-right {
display: flex;
align-items: center;
gap: 20px;
justify-content: flex-end;
}
.mobile-phone {
display: none;
align-items: center;
gap: 8px;
padding: 8px 12px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
color: #fff;
font-size: 14px;
font-weight: 700;
line-height: 1;
text-decoration: none;
white-space: nowrap;
}
.mobile-phone .icon {
font-size: 14px;
}
.instagram-icon {
color: #fff;
font-size: 26px;
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
}
.instagram-icon:hover {
color: var(--yellow);
}
.mobile-menu {
display: none;
flex-direction: column;
gap: 0;
background: #fff;
padding: 0 0 18px;
}
.mobile-menu.open {
display: flex;
}
.mobile-menu a {
color: #0a304e;
font-weight: 700;
opacity: 0;
}
.mobile-menu a:hover {
color: #0a304e;
}
.mobile-menu a.mobile-link-active {
background: #eadbbf;
color: #0a304e;
}
.hamburger {
display: none;
align-items: center;
justify-content: center;
cursor: pointer;
background: none;
border: none;
padding: 4px;
color: #fff;
font-size: 26px;
transition:
transform 0.14s cubic-bezier(0.22, 1, 0.36, 1),
opacity 0.2s ease;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
}
.hamburger .icon {
display: block;
line-height: 1;
}
@media (hover: hover) {
.hamburger:hover {
transform: translateY(-1px) scale(1.06);
}
}
.hamburger:active {
transform: translateY(1px) scale(0.94);
}
.hero-inner,
.promise-inner {
display: flex;
align-items: center;
gap: 60px;
width: 100%;
}
.promise-inner,
.services-inner,
.values-inner,
.testimonials-inner,
.info-inner,
.form-inner {
padding: 0 50px;
}
.services-grid,
.values-grid,
.testimonials-grid {
margin-top: 48px;
}
.services-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 32px;
}
.values-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 28px;
}
.testimonials-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 28px;
}
.info-inner {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: start;
}
.footer-inner {
display: grid;
grid-template-columns: 2fr 1.4fr 2fr;
gap: 60px;
margin-bottom: 48px;
align-items: start;
}
.social-links {
display: flex;
gap: 14px;
}