81feccdc1a
- Remove old flat HTML pages (index, about, blog, contact, reviews, services/*, locations/*) - Remove Python/Flask API container (api/) - Remove old root nginx.conf and components/ - Add infra/: full nginx.conf (http block at /etc/nginx/nginx.conf), php-fpm-pool.conf (TCP listen), supervisord.conf, entrypoint.sh (auto-generates ALTCHA_HMAC_KEY) - Add src/: PHP router, page/service/location/blog templates, contact handler, altcha handler, promo endpoint, SQLite data files - Rewrite Dockerfile: single container, tini PID 1, healthcheck, all env vars declared - Update docker-compose.yml: port 8096, env_file, healthcheck - Update .dockerignore: exclude .env.*, include robots.txt/sitemap.xml/404.html/500.html - Update assets: tokens.css, promo-popup.css/js, altcha.min.js, refactored form.js/main.js Verified: all 17 routes 200, protection audit PASS, Resend confirmed working Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
448 lines
11 KiB
CSS
448 lines
11 KiB
CSS
@import url('tokens.css');
|
|
|
|
/* FLOOR IT HARDWOOD FLOORS: Design System
|
|
main.css: reset, typography, layout, utilities */
|
|
|
|
/* Reset */
|
|
*, *::before, *::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
-webkit-text-size-adjust: 100%;
|
|
font-size: 16px;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-base);
|
|
line-height: 1.65;
|
|
color: var(--text-on-light);
|
|
background: var(--bg-light);
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
img, video, svg {
|
|
display: block;
|
|
max-width: 100%;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
ul, ol { list-style: none; }
|
|
|
|
button {
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
border: none;
|
|
background: none;
|
|
}
|
|
|
|
input, textarea, select {
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
}
|
|
|
|
/* Typography */
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-family: var(--font-display);
|
|
font-weight: 800;
|
|
line-height: 1.15;
|
|
letter-spacing: -0.02em;
|
|
color: inherit;
|
|
}
|
|
|
|
h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
|
|
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
|
|
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); }
|
|
h4 { font-size: var(--text-lg); font-weight: 700; }
|
|
h5 { font-size: var(--text-base); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
|
|
h6 { font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
|
|
|
|
p { max-width: 68ch; }
|
|
|
|
.lead {
|
|
font-size: var(--text-md);
|
|
line-height: 1.7;
|
|
color: var(--text-muted-light);
|
|
}
|
|
|
|
.eyebrow {
|
|
display: inline-block;
|
|
font-size: var(--text-xs);
|
|
font-weight: 700;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: var(--amber);
|
|
margin-bottom: var(--space-4);
|
|
}
|
|
|
|
/* --- Layout ----------------------------------------------- */
|
|
.container {
|
|
width: 100%;
|
|
max-width: var(--container-max);
|
|
margin-inline: auto;
|
|
padding-inline: var(--container-px);
|
|
}
|
|
|
|
.container--wide {
|
|
max-width: var(--container-wide);
|
|
}
|
|
|
|
.section {
|
|
padding-block: var(--section-py);
|
|
}
|
|
|
|
.section--sm {
|
|
padding-block: var(--section-py-sm);
|
|
}
|
|
|
|
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
|
|
.section--mid { background: var(--bg-dark-alt); color: var(--text-on-dark); }
|
|
.section--bark { background: var(--bg-mid-dark); color: var(--text-on-dark); }
|
|
.section--light { background: var(--bg-light); color: var(--text-on-light); }
|
|
.section--alt { background: var(--bg-light-alt); color: var(--text-on-light); }
|
|
.section--warm { background: var(--bg-warm); color: var(--text-on-light); }
|
|
|
|
/* Grid */
|
|
.grid {
|
|
display: grid;
|
|
gap: var(--space-8);
|
|
}
|
|
|
|
.grid--2, .grid--2col { grid-template-columns: repeat(2, 1fr); }
|
|
.grid--3, .grid--3col { grid-template-columns: repeat(3, 1fr); }
|
|
.grid--4, .grid--4col { grid-template-columns: repeat(4, 1fr); }
|
|
|
|
.grid--auto-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
|
|
.grid--auto-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
|
|
.grid--auto-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
|
|
|
|
/* Flex */
|
|
.flex { display: flex; }
|
|
.flex--center { align-items: center; justify-content: center; }
|
|
.flex--between { align-items: center; justify-content: space-between; }
|
|
.flex--gap-4 { gap: var(--space-4); }
|
|
.flex--gap-6 { gap: var(--space-6); }
|
|
.flex--gap-8 { gap: var(--space-8); }
|
|
|
|
/* Section header */
|
|
.section-header {
|
|
margin-bottom: clamp(2.5rem, 5vw, 4rem);
|
|
}
|
|
.section-header--center {
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
.section-header p {
|
|
margin-top: var(--space-4);
|
|
font-size: var(--text-md);
|
|
color: var(--text-muted-light);
|
|
}
|
|
.section--dark .section-header p,
|
|
.section--mid .section-header p,
|
|
.section--bark .section-header p { color: var(--text-muted-dark); }
|
|
.section--dark .lead,
|
|
.section--mid .lead,
|
|
.section--bark .lead { color: var(--text-muted-dark); }
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-2);
|
|
padding: 0.875rem 2rem;
|
|
font-size: var(--text-sm);
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
border-radius: var(--radius);
|
|
border: 2px solid transparent;
|
|
transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
}
|
|
|
|
.btn:hover { transform: translateY(-1px); }
|
|
.btn:active { transform: translateY(0); }
|
|
|
|
.btn--primary {
|
|
background: var(--amber);
|
|
color: var(--ink);
|
|
border-color: var(--amber);
|
|
}
|
|
.btn--primary:hover {
|
|
background: var(--amber-light);
|
|
border-color: var(--amber-light);
|
|
box-shadow: 0 6px 24px rgba(200, 139, 42, 0.35);
|
|
}
|
|
|
|
.btn--outline-light {
|
|
background: transparent;
|
|
color: var(--text-on-dark);
|
|
border-color: rgba(255,255,255,0.35);
|
|
}
|
|
.btn--outline-light:hover {
|
|
background: rgba(255,255,255,0.1);
|
|
border-color: rgba(255,255,255,0.7);
|
|
}
|
|
|
|
.btn--outline-dark {
|
|
background: transparent;
|
|
color: var(--text-on-light);
|
|
border-color: var(--bark-mid);
|
|
}
|
|
.btn--outline-dark:hover {
|
|
background: var(--bark-mid);
|
|
color: var(--text-on-dark);
|
|
}
|
|
|
|
.btn--ghost {
|
|
background: transparent;
|
|
color: var(--amber);
|
|
border-color: var(--amber);
|
|
}
|
|
.btn--ghost:hover {
|
|
background: var(--amber);
|
|
color: var(--ink);
|
|
}
|
|
|
|
.btn--lg { padding: 1.1rem 2.5rem; font-size: var(--text-base); }
|
|
.btn--sm { padding: 0.625rem 1.25rem; font-size: var(--text-xs); }
|
|
.btn--full { width: 100%; }
|
|
|
|
/* CTA group */
|
|
.cta-group {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-4);
|
|
align-items: center;
|
|
}
|
|
|
|
/* Forms */
|
|
.form-grid {
|
|
display: grid;
|
|
gap: var(--space-5);
|
|
}
|
|
.form-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
|
|
|
|
.form-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.form-field label {
|
|
font-size: var(--text-sm);
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
color: var(--text-on-light);
|
|
}
|
|
|
|
.form-field input,
|
|
.form-field textarea,
|
|
.form-field select {
|
|
width: 100%;
|
|
padding: 0.875rem 1rem;
|
|
background: var(--white);
|
|
border: 1.5px solid var(--border-light);
|
|
border-radius: var(--radius);
|
|
font-size: var(--text-base);
|
|
color: var(--text-on-light);
|
|
transition: border-color var(--transition), box-shadow var(--transition);
|
|
outline: none;
|
|
appearance: none;
|
|
}
|
|
|
|
.form-field input:focus,
|
|
.form-field textarea:focus,
|
|
.form-field select:focus {
|
|
border-color: var(--amber);
|
|
box-shadow: 0 0 0 3px rgba(200,139,42,0.15);
|
|
}
|
|
|
|
.form-field input.valid { border-color: #2d9e57; }
|
|
.form-field input.invalid { border-color: #c0392b; }
|
|
|
|
.form-field textarea {
|
|
min-height: 130px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.form-field select {
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237a6a56' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 1rem center;
|
|
padding-right: 2.5rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.form-field .hint {
|
|
font-size: var(--text-xs);
|
|
color: var(--smoke);
|
|
}
|
|
|
|
.form-field .err-msg {
|
|
font-size: var(--text-xs);
|
|
color: #c0392b;
|
|
display: none;
|
|
}
|
|
.form-field.has-error .err-msg { display: block; }
|
|
|
|
.form-trust {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-3) var(--space-6);
|
|
padding: var(--space-4) 0;
|
|
border-top: 1px solid var(--border-light);
|
|
margin-top: var(--space-2);
|
|
}
|
|
.form-trust-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
font-size: var(--text-xs);
|
|
font-weight: 600;
|
|
color: var(--smoke);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
.form-trust-item::before {
|
|
content: '';
|
|
width: 14px;
|
|
height: 14px;
|
|
background: var(--amber);
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%230c0805' stroke='none' d='M10 3L5 8.5 2 5.5'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
background-size: 10px;
|
|
}
|
|
|
|
.form-status {
|
|
padding: var(--space-4) var(--space-5);
|
|
border-radius: var(--radius);
|
|
font-weight: 600;
|
|
font-size: var(--text-sm);
|
|
display: none;
|
|
}
|
|
.form-status--success { background: #d4edda; color: #155724; display: block; }
|
|
.form-status--error { background: #f8d7da; color: #721c24; display: block; }
|
|
|
|
/* Cards */
|
|
.card {
|
|
background: var(--white);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
border: 1px solid var(--border-light);
|
|
transition: transform var(--transition), box-shadow var(--transition);
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.card--dark {
|
|
background: var(--charcoal);
|
|
border-color: var(--border-dark);
|
|
color: var(--text-on-dark);
|
|
}
|
|
|
|
/* Scroll Animations */
|
|
[data-animate] {
|
|
opacity: 0;
|
|
transition: opacity 0.7s ease, transform 0.7s ease;
|
|
}
|
|
[data-animate="up"] { transform: translateY(40px); }
|
|
[data-animate="left"] { transform: translateX(-40px); }
|
|
[data-animate="right"] { transform: translateX(40px); }
|
|
[data-animate="scale"] { transform: scale(0.92); }
|
|
[data-animate="fade"] { transform: none; }
|
|
|
|
[data-animate].in-view {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
|
|
[data-delay="1"] { transition-delay: 0.1s; }
|
|
[data-delay="2"] { transition-delay: 0.2s; }
|
|
[data-delay="3"] { transition-delay: 0.3s; }
|
|
[data-delay="4"] { transition-delay: 0.4s; }
|
|
[data-delay="5"] { transition-delay: 0.5s; }
|
|
[data-delay="6"] { transition-delay: 0.6s; }
|
|
|
|
/* Utility Classes */
|
|
.text-center { text-align: center; }
|
|
.text-amber { color: var(--amber); }
|
|
.text-muted { color: var(--smoke); }
|
|
.text-sm { font-size: var(--text-sm); }
|
|
.text-lg { font-size: var(--text-lg); }
|
|
|
|
.mt-4 { margin-top: var(--space-4); }
|
|
.mt-6 { margin-top: var(--space-6); }
|
|
.mt-8 { margin-top: var(--space-8); }
|
|
.mt-12 { margin-top: var(--space-12); }
|
|
.mt-16 { margin-top: var(--space-16); }
|
|
|
|
.mb-4 { margin-bottom: var(--space-4); }
|
|
.mb-6 { margin-bottom: var(--space-6); }
|
|
.mb-8 { margin-bottom: var(--space-8); }
|
|
|
|
.w-full { width: 100%; }
|
|
.block { display: block; }
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
clip: rect(0,0,0,0);
|
|
border: 0;
|
|
}
|
|
|
|
/* Dividers */
|
|
.divider {
|
|
width: 60px;
|
|
height: 3px;
|
|
background: var(--amber);
|
|
border-radius: var(--radius-full);
|
|
margin-bottom: var(--space-6);
|
|
}
|
|
.section--dark .divider,
|
|
.section--mid .divider,
|
|
.section--bark .divider { background: var(--amber); }
|
|
|
|
/* Responsive */
|
|
@media (max-width: 1024px) {
|
|
.grid--4, .grid--4col { grid-template-columns: repeat(2, 1fr); }
|
|
.grid--3, .grid--3col { grid-template-columns: repeat(2, 1fr); }
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.grid--2, .grid--2col,
|
|
.grid--3, .grid--3col,
|
|
.grid--4, .grid--4col { grid-template-columns: 1fr; }
|
|
|
|
.cta-group { justify-content: center; }
|
|
.cta-group .btn { min-width: 220px; }
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
p { max-width: 100%; }
|
|
}
|