Files
trades-starter/css/components.css
T
pauljd f2cc99dd94
pauljd/davidson-ci: Davidson CI / quality (push) Successful in 1m35s
pauljd/davidson-ci: Davidson CI / ai-review (push) Successful in 29s
Initial trades demo starter
2026-09-30 17:41:50 +01:00

692 lines
10 KiB
CSS

.site-header {
position: absolute;
z-index: 5;
inset: 0 0 auto;
color: #fff;
}
.header-inner {
display: flex;
min-height: 92px;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid rgb(255 255 255 / 24%);
}
.brand,
.footer-brand {
display: inline-flex;
align-items: center;
gap: 12px;
font-family: var(--font-display);
font-size: 17px;
font-weight: 800;
letter-spacing: 0;
}
.brand-logo {
width: 42px;
height: 42px;
object-fit: contain;
}
.main-nav {
display: flex;
align-items: center;
gap: 36px;
margin-left: auto;
margin-right: 48px;
color: rgb(255 255 255 / 82%);
font-size: 13px;
font-weight: 500;
}
.main-nav a,
.header-call,
.contact-email {
transition: color 160ms ease;
}
.main-nav a:hover,
.contact-email:hover {
color: var(--brand-accent);
}
.header-call {
display: grid;
gap: 3px;
text-align: right;
}
.header-call-label {
color: rgb(255 255 255 / 65%);
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.header-phone {
font-size: 14px;
font-weight: 700;
}
.menu-toggle {
display: none;
width: 42px;
height: 42px;
padding: 12px 9px;
border: 1px solid rgb(255 255 255 / 45%);
background: transparent;
color: #fff;
cursor: pointer;
}
.menu-toggle span {
display: block;
height: 1px;
margin: 5px 0;
background: currentColor;
}
.hero {
position: relative;
display: flex;
min-height: min(760px, 100svh);
align-items: center;
overflow: hidden;
background: #292e2b;
color: #fff;
}
.hero-image,
.hero-shade {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.hero-image {
object-fit: cover;
object-position: center 48%;
animation: hero-arrive 900ms ease-out both;
}
.hero-shade {
background: rgb(13 20 20 / 62%);
}
.hero-content {
position: relative;
z-index: 1;
padding-top: 108px;
padding-bottom: 92px;
animation: content-arrive 650ms 100ms ease-out both;
}
.hero-eyebrow {
color: #ffb17c;
}
.hero-title {
max-width: 790px;
margin-bottom: 22px;
font-size: clamp(48px, 7vw, 88px);
font-weight: 600;
letter-spacing: 0;
line-height: 0.99;
}
.hero-description {
max-width: 500px;
margin-bottom: 32px;
color: rgb(255 255 255 / 78%);
font-size: 17px;
line-height: 1.7;
}
.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.button {
display: inline-flex;
min-height: 52px;
align-items: center;
justify-content: center;
padding: 0 23px;
font-size: 13px;
font-weight: 700;
transition:
background 160ms ease,
color 160ms ease,
border-color 160ms ease;
}
.button-accent {
background: var(--brand-accent);
color: #171b1b;
}
.button-accent:hover {
background: #ff9850;
}
.button-outline {
border: 1px solid rgb(255 255 255 / 50%);
color: #fff;
}
.button-outline:hover {
border-color: #fff;
background: rgb(255 255 255 / 10%);
}
.hero-proof {
display: flex;
flex-wrap: wrap;
gap: 0;
margin-top: 64px;
color: rgb(255 255 255 / 85%);
font-size: 12px;
}
.hero-proof span {
padding-inline: 18px;
border-left: 1px solid rgb(255 255 255 / 35%);
}
.hero-proof span:first-child {
padding-left: 0;
border-left: 0;
}
.hero-scroll {
position: absolute;
z-index: 1;
right: max(24px, calc((100vw - 1200px) / 2));
bottom: 39px;
width: 22px;
height: 36px;
border: 1px solid rgb(255 255 255 / 65%);
border-radius: 12px;
}
.hero-scroll span {
position: absolute;
top: 7px;
left: 9px;
width: 2px;
height: 7px;
background: var(--brand-accent);
animation: scroll-hint 1.6s infinite;
}
.section-heading {
display: flex;
align-items: end;
justify-content: space-between;
gap: 40px;
margin-bottom: 48px;
}
.section-heading h2,
.about-title,
.contact-title {
margin-bottom: 0;
font-size: clamp(34px, 4vw, 52px);
font-weight: 600;
letter-spacing: 0;
line-height: 1.08;
}
.section-heading .eyebrow,
.about-copy .eyebrow,
.contact-copy .eyebrow {
margin-bottom: 15px;
}
.section-intro {
max-width: 360px;
margin: 0 0 3px;
color: var(--brand-muted);
font-size: 14px;
line-height: 1.75;
}
.service-list {
display: grid;
grid-template-columns: repeat(3, 1fr);
border-top: 1px solid #d9d9d6;
}
.service-item {
min-height: 210px;
padding: 25px 28px 26px 0;
border-bottom: 1px solid #d9d9d6;
}
.service-item:not(:nth-child(3n + 1)) {
padding-left: 28px;
border-left: 1px solid #d9d9d6;
}
.service-index {
display: block;
margin-bottom: 28px;
color: var(--brand-accent);
font-family: var(--font-display);
font-size: 12px;
font-weight: 800;
}
.service-item h3 {
margin: 0 0 9px;
font-family: var(--font-display);
font-size: 19px;
font-weight: 700;
}
.service-item p {
max-width: 310px;
margin: 0;
color: var(--brand-muted);
font-size: 13px;
line-height: 1.7;
}
.about {
background: var(--brand-soft);
}
.about-inner {
display: grid;
grid-template-columns: 0.45fr 1.4fr 0.9fr;
align-items: start;
gap: 54px;
}
.about-marker {
display: flex;
align-items: center;
gap: 16px;
padding-top: 7px;
color: var(--brand-accent);
font-family: var(--font-display);
font-size: 13px;
font-weight: 800;
}
.about-rule {
width: 48px;
height: 1px;
background: var(--brand-accent);
}
.about-title {
max-width: 540px;
}
.about-description {
max-width: 530px;
margin: 24px 0 20px;
color: #545a5c;
font-size: 15px;
line-height: 1.8;
}
.text-link {
display: inline-flex;
align-items: center;
gap: 12px;
font-size: 13px;
font-weight: 700;
}
.text-link::after {
width: 25px;
height: 1px;
background: var(--brand-accent);
content: "";
transition: width 160ms ease;
}
.text-link:hover::after {
width: 38px;
}
.about-note {
position: relative;
margin-top: 43px;
padding: 28px 0 0 25px;
border-left: 1px solid #c7c5be;
}
.note-mark {
position: absolute;
top: -17px;
left: 21px;
color: var(--brand-accent);
font-family: Georgia, serif;
font-size: 45px;
line-height: 1;
}
.about-quote {
margin-bottom: 18px;
font-family: var(--font-display);
font-size: 16px;
font-weight: 600;
line-height: 1.65;
}
.about-quote-byline {
color: var(--brand-muted);
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.contact-inner {
display: grid;
grid-template-columns: 1.5fr 1fr 0.9fr;
align-items: center;
gap: 50px;
}
.contact-title {
max-width: 540px;
}
.contact-description {
max-width: 490px;
margin: 18px 0 0;
color: var(--brand-muted);
font-size: 14px;
line-height: 1.7;
}
.contact-actions {
display: grid;
justify-items: start;
gap: 15px;
}
.button-dark {
background: var(--brand-primary);
color: #fff;
}
.button-dark:hover {
background: #2b3743;
}
.contact-email {
font-size: 13px;
font-weight: 600;
}
.contact-location {
display: grid;
gap: 8px;
padding-left: 26px;
border-left: 1px solid #d9d9d6;
font-size: 13px;
line-height: 1.5;
}
.contact-location-label {
margin-bottom: 4px;
color: var(--brand-muted);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.contact-hours {
color: var(--brand-muted);
}
.site-footer {
background: var(--brand-primary);
color: #fff;
}
.footer-inner {
display: flex;
min-height: 88px;
align-items: center;
justify-content: space-between;
gap: 20px;
}
.footer-brand {
font-size: 13px;
}
.footer-location,
.footer-copyright {
margin: 0;
color: rgb(255 255 255 / 60%);
font-size: 11px;
}
@keyframes hero-arrive {
from {
transform: scale(1.04);
}
to {
transform: scale(1);
}
}
@keyframes content-arrive {
from {
opacity: 0;
transform: translateY(12px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes scroll-hint {
0%,
100% {
transform: translateY(0);
opacity: 1;
}
65% {
transform: translateY(9px);
opacity: 0;
}
}
@media (max-width: 900px) {
.header-inner {
min-height: 78px;
}
.main-nav {
gap: 22px;
margin-right: 25px;
}
.about-inner {
grid-template-columns: 0.25fr 1.3fr 0.85fr;
gap: 28px;
}
.contact-inner {
grid-template-columns: 1.2fr 0.8fr;
gap: 36px;
}
.contact-location {
grid-column: 2;
padding-top: 20px;
padding-left: 0;
border-top: 1px solid #d9d9d6;
border-left: 0;
}
}
@media (max-width: 680px) {
.header-inner {
min-height: 72px;
}
.brand {
position: relative;
z-index: 2;
max-width: calc(100% - 105px);
font-size: 15px;
}
.brand-logo {
width: 34px;
height: 34px;
}
.header-call {
display: none;
}
.menu-toggle {
position: relative;
z-index: 2;
display: block;
}
.main-nav {
position: absolute;
inset: 0 0 auto;
display: none;
align-items: stretch;
gap: 0;
margin: 0;
padding: 82px 24px 18px;
background: var(--brand-primary);
}
.main-nav.is-open {
display: grid;
}
.main-nav a {
padding: 15px 0;
border-top: 1px solid rgb(255 255 255 / 17%);
}
.hero {
min-height: 700px;
min-height: max(680px, 100svh);
align-items: end;
}
.hero-image {
object-position: 58% center;
}
.hero-shade {
background: rgb(13 20 20 / 67%);
}
.hero-content {
padding-top: 120px;
padding-bottom: 74px;
}
.hero-title {
max-width: 500px;
font-size: clamp(46px, 13vw, 68px);
}
.hero-description {
max-width: 420px;
font-size: 15px;
}
.hero-proof {
gap: 12px 0;
margin-top: 42px;
}
.hero-proof span {
padding-inline: 10px;
font-size: 10px;
}
.hero-scroll {
right: 20px;
bottom: 23px;
}
.section-heading {
display: block;
margin-bottom: 32px;
}
.section-heading h2,
.about-title,
.contact-title {
font-size: 36px;
}
.section-intro {
margin-top: 18px;
}
.service-list {
grid-template-columns: 1fr;
}
.service-item,
.service-item:not(:nth-child(3n + 1)) {
min-height: 0;
padding: 20px 0 22px;
border-left: 0;
}
.service-index {
margin-bottom: 14px;
}
.about-inner {
grid-template-columns: 1fr;
gap: 23px;
}
.about-marker {
gap: 12px;
}
.about-note {
max-width: 420px;
margin: 16px 0 0;
}
.contact-inner {
grid-template-columns: 1fr;
gap: 28px;
}
.contact-location {
grid-column: auto;
padding-top: 20px;
}
.footer-inner {
min-height: 0;
align-items: flex-start;
flex-direction: column;
gap: 10px;
padding-block: 25px;
}
}