Files
gw-svelte/src/lib/styles/layout.css
T
2026-05-15 01:28:10 +12:00

434 lines
7.5 KiB
CSS

header {
position: relative;
z-index: 100;
isolation: isolate;
overflow: visible;
background: linear-gradient(to bottom, #f7f7f5 0%, #ffffff 100%);
box-shadow: 0 2px 16px rgba(17, 20, 24, 0.08);
}
.nav-ribbon {
width: 100%;
background: var(--yellow);
display: flex;
align-items: center;
justify-content: center;
padding: 10px 18px;
}
.nav-ribbon-item {
display: inline-flex;
align-items: center;
gap: 8px;
font-family: var(--font-head);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--gw-green);
white-space: nowrap;
text-align: center;
}
.nav-ribbon-item .icon {
font-size: 13px;
}
@media (max-width: 768px) {
.nav-ribbon {
padding: 11px 14px;
}
.nav-ribbon-item {
justify-content: center;
gap: 7px;
font-size: 9px;
line-height: 1.25;
letter-spacing: 0.045em;
white-space: normal;
}
.nav-ribbon-item .icon {
font-size: 12px;
}
}
nav,
.mobile-menu,
.hero-inner,
.intro-inner,
.services-inner,
.values-inner,
.testimonials-inner,
.info-inner,
.form-inner,
.footer-inner,
.footer-bottom {
max-width: var(--max-w);
margin: 0 auto;
}
/* Shared inner wrapper for page-level sections */
.page-inner {
max-width: var(--max-w);
margin: 0 auto;
padding: 0 var(--space-container-x);
}
nav {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
padding: 16px var(--space-container-x);
}
.nav-links {
display: flex;
gap: 4px;
align-items: center;
list-style: none;
}
/* Left group hugs the centre logo; right group + actions sit in column 3 */
.nav-links-left {
justify-content: flex-end;
padding-right: 34px;
}
.nav-end {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding-left: 34px;
}
/* Breathing room so the nav groups don't crowd the centre logo */
.logo {
margin: 0 44px;
}
.nav-links li {
position: relative;
}
.nav-links > li > a {
color: var(--gw-green);
font-family: var(--font-head);
font-size: 13px;
font-weight: 600;
letter-spacing: -0.01em;
line-height: 1.2;
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: rgba(33, 48, 33, 0.09);
color: var(--gw-green);
}
.nav-links > li > a.nav-link-active {
background: rgba(33, 48, 33, 0.11);
color: var(--gw-green);
}
.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: column;
gap: 0;
box-shadow:
0 4px 6px rgba(0, 0, 0, 0.04),
0 16px 40px rgba(0, 0, 0, 0.12);
min-width: 400px;
}
.mega-menu-services {
display: flex;
flex-direction: row;
gap: 6px;
}
.mega-menu-footer {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 12px;
padding: 12px 14px;
border-radius: 12px;
background: rgba(33, 48, 33, 0.04);
color: var(--gw-green);
font-size: 13px;
font-weight: 700;
text-decoration: none;
transition: background 0.16s ease;
}
.mega-menu-footer:hover {
background: rgba(33, 48, 33, 0.09);
}
:global(.mega-menu-footer-arrow) {
font-size: 12px;
}
.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;
}
.mega-service:hover {
background: rgba(33, 48, 33, 0.05);
}
.mega-icon {
width: 64px;
height: 64px;
background: var(--gw-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;
}
.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);
}
}
.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;
justify-content: center;
width: 42px;
height: 42px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
color: #fff;
text-decoration: none;
}
.mobile-phone .icon {
font-size: 16px;
}
.instagram-icon {
color: var(--gw-green);
font-size: 26px;
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
}
.instagram-icon:hover {
color: var(--gw-green);
opacity: 0.7;
}
.mobile-menu-shell,
.mobile-menu {
display: none;
}
.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 {
display: flex;
align-items: center;
gap: 60px;
width: 100%;
}
.services-inner,
.values-inner,
.testimonials-inner,
.info-inner,
.form-inner {
padding: 0 50px;
}
.testimonials-grid {
margin-top: 48px;
}
.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: 1.1fr 0.8fr 1fr;
gap: 32px;
margin-bottom: 48px;
align-items: start;
}
.social-links {
display: flex;
gap: 14px;
}