/* =============================================
   SWISS PEAK ADVISOR — Stylesheet
   Gray-Blue Palette · Roboto · Elegant
   ============================================= */

/* ---------- RESET & VARIABLES ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core palette */
    --color-dark:       #0f1923;
    --color-navy:       #1a2a42;
    --color-steel:      #2c3e5a;
    --color-slate:      #4a6380;
    --color-mid:        #6b8299;
    --color-muted:      #8ba4be;
    --color-light:      #b8cde0;
    --color-ice:        #dce6f0;
    --color-snow:       #eef2f7;
    --color-white:      #ffffff;

    /* Accent */
    --color-accent:     #5b8fb9;
    --color-accent-hover: #4a7da6;

    /* Functional */
    --color-text:       #2c3e5a;
    --color-text-light: #6b8299;
    --color-bg:         #f5f7fa;
    --color-border:     #dce6f0;

    /* Typography */
    --font-family: 'Roboto', sans-serif;
    --fs-base: 16px;

    /* Spacing */
    --section-py: 120px;
    --container-max: 1200px;
    --container-px: 24px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration: 0.4s;
}

html {
    font-size: var(--fs-base);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul { list-style: none; }

/* ---------- CONTAINER ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(91, 143, 185, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-white);
}

.btn-full {
    width: 100%;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--duration) var(--ease);
}
.navbar.scrolled {
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.logo-sub {
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    position: relative;
    padding: 4px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--duration) var(--ease);
}
.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 25, 35, 0.82) 0%,
        rgba(26, 42, 66, 0.7) 50%,
        rgba(44, 62, 90, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 var(--container-px);
    animation: heroFadeIn 1.2s var(--ease) both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- SECTIONS COMMON ---------- */
.section {
    padding: var(--section-py) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.25;
    color: var(--color-navy);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---------- ABOUT ---------- */
.section-about {
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 42, 66, 0.15);
}
.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(91, 143, 185, 0.2);
    border-radius: 12px;
    pointer-events: none;
}
.about-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.about-image:hover img {
    transform: scale(1.03);
}

.about-lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-navy);
    line-height: 1.8;
    margin-bottom: 20px;
}
.about-text p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: center;
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--color-accent);
    line-height: 1;
}
.stat-suffix {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-accent);
}
.stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-top: 8px;
}

/* ---------- PARALLAX BANNER ---------- */
.parallax-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: -60px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 25, 35, 0.8);
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--container-px);
}
.parallax-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 24px;
    letter-spacing: 1px;
}
.parallax-content > p {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.9;
    color: rgba(255,255,255,0.75);
}

/* Trust Values */
.trust-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
    text-align: left;
}
.trust-item {
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    transition: all var(--duration) var(--ease);
}
.trust-item:hover {
    border-color: rgba(91, 143, 185, 0.4);
    background: rgba(255,255,255,0.06);
}
.trust-number {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 12px;
    display: block;
}
.trust-item h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
}
.trust-item p {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

/* ---------- SERVICES ---------- */
.section-services {
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-muted));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration) var(--ease);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(26, 42, 66, 0.12);
    border-color: transparent;
}
.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    margin-bottom: 24px;
}
.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-navy);
    margin-bottom: 14px;
}
.service-card p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.75;
}

/* ---------- CONTACT ---------- */
.section-contact {
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}
.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-snow);
    border-radius: 10px;
    color: var(--color-accent);
}
.contact-icon svg {
    width: 20px;
    height: 20px;
}
.contact-item h4 {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-navy);
    margin-bottom: 4px;
}
.contact-item p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-map {
    margin-top: 8px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-snow);
}

/* Form */
.contact-form {
    background: var(--color-snow);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-slate);
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    outline: none;
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(91, 143, 185, 0.12);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b8299' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    cursor: pointer;
}

.form-disclaimer {
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--color-mid);
    text-align: center;
    line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.6);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    margin-bottom: 16px;
}
.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
    max-width: 280px;
}

.footer-links-col h4 {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}
.footer-links-col li {
    margin-bottom: 10px;
}
.footer-links-col a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
}
.footer-links-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

.footer-legal {
    display: flex;
    gap: 24px;
}
.footer-legal a {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}
.footer-legal a:hover {
    color: rgba(255,255,255,0.6);
}

/* ---------- ANIMATIONS ---------- */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.services-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.services-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.services-grid [data-animate]:nth-child(4) { transition-delay: 0.3s; }
.services-grid [data-animate]:nth-child(5) { transition-delay: 0.4s; }
.services-grid [data-animate]:nth-child(6) { transition-delay: 0.5s; }

.trust-values .trust-item:nth-child(2) { transition-delay: 0.1s; }
.trust-values .trust-item:nth-child(3) { transition-delay: 0.2s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    :root {
        --section-py: 80px;
    }

    .about-grid {
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-values {
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 64px;
        --container-px: 20px;
    }

    /* Nav */
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-dark);
        flex-direction: column;
        padding: 100px 40px;
        gap: 28px;
        transition: right 0.4s var(--ease);
    }
    .nav-links.open {
        right: 0;
    }
    .nav-link {
        font-size: 0.9rem;
    }

    /* Hero */
    .hero {
        min-height: 600px;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        padding: 14px 32px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image img {
        height: 300px;
    }
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Trust */
    .trust-values {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 28px 24px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .about-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .stat {
        padding: 16px 0;
    }
    .stat:not(:last-child) {
        border-bottom: 1px solid var(--color-border);
    }
}
