/* ============================================================ FLOOR IT HARDWOOD FLOORS — Design System main.css: variables, reset, typography, layout, utilities ============================================================ */ /* --- Custom Properties ------------------------------------ */ :root { /* Color palette — warm wood tones, no gradients */ --ink: #0c0805; --charcoal: #1c1208; --bark: #2e1d0a; --bark-mid: #3d2710; --amber: #c88b2a; --amber-dark: #a87220; --amber-light: #e8aa48; --parchment: #f5f0e8; --cream: #faf8f5; --grain: #ede5d8; --smoke: #7a6a56; --ash: #b8a898; --white: #ffffff; /* Semantic aliases */ --bg-dark: var(--ink); --bg-dark-alt: var(--charcoal); --bg-mid-dark: var(--bark); --bg-light: var(--cream); --bg-light-alt: var(--parchment); --bg-warm: var(--grain); --text-on-dark: #f0e8da; --text-muted-dark:var(--ash); --text-on-light: var(--charcoal); --text-muted-light:var(--smoke); --cta: var(--amber); --cta-hover: var(--amber-dark); --cta-text: var(--ink); --border-dark: rgba(255,255,255,0.08); --border-light: rgba(0,0,0,0.08); /* Typography */ --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --font-display: 'Inter', Georgia, serif; /* Scale */ --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem; --text-md: 1.125rem; --text-lg: 1.25rem; --text-xl: 1.5rem; --text-2xl: 2rem; --text-3xl: 2.5rem; --text-4xl: 3.25rem; --text-5xl: 4.25rem; --text-6xl: 5.5rem; /* Spacing */ --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem; /* Section rhythm */ --section-py: clamp(4rem, 8vw, 8rem); --section-py-sm: clamp(2.5rem, 5vw, 5rem); /* Layout */ --container-max: 1200px; --container-wide: 1380px; --container-px: clamp(1.25rem, 5vw, 2.5rem); /* Effects */ --radius-sm: 4px; --radius: 8px; --radius-lg: 16px; --radius-xl: 24px; --radius-full: 9999px; --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08); --shadow: 0 4px 16px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08); --shadow-lg: 0 12px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.10); --shadow-xl: 0 24px 64px rgba(0,0,0,0.22); --transition: 0.25s ease; --transition-slow: 0.5s ease; /* Header height */ --header-h: 72px; } /* --- 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-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { 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-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 768px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } .cta-group { justify-content: center; } .cta-group .btn { min-width: 220px; } } @media (max-width: 480px) { :root { --section-py: clamp(3rem, 8vw, 4rem); } p { max-width: 100%; } }