mirror of
https://github.com/Sea-Haven-Industries/seahaven-site.git
synced 2026-09-30 06:33:16 +00:00
Remove unused .display-xl/.body-lg/.body-sm. Replace the 4 !important nav-hover overrides with specificity-correct hover rules in home.css (transparent homepage nav) so the cascade resolves without !important. No visual change.
467 lines
12 KiB
CSS
467 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; }
|
|
/* Hover on the transparent (homepage, not-scrolled) nav — these win on
|
|
specificity so main.css's hover rules no longer need !important. */
|
|
.site-header:not(.scrolled) .nav-links a:hover { color: var(--rose); }
|
|
.site-header:not(.scrolled) .nav-cta:hover {
|
|
background: var(--rose);
|
|
border-color: var(--rose);
|
|
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; }
|
|
}
|