/* ============================================
   Mindful Consulting Giebelhaus
   Premium Swiss Consulting — Visual System
   ============================================ */

:root {
    --ink: #194077;
    --ink-light: #2a5a9e;
    --ink-glow: rgba(25, 64, 119, 0.12);
    --slate: #666666;
    --charcoal: #1d1d1f;
    --smoke: #515154;
    --mist: #86868b;
    --cloud: #f5f5f7;
    --snow: #ffffff;
    --hero-start: #0d1b2e;
    --hero-mid: #132d4f;
    --hero-end: #194077;
    --accent: #c9a84c;
    --accent-muted: rgba(201, 168, 76, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    --shadow-lift: 0 4px 12px rgba(0,0,0,0.08), 0 20px 40px rgba(0,0,0,0.12);
    --transition: 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); color: var(--charcoal); background: var(--snow); font-size: 17px; line-height: 1.7; overflow-x: hidden; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================
   Typography
   ============================================ */

.section-title {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--charcoal);
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 18px;
    color: var(--mist);
    font-weight: 400;
    margin-bottom: 64px;
    max-width: 540px;
    line-height: 1.6;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 16px;
    padding: 6px 14px;
    background: var(--ink-glow);
    border-radius: 6px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.4s, box-shadow 0.4s;
    background: transparent;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo img {
    height: 32px;
    display: block;
    transition: var(--transition);
}

/* Invert logo on dark hero, revert on scroll */
.nav:not(.scrolled) .nav-logo img {
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
    letter-spacing: 0.01em;
}

.nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.85); }
.nav:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav.scrolled .nav-links a { color: var(--charcoal); }
.nav.scrolled .nav-links a:hover { color: var(--ink); }

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-left: 12px;
    padding-left: 24px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.nav.scrolled .lang-switch { border-left-color: rgba(0,0,0,0.1); }

.lang-active {
    font-weight: 700;
}

.nav:not(.scrolled) .lang-active { color: #fff; }
.nav.scrolled .lang-active { color: var(--ink); }

.lang-divider { color: rgba(255,255,255,0.3); }
.nav.scrolled .lang-divider { color: #d2d2d7; }

.lang-link {
    text-decoration: none;
    transition: color var(--transition);
}

.nav:not(.scrolled) .lang-link { color: rgba(255,255,255,0.5); }
.nav:not(.scrolled) .lang-link:hover { color: #fff; }
.nav.scrolled .lang-link { color: var(--mist); }
.nav.scrolled .lang-link:hover { color: var(--ink); }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    transition: var(--transition);
}

.nav:not(.scrolled) .nav-toggle span { background: #fff; }
.nav.scrolled .nav-toggle span { background: var(--charcoal); }

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   Hero — Dark, cinematic, impactful
   ============================================ */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(165deg, var(--hero-start) 0%, var(--hero-mid) 40%, var(--hero-end) 100%);
    padding: 140px 28px 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(25, 64, 119, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-title {
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 28px;
}

.hero-subtitle {
    font-size: clamp(17px, 2.2vw, 20px);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 44px;
    line-height: 1.6;
}

.hero-trust {
    margin-top: 28px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 980px;
    padding: 14px 32px;
    letter-spacing: 0.01em;
}

.btn-hero {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.btn-primary {
    background: var(--ink);
    color: #fff;
}

.btn-primary:hover {
    background: var(--ink-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(25, 64, 119, 0.3);
}

.btn-primary:active { transform: translateY(0); }

.btn-full {
    width: 100%;
    padding: 16px 28px;
    font-size: 16px;
}

/* ============================================
   Services
   ============================================ */

.services {
    padding: 140px 0;
    background: var(--snow);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-card {
    background: var(--cloud);
    border-radius: var(--radius);
    padding: 36px 28px 32px;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.service-card:hover {
    background: var(--snow);
    border-color: rgba(0,0,0,0.06);
    box-shadow: var(--shadow-lift);
    transform: translateY(-6px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 40px;
    height: 40px;
    color: var(--ink);
    margin-bottom: 20px;
    padding: 8px;
    background: var(--ink-glow);
    border-radius: var(--radius-sm);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 14px;
    color: var(--mist);
    line-height: 1.55;
}

/* ============================================
   Engagement Models
   ============================================ */

.engagement {
    padding: 0 0 140px;
    background: var(--snow);
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.engagement-card {
    text-align: center;
    padding: 52px 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.engagement-card:hover {
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink);
}

.engagement-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.engagement-card p {
    font-size: 15px;
    color: var(--mist);
    line-height: 1.55;
}

/* ============================================
   About
   ============================================ */

.about {
    padding: 140px 0;
    background: var(--cloud);
    position: relative;
}

.about-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 80px;
    align-items: start;
}

.about-photo {
    position: relative;
}

.about-photo::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    z-index: 0;
    opacity: 0.15;
}

.about-photo img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 4 / 5;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lift);
}

.about-content { max-width: 640px; }

.about-text {
    font-size: 18px;
    color: var(--smoke);
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-person {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.about-person-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.about-person-info strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--charcoal);
}

.about-person-info span {
    font-size: 15px;
    color: var(--mist);
}

.about-credentials {
    font-size: 12px !important;
    letter-spacing: 0.04em;
    color: var(--ink) !important;
    font-weight: 600 !important;
    margin-top: 6px;
}

.about-location { margin-top: 4px; }

.about-team {
    margin-top: 28px;
    font-size: 15px;
    color: var(--smoke);
    padding: 20px 24px;
    background: var(--snow);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--ink);
    line-height: 1.6;
}

/* ============================================
   Contact
   ============================================ */

.contact {
    padding: 140px 0;
    background: var(--snow);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.form-group { margin-bottom: 14px; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font);
    font-size: 16px;
    color: var(--charcoal);
    background: var(--cloud);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--mist); }

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ink);
    background: var(--snow);
    box-shadow: 0 0 0 3px var(--ink-glow);
}

.form-status {
    margin-top: 16px;
    font-size: 15px;
    min-height: 24px;
}

.form-status.success { color: #1b7340; }
.form-status.error { color: #c4392d; }

.contact-info { padding-top: 12px; }
.contact-info-item { margin-bottom: 36px; }

.contact-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 8px;
}

.contact-info-item a,
.contact-info-item address {
    font-size: 17px;
    font-style: normal;
    color: var(--charcoal);
    text-decoration: none;
    line-height: 1.6;
    transition: color var(--transition);
}

.contact-info-item a:hover { color: var(--ink); }

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 48px 0;
    background: var(--hero-start);
    color: rgba(255,255,255,0.5);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo img {
    height: 24px;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.4;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

/* ============================================
   Animations
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-delay-1 { transition-delay: 0.15s; }
.fade-delay-2 { transition-delay: 0.3s; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 960px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-layout { grid-template-columns: 280px 1fr; gap: 48px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: 0; bottom: 0; width: 300px;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 28px;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
        box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    }
    .nav-links.open { transform: translateX(0); }
    /* Force dark text in mobile menu */
    .nav-links a { color: var(--charcoal) !important; font-size: 20px; font-weight: 600; }
    .nav-links a:hover { color: var(--ink) !important; }
    .lang-switch { margin-left: 0; padding-left: 0; border-left: none; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.08); }
    .lang-active { color: var(--ink) !important; }
    .lang-divider { color: #d2d2d7 !important; }
    .lang-link { color: var(--mist) !important; }

    .hero { padding: 140px 28px 80px; min-height: auto; }
    .hero-title { font-size: 38px; }
    .services { padding: 80px 0; }
    .engagement { padding: 0 0 80px; }
    .about { padding: 80px 0; }
    .contact { padding: 80px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .engagement-grid { grid-template-columns: 1fr; }
    .about-layout { grid-template-columns: 1fr; gap: 36px; }
    .about-photo { max-width: 300px; }
    .about-photo::after { bottom: -8px; right: -8px; }
    .section-subtitle { margin-bottom: 40px; }
    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .service-card { padding: 28px 24px 24px; }
}
