Files
cuitunet.fi/style.css
Jukka Lampikoski 4c66b900ce Add soft match for postcodes 20100/20360, split section headers
- Show green 'todennäköisesti saatavuus' for postcodes 20100 and 20360
  even when no exact address match found
- Split section into 'Saatavuuskysely' and 'Yhteydenotto' headers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 02:52:13 +02:00

814 lines
14 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--orange: #e8891d;
--orange-dark: #c67015;
--orange-light: #fef3e2;
--dark: #111;
--dark-soft: #1a1a1a;
--text: #374151;
--text-light: #6b7280;
--border: #e5e7eb;
--bg: #fff;
--bg-alt: #f9fafb;
--radius: 12px;
--radius-lg: 20px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
color: var(--text);
line-height: 1.7;
-webkit-font-smoothing: antialiased;
}
.container {
max-width: 1120px;
margin: 0 auto;
padding: 0 24px;
}
a {
color: inherit;
text-decoration: none;
}
img {
max-width: 100%;
height: auto;
}
/* ---- Utilities ---- */
.overline {
display: inline-block;
font-size: 0.8rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1.5px;
color: var(--orange);
margin-bottom: 12px;
}
.section-header {
text-align: center;
max-width: 600px;
margin: 0 auto 56px;
}
.section-header h2 {
font-size: 2.2rem;
font-weight: 700;
color: var(--dark);
margin-bottom: 12px;
}
.section-header p {
color: var(--text-light);
font-size: 1.05rem;
}
.optional {
color: var(--text-light);
font-weight: 400;
}
/* ---- Buttons ---- */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 14px 28px;
font-size: 0.95rem;
font-weight: 600;
border: none;
border-radius: 10px;
cursor: pointer;
transition: all 0.2s;
background: var(--orange);
color: #fff;
}
.btn:hover {
background: var(--orange-dark);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(232, 137, 29, 0.3);
}
.btn-outline {
background: transparent;
color: var(--dark);
border: 1.5px solid var(--border);
}
.btn-outline:hover {
background: var(--bg-alt);
border-color: #d1d5db;
box-shadow: none;
transform: translateY(-1px);
}
.btn-full {
width: 100%;
}
.btn-sm {
padding: 10px 20px;
font-size: 0.85rem;
}
/* ---- Header ---- */
.header {
position: fixed;
top: 0;
left: 0;
right: 0;
background: rgba(255,255,255,0.92);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
z-index: 100;
}
.header-inner {
display: flex;
align-items: center;
gap: 32px;
height: 88px;
}
.logo img {
height: 56px;
width: auto;
}
.nav {
display: flex;
gap: 28px;
margin-left: auto;
}
.nav a {
font-size: 0.9rem;
font-weight: 500;
color: var(--text-light);
transition: color 0.2s;
}
.nav a:hover {
color: var(--dark);
}
.header-cta {
margin-left: 8px;
}
.nav-toggle {
display: none;
background: none;
border: none;
cursor: pointer;
color: var(--dark);
margin-left: auto;
}
/* ---- Hero ---- */
.hero {
position: relative;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 120px 0 80px;
text-align: center;
overflow: hidden;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.hero-overlay {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
z-index: 1;
}
.hero-container {
position: relative;
z-index: 2;
}
.hero-badge {
display: inline-block;
padding: 6px 16px;
background: rgba(255,255,255,0.15);
backdrop-filter: blur(4px);
color: var(--orange-light);
font-size: 0.82rem;
font-weight: 600;
border-radius: 100px;
margin-bottom: 24px;
border: 1px solid rgba(255,255,255,0.1);
}
.hero h1 {
font-size: 3.4rem;
font-weight: 800;
color: #fff;
line-height: 1.15;
margin-bottom: 20px;
letter-spacing: -0.5px;
}
.highlight {
color: var(--orange);
}
.hero-sub {
font-size: 1.15rem;
color: rgba(255,255,255,0.8);
max-width: 560px;
margin: 0 auto 36px;
line-height: 1.7;
}
.hero-actions {
display: flex;
gap: 12px;
justify-content: center;
margin-bottom: 64px;
}
.btn-outline-light {
background: transparent;
color: #fff;
border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover {
background: rgba(255,255,255,0.1);
border-color: rgba(255,255,255,0.5);
box-shadow: none;
transform: translateY(-1px);
}
.hero-stats {
display: flex;
justify-content: center;
gap: 64px;
}
.hero-stat strong {
display: block;
font-size: 1.4rem;
font-weight: 700;
color: #fff;
}
.hero-stat span {
font-size: 0.85rem;
color: rgba(255,255,255,0.6);
}
/* ---- Image Break ---- */
.image-break {
position: relative;
padding: 64px 0;
background-size: cover;
background-position: center;
background-attachment: fixed;
}
.image-break-overlay {
position: absolute;
inset: 0;
background: rgba(0,0,0,0.7);
}
.image-break-overlay-warm {
background: linear-gradient(135deg, rgba(30,20,10,0.8), rgba(100,60,20,0.7));
}
.image-break-content {
position: relative;
z-index: 2;
display: flex;
justify-content: center;
gap: 64px;
}
.image-break-stat strong {
display: block;
font-size: 1.6rem;
font-weight: 800;
color: var(--orange);
}
.image-break-stat span {
font-size: 0.85rem;
color: rgba(255,255,255,0.7);
}
.image-break-tall {
padding: 120px 0;
}
.image-break-cta {
position: relative;
z-index: 2;
text-align: center;
}
.image-break-cta h2 {
font-size: 2.4rem;
font-weight: 700;
color: #fff;
margin-bottom: 12px;
}
.image-break-cta p {
font-size: 1.1rem;
color: rgba(255,255,255,0.8);
margin-bottom: 28px;
}
/* ---- Services ---- */
.services {
padding: 100px 0;
background: var(--bg-alt);
}
.services-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 24px;
}
.service-card {
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
overflow: hidden;
transition: box-shadow 0.3s, transform 0.2s;
}
.service-card:hover {
box-shadow: 0 12px 40px rgba(0,0,0,0.08);
transform: translateY(-3px);
}
.service-card-img {
height: 240px;
overflow: hidden;
}
.service-card-img img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img {
transform: scale(1.05);
}
.service-card-body {
padding: 20px 24px 24px;
}
.service-card-body h3 {
font-size: 1.2rem;
font-weight: 700;
color: var(--dark);
margin-bottom: 6px;
}
.service-card-body p {
font-size: 0.85rem;
color: var(--text-light);
line-height: 1.55;
margin-bottom: 14px;
}
.service-card-features {
list-style: none;
padding: 0;
margin: 0 0 18px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 5px;
}
.service-card-features li {
font-size: 0.8rem;
color: var(--text);
padding-left: 20px;
position: relative;
}
.service-card-features li::before {
content: '';
position: absolute;
left: 0;
top: 5px;
width: 12px;
height: 12px;
background: var(--orange-light);
border-radius: 50%;
border: 2px solid var(--orange);
}
/* ---- Why ---- */
.why {
padding: 100px 0;
}
.why-inner {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 80px;
align-items: start;
}
.why-content h2 {
font-size: 2.2rem;
font-weight: 700;
color: var(--dark);
margin-bottom: 20px;
}
.why-content p {
color: var(--text-light);
font-size: 1.02rem;
margin-bottom: 16px;
line-height: 1.8;
}
.why-features {
display: flex;
flex-direction: column;
gap: 24px;
}
.feature {
display: flex;
gap: 16px;
align-items: flex-start;
}
.feature-icon {
flex-shrink: 0;
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
background: var(--orange-light);
color: var(--orange);
border-radius: 10px;
}
.feature strong {
display: block;
font-size: 0.95rem;
color: var(--dark);
margin-bottom: 2px;
}
.feature p {
font-size: 0.88rem;
color: var(--text-light);
margin: 0;
}
/* ---- Availability ---- */
.availability {
padding: 100px 0;
background: var(--bg-alt);
}
.availability-inner {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 64px;
align-items: start;
}
.availability-text h2 {
font-size: 2rem;
font-weight: 700;
color: var(--dark);
margin-bottom: 16px;
}
.availability-text p {
color: var(--text-light);
line-height: 1.8;
}
.availability-form-header {
margin-bottom: 24px;
}
.availability-form-header h2 {
font-size: 1.6rem;
font-weight: 700;
color: var(--dark);
margin-bottom: 8px;
}
.availability-form-header p {
color: var(--text-light);
font-size: 0.95rem;
line-height: 1.6;
}
.form {
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 32px;
}
.form-group {
margin-bottom: 16px;
}
.form-group label {
display: block;
font-size: 0.85rem;
font-weight: 600;
color: var(--dark);
margin-bottom: 6px;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 11px 14px;
border: 1.5px solid var(--border);
border-radius: 8px;
font-size: 0.95rem;
font-family: inherit;
transition: border-color 0.2s, box-shadow 0.2s;
background: var(--bg);
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--orange);
box-shadow: 0 0 0 3px rgba(232, 137, 29, 0.1);
}
/* ---- Availability Check ---- */
.availability-check {
margin-top: 32px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
}
.availability-check h3 {
font-size: 1rem;
font-weight: 600;
color: var(--dark);
margin-bottom: 12px;
}
.availability-check-fields {
display: flex;
flex-direction: column;
gap: 8px;
}
.availability-check-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.availability-check-fields input {
padding: 11px 14px;
border: 1.5px solid var(--border);
border-radius: 8px;
font-size: 0.95rem;
font-family: inherit;
transition: border-color 0.2s, box-shadow 0.2s;
}
.availability-check-fields input:focus {
outline: none;
border-color: var(--orange);
box-shadow: 0 0 0 3px rgba(232, 137, 29, 0.1);
}
.check-result {
margin-top: 12px;
padding: 14px 16px;
border-radius: 8px;
font-size: 0.9rem;
line-height: 1.5;
}
.check-result.ok {
background: #ecfdf5;
border: 1px solid #a7f3d0;
color: #065f46;
}
.check-result.nok {
background: #fef2f2;
border: 1px solid #fecaca;
color: #991b1b;
}
.check-result.loading {
background: var(--bg-alt);
border: 1px solid var(--border);
color: var(--text-light);
}
.check-result h4 {
font-size: 0.95rem;
margin-bottom: 4px;
}
.check-result-address {
background: rgba(255,255,255,0.6);
padding: 6px 10px;
border-radius: 6px;
margin-top: 6px;
font-size: 0.85rem;
}
/* ---- Footer ---- */
.footer {
background: var(--dark-soft);
color: #d1d5db;
padding: 64px 0 0;
}
.footer-top {
display: grid;
grid-template-columns: 1.5fr 1fr 1fr 1fr;
gap: 40px;
padding-bottom: 48px;
}
.footer-logo {
height: 28px;
margin-bottom: 16px;
filter: brightness(0) invert(1);
}
.footer-brand p {
font-size: 0.9rem;
color: #9ca3af;
line-height: 1.7;
}
.footer-links h4 {
font-size: 0.8rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
color: #fff;
margin-bottom: 16px;
}
.footer-links a,
.footer-links p {
display: block;
font-size: 0.9rem;
color: #9ca3af;
margin-bottom: 8px;
transition: color 0.2s;
}
.footer-links a:hover {
color: #fff;
}
.footer-bottom {
border-top: 1px solid #2d2d2d;
padding: 20px 0;
font-size: 0.85rem;
color: #6b7280;
}
/* ---- Mobile ---- */
@media (max-width: 1024px) {
.services-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.nav {
display: none;
position: absolute;
top: 68px;
left: 0;
right: 0;
background: rgba(255,255,255,0.98);
backdrop-filter: blur(12px);
flex-direction: column;
padding: 16px 24px;
gap: 12px;
border-bottom: 1px solid var(--border);
}
.nav.open {
display: flex;
}
.nav-toggle {
display: block;
}
.header-cta {
display: none;
}
.hero {
padding: 120px 0 64px;
}
.hero h1 {
font-size: 2.2rem;
}
.hero-sub {
font-size: 1rem;
}
.hero-actions {
flex-direction: column;
align-items: center;
margin-bottom: 48px;
}
.hero-stats {
flex-direction: column;
gap: 24px;
}
.services-grid {
grid-template-columns: 1fr;
}
.service-card-features {
grid-template-columns: 1fr;
}
.why-inner {
grid-template-columns: 1fr;
gap: 40px;
}
.availability-inner {
grid-template-columns: 1fr;
gap: 32px;
}
.form-row {
grid-template-columns: 1fr;
}
.image-break-content {
flex-direction: column;
gap: 32px;
}
.image-break {
background-attachment: scroll;
}
.image-break-tall {
padding: 80px 0;
}
.image-break-cta h2 {
font-size: 1.8rem;
}
.footer-top {
grid-template-columns: 1fr;
gap: 32px;
}
}