mirror of
https://github.com/Sea-Haven-Industries/seahaven-site.git
synced 2026-09-30 04:13:15 +00:00
* chore(build): add Eleventy scaffold
Thin Eleventy build (v3.1.6, pinned) — passthrough-copies assets/,
robots.txt, sitemap.xml; outputs flat HTML to _site/. _data/site.json
holds site-wide constants; _data/images.json maps image keys to
src+width+height for the {% image %} shortcode (CLS fix). Output stays
flat HTML served from the same S3 bucket + CloudFront.
* refactor(templates): base layout, partials, shared JS, CSS extraction
- _includes/base.njk + nav/mobile-menu/footer partials reproduce the
shared chrome once (was hand-duplicated across 13 pages). Adds a
skip-link and <main> landmark (WCAG 2.4.1), aria-expanded/role=dialog
hooks on the menu, and a {% year %} shortcode replacing document.write.
- assets/js/nav.js: extracted sticky-nav + accessible mobile-menu dialog
(focus trap, Escape, focus return) + rAF-throttled hero parallax.
- assets/js/form.js: Basin AJAX submit with an accessible status region.
- assets/css/*.css: per-page inline <style> extracted into page CSS files
(home/about/services/careers/jobs/contact/social/legal/404); skip-link
+ :focus-visible added to main.css.
- index.njk: homepage converted as the reference page.
* fix(css): make hero-bg url root-relative after extraction
Inline CSS used a document-relative url('assets/...') that resolves
correctly from / but breaks once moved into /assets/css/home.css.
Rewrite to /assets/images/.
* refactor(pages): convert 12 pages to Eleventy templates
Convert about, services, careers (listing + 3 jobs), contact, social-
accountability, privacy-policy, terms-of-service, eula, and 404 from
standalone HTML to .njk against base.njk. Each page now carries only
front-matter (title/description/SEO) + its <main> content; shared head/
nav/footer/scripts come from the layout. JobPosting + LocalBusiness
JSON-LD preserved. Images use the {% image %} shortcode (width/height).
Contact gets an accessible #form-status region. form.js generalized to
wire BOTH the contact form and the .apply-form job application forms
(was contact-only), preserving each submit button's own label.
* fix(a11y): footer contrast to WCAG AA + scope services .form-group
Raise footer text colors (footer-bottom/col/brand/social/contact) and
darken --text-muted so muted text clears 4.5:1 on the dark footer and
warm-gray surfaces. Scope services' flex .form-group override to
.contact-form .form-group so it can't leak to the global rule.
* perf(seo): og-cover image, webp logos, hero preload
Add a real 1200x630 og-cover.jpg (was a 153x49 favicon) wired site-wide
via base.njk og:image/twitter:image. Convert nav/footer logos to webp
(nav 58KB->22KB); PNGs kept as passthrough so old URLs still resolve.
Preload the LCP hero image on the homepage (fetchpriority=high). All
<img> carry width/height via the image shortcode (CLS).
* ci(deploy): build-then-sync, cache headers, safe concurrency
Rename main.yml -> deploy.yaml (org convention). Build with Eleventy
(npm ci && npm run build) and sync _site/ instead of the repo root, so
only built output ships (no source/templates/node_modules). Split
Cache-Control (1-day assets, no-cache HTML) and keep /* invalidation
since filenames are not yet fingerprinted. concurrency cancel-in-progress
false so a deploy is never cut mid sync. ci.yaml validates _site/ via
ci-static build mode.
* docs: README for the Eleventy build and structure
* fix(security): wire services form, guard build, harden deploy
Fable build-review findings:
- BLOCK: services puts .contact-form on the <form> itself (contact uses a
wrapper div), so form.js selector '.contact-form form' never matched it
— the services lead form submitted natively with an empty reCAPTCHA
token. Selector now also matches form.contact-form.
- Guard the build before the --delete S3 sync: require index/contact/404
and >=40 files, so a silently-empty build can never wipe the live bucket.
- npm ci --ignore-scripts on deploy (build verified to pass) to shrink the
supply-chain window on the OIDC-credentialed runner.
- Escape quotes in the image shortcode alt text.
459 lines
12 KiB
CSS
459 lines
12 KiB
CSS
/* ── Homepage (extracted from inline <style>; consolidate shared rules into main.css) ── */
|
|
/* ── Homepage Nav Overrides (dark transparent → scrolled white) ── */
|
|
.site-header {
|
|
background: rgba(20, 16, 12, 0.45);
|
|
box-shadow: none;
|
|
backdrop-filter: blur(6px);
|
|
-webkit-backdrop-filter: blur(6px);
|
|
transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
|
|
}
|
|
.site-header.scrolled {
|
|
background: rgba(255,255,255,0.97);
|
|
box-shadow: 0 1px 0 var(--border);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
}
|
|
.site-header:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.85); }
|
|
.site-header:not(.scrolled) .nav-cta {
|
|
border-color: rgba(255,255,255,0.6);
|
|
color: #fff;
|
|
}
|
|
.site-header:not(.scrolled) .nav-hamburger { color: #fff; }
|
|
|
|
/* ── Hero ── */
|
|
.hero {
|
|
position: relative;
|
|
height: 100vh;
|
|
min-height: 640px;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
padding-bottom: clamp(4rem, 8vh, 7rem);
|
|
overflow: hidden;
|
|
}
|
|
.hero-bg {
|
|
position: absolute;
|
|
inset: 0;
|
|
background-color: #1a1814;
|
|
background-image: url('/assets/images/hero-bg.webp');
|
|
background-size: cover;
|
|
background-position: center 40%;
|
|
transform: scale(1.03);
|
|
transition: transform 8s ease;
|
|
}
|
|
.hero-bg::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(
|
|
to bottom,
|
|
rgba(20, 16, 12, 0.25) 0%,
|
|
rgba(20, 16, 12, 0.15) 40%,
|
|
rgba(20, 16, 12, 0.72) 100%
|
|
);
|
|
}
|
|
.hero-content {
|
|
position: relative;
|
|
z-index: 1;
|
|
max-width: 780px;
|
|
}
|
|
.hero-eyebrow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
.hero-eyebrow-line {
|
|
width: 40px;
|
|
height: 1.5px;
|
|
background: var(--rose);
|
|
}
|
|
.hero-eyebrow span {
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
color: rgba(255,255,255,0.75);
|
|
}
|
|
.hero h1 {
|
|
font-family: var(--font-display);
|
|
font-size: clamp(3rem, 7vw, 6rem);
|
|
line-height: 1.0;
|
|
letter-spacing: -0.025em;
|
|
color: #fff;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
.hero h1 em {
|
|
font-style: italic;
|
|
color: rgba(255,255,255,0.7);
|
|
}
|
|
.hero-sub {
|
|
font-size: clamp(1rem, 2vw, 1.2rem);
|
|
line-height: 1.65;
|
|
color: rgba(255,255,255,0.78);
|
|
max-width: 520px;
|
|
margin-bottom: 2.25rem;
|
|
}
|
|
.hero-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
.hero-scroll {
|
|
position: absolute;
|
|
bottom: 2rem;
|
|
right: clamp(1.25rem, 5vw, 2.5rem);
|
|
z-index: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
color: rgba(255,255,255,0.5);
|
|
font-size: 0.75rem;
|
|
letter-spacing: 0.08em;
|
|
writing-mode: vertical-rl;
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
/* ── Stats Bar ── */
|
|
.stats-bar {
|
|
background: var(--ink);
|
|
padding: 2rem 0;
|
|
}
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 1px;
|
|
background: rgba(255,255,255,0.06);
|
|
}
|
|
.stat-item {
|
|
padding: 1.75rem 2rem;
|
|
background: var(--ink);
|
|
text-align: center;
|
|
}
|
|
.stat-num {
|
|
font-family: var(--font-display);
|
|
font-size: clamp(2rem, 4vw, 3rem);
|
|
color: #fff;
|
|
line-height: 1;
|
|
margin-bottom: 0.375rem;
|
|
}
|
|
.stat-num span { color: var(--rose); }
|
|
.stat-label {
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: rgba(255,255,255,0.45);
|
|
}
|
|
|
|
/* ── Services ── */
|
|
.services-section { background: var(--surface); }
|
|
.services-intro {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--gap);
|
|
align-items: end;
|
|
margin-bottom: clamp(2.5rem, 5vw, 4rem);
|
|
}
|
|
.services-intro-right {
|
|
padding-bottom: 0.25rem;
|
|
}
|
|
.services-intro-right p {
|
|
color: var(--text-muted);
|
|
font-size: 1rem;
|
|
line-height: 1.75;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
.services-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1.5rem;
|
|
}
|
|
.service-card {
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-radius: 3px;
|
|
aspect-ratio: 4/5;
|
|
background: var(--warm-gray);
|
|
}
|
|
.service-card img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.6s ease;
|
|
}
|
|
.service-card:hover img { transform: scale(1.04); }
|
|
.service-card-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(to top, rgba(20,16,12,0.88) 0%, rgba(20,16,12,0.1) 55%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
padding: 1.75rem;
|
|
}
|
|
.service-card-num {
|
|
font-size: 0.6875rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.12em;
|
|
color: var(--rose);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.service-card h3 {
|
|
font-family: var(--font-display);
|
|
font-size: 1.5rem;
|
|
color: #fff;
|
|
line-height: 1.15;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.service-card p {
|
|
font-size: 0.875rem;
|
|
color: rgba(255,255,255,0.65);
|
|
line-height: 1.6;
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.35s ease, opacity 0.35s ease;
|
|
opacity: 0;
|
|
}
|
|
.service-card:hover p {
|
|
max-height: 5rem;
|
|
opacity: 1;
|
|
}
|
|
.service-card-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
color: var(--rose);
|
|
margin-top: 0.875rem;
|
|
transition: gap 0.2s;
|
|
}
|
|
.service-card-link:hover { gap: 0.625rem; }
|
|
|
|
/* Large service card spans 2 cols */
|
|
.service-card-wide {
|
|
grid-column: span 2;
|
|
aspect-ratio: 2/1;
|
|
}
|
|
|
|
/* ── About Split ── */
|
|
.about-section { background: var(--warm-gray); }
|
|
.about-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: clamp(3rem, 6vw, 6rem);
|
|
align-items: center;
|
|
}
|
|
.about-img-wrap {
|
|
position: relative;
|
|
}
|
|
.about-img-main {
|
|
width: 100%;
|
|
aspect-ratio: 4/5;
|
|
object-fit: cover;
|
|
border-radius: 3px;
|
|
}
|
|
.about-img-badge {
|
|
position: absolute;
|
|
bottom: -1.5rem;
|
|
right: -1.5rem;
|
|
background: var(--rose);
|
|
color: #fff;
|
|
padding: 1.5rem;
|
|
border-radius: 3px;
|
|
text-align: center;
|
|
min-width: 140px;
|
|
}
|
|
.about-img-badge strong {
|
|
display: block;
|
|
font-family: var(--font-display);
|
|
font-size: 2.5rem;
|
|
line-height: 1;
|
|
}
|
|
.about-img-badge span {
|
|
display: block;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.06em;
|
|
opacity: 0.85;
|
|
margin-top: 0.25rem;
|
|
}
|
|
.about-content .label { margin-bottom: 0.75rem; }
|
|
.about-content h2 { margin-bottom: 1.25rem; }
|
|
.about-content > p {
|
|
color: var(--text-muted);
|
|
font-size: 1rem;
|
|
line-height: 1.8;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
.about-pillars {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1rem;
|
|
margin-top: 2rem;
|
|
}
|
|
.pillar {
|
|
padding: 1.25rem;
|
|
background: var(--surface);
|
|
border-left: 3px solid var(--rose);
|
|
}
|
|
.pillar h4 {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
.pillar p {
|
|
font-size: 0.8125rem;
|
|
color: var(--text-muted);
|
|
line-height: 1.55;
|
|
}
|
|
|
|
/* ── Process ── */
|
|
.process-section { background: var(--ink); }
|
|
.process-header { margin-bottom: 3.5rem; }
|
|
.process-header .label { color: rgba(204, 51, 102, 0.9); }
|
|
.process-header h2 { color: #fff; }
|
|
.process-steps {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 2rem;
|
|
counter-reset: step;
|
|
}
|
|
.process-step {
|
|
counter-increment: step;
|
|
position: relative;
|
|
padding-top: 1rem;
|
|
}
|
|
.process-step::before {
|
|
content: counter(step, decimal-leading-zero);
|
|
display: block;
|
|
font-family: var(--font-display);
|
|
font-size: 3.5rem;
|
|
line-height: 1;
|
|
color: rgba(255,255,255,0.07);
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
.process-step-bar {
|
|
width: 40px;
|
|
height: 2px;
|
|
background: var(--rose);
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
.process-step h3 {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.process-step p {
|
|
font-size: 0.875rem;
|
|
color: rgba(255,255,255,0.45);
|
|
line-height: 1.7;
|
|
}
|
|
|
|
/* ── Testimonials ── */
|
|
.testimonials-section { background: var(--surface); }
|
|
.testimonials-header {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
margin-bottom: 3rem;
|
|
gap: 2rem;
|
|
}
|
|
.testimonials-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
gap: 1.5rem;
|
|
}
|
|
.testimonial-card {
|
|
padding: 2rem;
|
|
background: var(--body-bg);
|
|
border-top: 2px solid var(--border);
|
|
position: relative;
|
|
}
|
|
.testimonial-card.featured {
|
|
background: var(--rose);
|
|
border-top-color: var(--rose-dark);
|
|
}
|
|
.testimonial-stars {
|
|
display: flex;
|
|
gap: 3px;
|
|
margin-bottom: 1rem;
|
|
}
|
|
.testimonial-stars span {
|
|
font-size: 0.875rem;
|
|
color: var(--rose);
|
|
}
|
|
.testimonial-card.featured .testimonial-stars span { color: rgba(255,255,255,0.9); }
|
|
.testimonial-card blockquote {
|
|
font-family: var(--font-display);
|
|
font-size: 1.125rem;
|
|
font-style: italic;
|
|
line-height: 1.55;
|
|
color: var(--text);
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
.testimonial-card.featured blockquote { color: #fff; }
|
|
.testimonial-author {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
.testimonial-author-initials {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: var(--rose-tint);
|
|
color: var(--rose);
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.testimonial-card.featured .testimonial-author-initials {
|
|
background: rgba(255,255,255,0.2);
|
|
color: #fff;
|
|
}
|
|
.testimonial-author-name {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
.testimonial-card.featured .testimonial-author-name { color: #fff; }
|
|
.testimonial-author-role {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
.testimonial-card.featured .testimonial-author-role { color: rgba(255,255,255,0.65); }
|
|
|
|
/* ── Responsive (page-specific) ── */
|
|
@media (max-width: 1024px) {
|
|
.services-grid { grid-template-columns: 1fr 1fr; }
|
|
.service-card-wide { grid-column: span 2; aspect-ratio: 16/9; }
|
|
.process-steps { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
|
|
.testimonials-grid { grid-template-columns: 1fr 1fr; }
|
|
.testimonials-grid .testimonial-card:last-child { display: none; }
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.hero h1 { font-size: clamp(2.5rem, 9vw, 4rem); }
|
|
|
|
.stats-grid { grid-template-columns: 1fr 1fr; }
|
|
.services-intro { grid-template-columns: 1fr; }
|
|
.services-grid { grid-template-columns: 1fr; }
|
|
.service-card-wide { grid-column: span 1; aspect-ratio: 4/3; }
|
|
.about-grid { grid-template-columns: 1fr; }
|
|
.about-img-badge { right: 1rem; }
|
|
.process-steps { grid-template-columns: 1fr; }
|
|
.testimonials-grid { grid-template-columns: 1fr; }
|
|
.testimonials-grid .testimonial-card:last-child { display: block; }
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.stats-grid { grid-template-columns: 1fr 1fr; }
|
|
.hero-actions { flex-direction: column; align-items: flex-start; }
|
|
}
|