msos/css/pages/_home.css

940 lines
19 KiB
CSS

/* ==========================================================================
Home Page Specific Styles
========================================================================== */
/**
* Ta datoteka vsebuje stile, ki se uporabljajo izključno na domači strani.
*
* 1. Hero Section
* 2. Partners Section
* 3. Meet the Team Section
* 4. Activities Section
* 5. Latest News Section
* 6. Testimonials Section
* 7. Become Part Section (vključno z obrazcem)
* 8. FAQ Section
* 9. Stili za domačo stran na mobilnih napravah
*/
/* 1. Hero Section */
.hero-section {
position: relative;
height: 880px;
width: 100%;
display: flex;
align-items: center;
overflow: hidden;
}
.hero-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
background: url('../../images/HeroSection-img1.webp') no-repeat center center/cover; /* POPRAVLJENO */
}
.hero-image-left, .hero-image-right {
display: none;
}
.hero-overlay {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
/* Radial vignette (Proxify-style): a light, whitish-blue glow in the centre
over the CTA that falls off to a deep, dark blue at the edges — pulling
the eye straight to the middle where the "Become a member" button sits.
Focal point biased slightly downward (58%) to sit on the button. */
background: radial-gradient(ellipse 70% 78% at 50% 58%,
rgba(178, 218, 238, 0.40) 0%,
rgba(96, 165, 190, 0.46) 28%,
rgba(34, 86, 114, 0.74) 58%,
rgba(9, 34, 52, 0.96) 100%);
z-index: 2;
}
.hero-content {
position: relative;
z-index: 3;
color: #FFFFFF;
width: 100%;
max-width: 1000px;
margin: 0 auto;
text-align: center;
padding: 0 24px;
}
.hero-content .badge-group {
display: inline-flex;
align-items: center;
padding: 8px 24px;
gap: 12px;
background: rgba(255, 255, 255, 0.4);
border-radius: 24px;
margin-bottom: 32px;
}
.hero-content .message {
font-weight: 400;
font-size: 18px;
}
.hero-content h1 {
font-weight: 700;
font-size: 60px;
line-height: 72px;
letter-spacing: -0.02em;
margin: 0 0 24px 0;
}
.hero-content p {
font-size: 20px;
line-height: 30px;
/* tighter gap so the CTA sits a bit higher, closer to the copy */
margin: 0 0 40px 0;
}
/* 2. Partners Section */
.partners-section {
background: #FFFFFF;
padding: 56px 0;
overflow: hidden;
}
.partners-title {
text-align: center;
color: #667085;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
margin: 0 0 32px;
}
/* Auto-scrolling marquee: two identical groups, translateX(-50%) loops seamlessly */
.marquee {
overflow: hidden;
-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.marquee-track {
display: flex;
width: max-content;
animation: partners-marquee 45s linear infinite;
}
.marquee:hover .marquee-track {
animation-play-state: paused;
}
.marquee-group {
display: flex;
align-items: center;
gap: 72px;
padding-right: 72px;
flex: 0 0 auto;
}
.marquee-group img {
height: 52px;
width: auto;
object-fit: contain;
-webkit-user-drag: none;
user-select: none;
}
/* Spletni Mojster is a very wide wordmark — cap its width so it doesn't dominate */
.marquee-group img[src*="mojster"] {
height: auto;
max-width: 200px;
}
@keyframes partners-marquee {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
.marquee-track { animation: none; }
}
/* 3. Meet the Team Section */
.meet-the-team-section {
display: flex;
justify-content: center;
align-items: center;
padding: 128px 0;
gap: 40px;
background: #FFFFFF;
}
.video-container {
position: relative;
width: 619px;
height: 360px;
}
.video-thumbnail {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 16px;
}
.video-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(127.76deg, rgba(19, 49, 60, 0.92) -13.16%, rgba(39, 77, 90, 0.08) 98.5%);
border-radius: 16px;
}
.team-content {
width: 619px;
}
.team-content h2 {
font-size: 36px;
font-weight: 600;
line-height: 44px;
letter-spacing: -0.02em;
color: #101828;
margin: 0 0 20px 0;
}
.team-content p {
font-size: 20px;
line-height: 30px;
color: #667085;
margin: 0 0 56px 0;
}
/* 4. Activities Section */
.activities-section {
padding: 112px 80px;
background: #F9FAFB;
}
.activities-header {
text-align: center;
margin-bottom: 64px;
}
.activities-eyebrow {
display: inline-block;
color: #2D738C;
font-weight: 700;
font-size: 14px;
letter-spacing: 0.06em;
text-transform: uppercase;
margin-bottom: 12px;
}
.activities-header h2 {
font-size: 36px;
font-weight: 600;
line-height: 44px;
letter-spacing: -0.02em;
color: #101828;
margin-bottom: 16px;
}
.activities-header p {
font-size: 19px;
line-height: 29px;
color: #667085;
max-width: 720px;
margin: 0 auto;
}
.activities-content {
display: grid;
grid-template-columns: 340px 1fr;
gap: 56px;
max-width: 1232px;
margin: 0 auto;
align-items: start;
}
.activities-nav {
display: flex;
flex-direction: column;
gap: 12px;
}
/* Tablist wrapper — holds only the tabs (the CTA sits outside it so the
role="tablist" contains only role="tab" children, per ARIA). */
.activities-tabs {
display: flex;
flex-direction: column;
gap: 12px;
}
/* Tab buttons — card style with icon + active highlight */
.activity-tab {
display: flex;
align-items: center;
gap: 16px;
width: 100%;
text-align: left;
background: transparent;
border: 1px solid transparent;
border-radius: 14px;
padding: 16px 18px;
cursor: pointer;
font-family: inherit;
color: #475467;
transition: background 0.18s ease, border-color 0.18s ease,
box-shadow 0.18s ease, transform 0.18s ease;
}
.activity-tab:hover {
background: #FFFFFF;
border-color: #EAECF0;
transform: translateX(2px);
}
.activity-tab.active {
background: #FFFFFF;
border-color: #EAECF0;
box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}
.activity-tab-ico {
flex: 0 0 auto;
width: 44px;
height: 44px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
color: #2D738C;
background: #E7F0F3;
transition: background 0.18s ease, color 0.18s ease;
}
.activity-tab.active .activity-tab-ico {
background: #2D738C;
color: #FFFFFF;
}
.activity-tab-label {
font-size: 17px;
font-weight: 600;
line-height: 22px;
}
.activity-tab.active .activity-tab-label {
color: #101828;
}
.activities-cta {
margin-top: 20px;
align-self: flex-start;
}
/* Panels */
.activities-panels {
position: relative;
}
.activity-panel[hidden] {
display: none;
}
.activity-panel.active {
animation: activity-fade 0.35s ease;
}
@keyframes activity-fade {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: none; }
}
.activity-panel p {
font-size: 19px;
line-height: 30px;
color: #475467;
margin: 0 0 28px;
}
.activity-panel-media {
border-radius: 20px;
overflow: hidden;
box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
}
.activity-panel-media img {
width: 100%;
height: 420px;
object-fit: cover;
display: block;
transition: transform 0.5s ease;
}
.activity-panel-media:hover img {
transform: scale(1.04);
}
/* 5. Latest News Section */
.latest-news-section {
padding: 128px 0;
background: #2D738C;
text-align: center;
}
.news-header {
margin-bottom: 64px;
}
.news-header h2 {
font-size: 36px;
font-weight: 600;
line-height: 44px;
letter-spacing: -0.02em;
color: #FFFFFF;
margin-bottom: 20px;
}
.news-header p {
font-size: 20px;
line-height: 30px;
color: #FFFFFF;
max-width: 768px;
margin: 0 auto;
}
.news-articles {
display: grid;
grid-template-columns: repeat(3, 1fr);
justify-content: center;
gap: 32px;
max-width: 1264px;
margin: 0 auto 64px;
}
/* Tablet/small-laptop: 2-up instead of three cramped cards */
@media (max-width: 1024px) {
.news-articles { grid-template-columns: repeat(2, 1fr); max-width: 840px; }
}
/* 6. Testimonials Section */
.testimonials-section {
padding: 128px 80px;
display: flex;
justify-content: center;
align-items: center;
gap: 24px;
}
.testimonials-intro {
width: 411px;
flex-shrink: 0;
}
.testimonials-intro h2 {
font-size: 36px;
font-weight: 600;
line-height: 44px;
letter-spacing: -0.02em;
color: #101828;
margin-bottom: 24px;
}
.testimonials-intro p {
font-size: 20px;
line-height: 30px;
color: #667085;
}
.testimonials-columns {
display: flex;
gap: 24px;
width: 846px;
height: 800px;
overflow-y: auto; /* was scroll — no permanent scrollbar gutter when content fits */
padding-right: 15px;
}
.testimonials-columns::-webkit-scrollbar {
width: 5px;
}
.testimonials-columns::-webkit-scrollbar-thumb {
background: #D0D5DD;
border-radius: 10px;
}
.testimonial-column {
display: flex;
flex-direction: column;
gap: 48px;
width: 411px;
}
.column-offset {
margin-top: 80px;
}
/* 7. Become Part Section */
/* ==========================================================================
Join CTA — "Find your people" band (mirrors member hero, blue/white palette)
========================================================================== */
.join-cta {
position: relative;
max-width: 1200px;
margin: 0 auto;
padding: 96px 24px;
display: grid;
grid-template-columns: 1.05fr 0.95fr;
gap: 48px;
align-items: center;
}
/* Full-bleed soft-blue gradient band behind the centred content */
.join-cta::before {
content: '';
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 100vw;
transform: translateX(-50%);
background: linear-gradient(115deg, #CFE3EA 0%, #E4EFF3 45%, #F5FAFC 100%);
z-index: -1;
}
.join-cta-eyebrow {
display: inline-block;
color: #2D738C;
font-weight: 700;
font-size: 14px;
letter-spacing: 0.06em;
text-transform: uppercase;
margin-bottom: 14px;
}
.join-cta-text h2 {
font-size: 46px;
line-height: 1.06;
letter-spacing: -0.02em;
color: #101828;
margin: 0 0 18px;
}
.join-cta-lead {
font-size: 19px;
line-height: 30px;
color: #475467;
margin: 0 0 28px;
max-width: 520px;
}
.join-cta-actions {
display: flex;
gap: 14px;
flex-wrap: wrap;
align-items: center;
}
/* Normalise both button sizes so they align cleanly */
.join-cta-actions .btn {
padding: 14px 28px;
font-size: 16px;
line-height: 24px;
border-radius: 10px;
}
.join-cta-collage {
position: relative;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
gap: 16px;
height: 460px;
}
.join-cta-photo {
border-radius: 18px;
overflow: hidden;
box-shadow: 0 16px 32px rgba(16, 24, 40, 0.12);
}
.join-cta-photo img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.5s ease;
}
.join-cta-photo:hover img {
transform: scale(1.05);
}
.join-cta-photo--1 {
grid-row: 1 / span 2;
}
/* 8. FAQ Section */
.faq-section {
padding: 128px 0;
text-align: center;
}
.faq-header {
margin-bottom: 64px;
}
.faq-header h2 {
font-size: 36px;
font-weight: 600;
line-height: 44px;
letter-spacing: -0.02em;
color: #101828;
margin-bottom: 20px;
}
.faq-header p {
font-size: 20px;
line-height: 30px;
color: #667085;
max-width: 768px;
margin: 0 auto;
}
.faq-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 64px 32px;
max-width: 1232px;
margin: 0 auto 64px;
text-align: left;
}
/* Tablet/small-laptop: 2 columns before collapsing to 1 on phones */
@media (max-width: 1024px) {
.faq-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
}
.faq-item {
display: flex;
flex-direction: column;
gap: 20px;
}
.faq-icon-container {
width: 48px;
height: 48px;
background: rgba(39, 77, 90, 0.08);
border-radius: 24px;
display: flex;
justify-content: center;
align-items: center;
color: #2D738C;
font-size: 22px;
}
.faq-item h3 {
font-size: 20px;
font-weight: 600;
color: #101828;
margin: 0;
}
.faq-item p {
font-size: 16px;
line-height: 24px;
color: #667085;
margin: 0;
}
.faq-footer {
max-width: 1232px;
margin: 0 auto;
padding: 40px 32px;
background: #F9FAFB;
border-radius: 16px;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.faq-footer h3 {
font-size: 20px;
font-weight: 500;
color: #101828;
margin: 16px 0 0 0;
}
.faq-footer p {
font-size: 18px;
color: #667085;
margin: 0 0 32px 0;
}
.avatar-group {
display: flex;
position: relative;
width: 120px;
height: 56px;
}
.avatar {
width: 48px;
height: 48px;
border-radius: 50%;
border: 1.5px solid #FFFFFF;
position: absolute;
top: 8px;
object-fit: cover;
}
.avatar:nth-child(1) { left: 0; z-index: 3;}
.avatar:nth-child(2) { left: 50%; transform: translateX(-50%); top:0; z-index: 2;}
.avatar:nth-child(3) { right: 0; z-index: 1;}
.avatar.large {
width: 56px;
height: 56px;
}
/* ==========================================================================
9. Mobile Home Page Styles
========================================================================== */
@media (max-width: 768px) {
/* Mobile Hero Section */
.hero-section {
height: 600px;
margin-top: 0;
align-items: flex-start;
}
.hero-background {
background: url('../../images/HeroSection-img1.webp') no-repeat center center/cover; /* POPRAVLJENO */
}
.hero-content {
padding: 64px 24px;
width: 100%;
box-sizing: border-box;
}
.hero-content h1 {
font-size: 40px;
line-height: 48px;
letter-spacing: -0.03em;
}
.hero-content p {
font-size: 16px;
line-height: 24px;
margin-bottom: 64px;
}
.hero-content .badge-group {
border-radius: 37px;
}
/* Mobile Partners Section */
.partners-section {
padding: 40px 0;
}
.partners-title {
padding: 0 24px;
}
.marquee-group {
gap: 48px;
padding-right: 48px;
}
.marquee-group img {
height: 40px;
}
.marquee-group img[src*="mojster"] {
height: auto;
max-width: 150px;
}
.marquee-track {
animation-duration: 30s;
}
/* Mobile Meet the Team Section */
.meet-the-team-section {
flex-direction: column;
padding: 64px 24px;
gap: 40px;
}
.video-container, .team-content {
width: 100%;
max-width: 327px;
}
.video-container {
height: 190px;
}
.team-content h2 {
font-size: 32px;
line-height: 40px;
text-align: center;
}
.team-content p {
font-size: 16px;
line-height: 24px;
text-align: center;
margin-bottom: 32px;
}
.team-content .btn-secondary {
margin: 0 auto;
display: block;
width: 124px;
height: 44px;
}
/* Mobile Activities Section */
.activities-section {
padding: 64px 0;
}
.activities-header {
padding: 0 24px;
margin-bottom: 40px;
}
.activities-header h2 {
font-size: 32px;
line-height: 40px;
}
.activities-header p {
font-size: 16px;
line-height: 24px;
}
.activities-content {
grid-template-columns: 1fr;
gap: 28px;
padding: 0 24px;
}
.activities-nav {
width: 100%;
gap: 10px;
}
.activities-tabs {
gap: 10px;
}
.activity-tab {
padding: 14px 16px;
gap: 14px;
}
.activity-tab-ico {
width: 40px;
height: 40px;
font-size: 16px;
}
.activity-tab-label {
font-size: 16px;
}
.activities-cta {
width: 100%;
text-align: center;
margin-top: 8px;
}
.activity-panel p {
font-size: 16px;
line-height: 25px;
}
.activity-panel-media img {
height: 300px;
}
.activity-panel-media {
border-radius: 16px;
}
/* Mobile Latest News Section */
.latest-news-section {
padding: 64px 24px;
}
.news-header, .news-articles {
margin-bottom: 48px;
}
.news-header h2 {
font-size: 32px;
line-height: 40px;
}
.news-header p {
font-size: 16px;
line-height: 24px;
}
.news-articles {
grid-template-columns: 1fr;
justify-items: center;
gap: 48px;
}
/* Mobile Testimonials Section */
.testimonials-section {
flex-direction: column;
padding: 64px 0;
align-items: center;
gap: 32px;
}
.testimonials-intro {
width: 100%;
padding: 0 24px;
text-align: center;
box-sizing: border-box;
}
.testimonials-intro h2 {
font-size: 32px;
line-height: 40px;
}
.testimonials-intro p {
font-size: 16px;
line-height: 24px;
}
.testimonials-columns {
display: flex;
flex-direction: row;
width: 100%;
height: auto;
overflow-x: auto;
overflow-y: hidden;
padding: 0 24px;
box-sizing: border-box;
scroll-snap-type: x mandatory;
}
.testimonials-columns::-webkit-scrollbar {
display: none;
}
.testimonial-column {
display: contents;
}
.column-offset {
margin-top: 0;
}
/* Mobile Join CTA */
.join-cta {
grid-template-columns: 1fr;
padding: 64px 20px;
gap: 36px;
}
.join-cta-text h2 {
font-size: 34px;
}
.join-cta-lead {
font-size: 17px;
line-height: 27px;
}
.join-cta-actions {
flex-direction: column;
align-items: stretch;
}
.join-cta-actions .btn {
width: 100%;
}
.join-cta-collage {
height: 320px;
}
/* Mobile FAQ Section */
.faq-section {
padding: 64px 16px;
}
.faq-header {
margin-bottom: 48px;
}
.faq-header h2 {
font-size: 32px;
line-height: 40px;
}
.faq-header p {
font-size: 18px;
line-height: 28px;
}
.faq-grid {
grid-template-columns: 1fr;
gap: 40px;
padding: 0 8px;
}
.faq-item {
align-items: center;
}
.faq-item h3, .faq-item p {
text-align: center;
}
.faq-footer {
width: 100%;
box-sizing: border-box;
padding: 32px 20px;
}
}