/* ============================================
   HALLEHAUS - Main Stylesheet
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #00BA58;
    --green-glow: rgba(0, 186, 88, 0.35);
    --dark: #1a1a1a;
    --dark-card: #222222;
    --dark-border: #2a2a2a;
    --text: #ffffff;
    --text-muted: #999999;
    --bg: #111111;
    --bg-section: #0d0d0d;
    --font: 'Montserrat', 'Gotham Pro', sans-serif;
    --header-height: 80px;
}

[data-theme="light"] {
    --dark: #f5f5f5;
    --dark-card: #e8e8e8;
    --dark-border: #d0d0d0;
    --text: #1a1a1a;
    --text-muted: #666666;
    --bg: #ffffff;
    --bg-section: #f0f0f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h2 { font-size: 56px; font-weight: 300; line-height: 1.1; }
h2 strong { font-weight: 700; }
h4 { font-size: 22px; font-weight: 600; line-height: 1.3; }

.green-text { color: var(--green); }

.section-accent {
    width: 4px;
    height: 36px;
    background: var(--green);
    margin-bottom: 16px;
}

.section-title { margin-bottom: 40px; }

.section-link {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s;
}
.section-link:hover { color: var(--green); }
.section-link span { margin-left: 4px; }

/* ---------- Scroll Indicator (fixed left) ---------- */
.scroll-indicator {
    position: fixed;
    left: 24px;
    bottom: 40px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--green));
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-mouse-wheel {
    width: 3px;
    height: 7px;
    background: var(--green);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
}

.scroll-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* ---------- Theme Toggle (fixed right) ---------- */
.theme-toggle {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    cursor: pointer;
}

.toggle-track {
    width: 34px;
    height: 64px;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 17px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    backdrop-filter: blur(10px);
}

.toggle-icon {
    font-size: 13px;
    color: var(--text-muted);
    z-index: 1;
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    background: var(--green);
    border-radius: 50%;
    transition: top 0.3s ease;
}

[data-theme="light"] .toggle-thumb {
    top: calc(100% - 29px);
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: background 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(20px);
}

[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.92);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon rect {
    transition: fill 0.3s;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1.5px;
    color: var(--text);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link:hover { color: var(--green); }

.nav-arrow {
    font-size: 10px;
    margin-left: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--green);
    color: #fff;
}

.btn-primary:hover {
    background: #00a34e;
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- HERO (full viewport, stats bar inside at bottom) ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--header-height) 80px 50px 80px;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 14px;
    font-weight: 400;
}

.hero-title {
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 300;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-title strong {
    font-weight: 700;
    font-style: italic;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    width: fit-content;
}

.hero-cta:hover {
    color: var(--green);
    border-bottom-color: var(--green);
}

.hero-dots {
    display: flex;
    gap: 6px;
    margin-top: 32px;
}

.dot {
    width: 28px;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    transition: all 0.3s;
}

.dot.active {
    background: var(--green);
    width: 48px;
}

/* ---------- Stats Bar (inside hero, at the bottom) ---------- */
.stats-bar {
    position: relative;
    z-index: 2;
    display: flex;
    flex-shrink: 0;
}

/* Green glow at top-left corner of stats bar */
.stats-bar-glow {
    position: absolute;
    top: -40px;
    left: 0;
    width: 200px;
    height: 80px;
    background: radial-gradient(ellipse at bottom left, var(--green-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 3;
}

.stats-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--dark-border);
}

.stat-item {
    background: var(--dark);
    padding: 32px 36px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
}

.stat-plus {
    font-size: 48px;
    font-weight: 700;
    color: var(--green);
}

.stat-label {
    font-size: 16px;
    color: var(--text-muted);
    margin-left: 8px;
}

.offices-box {
    display: flex;
    align-items: stretch;
    background: var(--green);
    width: 380px;
    flex-shrink: 0;
}

.office {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    gap: 12px;
}

.office-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    align-self: stretch;
    margin: 16px 0;
}

.office-logo {
    display: block;
}

.office-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

/* ---------- About ---------- */
.about {
    padding: 120px 80px 0;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.about-image {
    position: relative;
    margin-top: 40px;
}

.about-image img {
    width: 140%;
    max-width: none;
    border-radius: 6px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

/* HALLEHAUS Marquee */
.hallehaus-marquee {
    margin-top: 80px;
    overflow: hidden;
    padding: 20px 0 40px;
}

.marquee-track {
    display: flex;
    gap: 80px;
    animation: marquee 20s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-size: clamp(80px, 10vw, 150px);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--dark-border);
    text-transform: uppercase;
    letter-spacing: 8px;
    white-space: nowrap;
    user-select: none;
}

[data-theme="light"] .marquee-track span {
    -webkit-text-stroke: 1px #ccc;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Services Carousel ---------- */
.services {
    padding: 100px 0 80px;
    background: var(--bg);
    overflow: hidden;
}

.services-header {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 80px;
}

.services-carousel {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    overflow: visible;
    position: relative;
}

.services-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.service-card {
    min-width: calc(34% - 14px);
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    pointer-events: none;
}

.service-title {
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}

.carousel-dot {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: var(--dark-border);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    width: 48px;
    background: var(--green);
}

/* ---------- Map ---------- */
.map-section {
    padding: 100px 80px 0;
    background: var(--bg-section);
}

.map-header {
    max-width: 1400px;
    margin: 0 auto 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.map-header .section-title {
    flex: 1;
    margin-bottom: 0;
}

.map-header .section-link {
    margin-top: 16px;
}

.map-container {
    width: 100%;
    height: 500px;
}

/* Leaflet dark theme */
.map-container .leaflet-tile {
    filter: invert(1) hue-rotate(180deg) brightness(0.8) contrast(1.2) saturate(0.3);
}

[data-theme="light"] .map-container .leaflet-tile {
    filter: none;
}

.map-container .leaflet-control-attribution {
    background: rgba(27, 27, 27, 0.8) !important;
    color: #666 !important;
    font-size: 10px;
}

.map-container .leaflet-control-attribution a {
    color: #888 !important;
}

.map-container .leaflet-control-zoom a {
    background: var(--dark) !important;
    color: var(--text) !important;
    border-color: var(--dark-border) !important;
}

/* Pulsing marker */
.pulse-marker {
    width: 20px;
    height: 20px;
    position: relative;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--green);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 10px var(--green-glow);
}

.pulse-ring {
    width: 30px;
    height: 30px;
    border: 2px solid var(--green);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* ---------- Projects ---------- */
.projects {
    padding: 100px 80px;
    background: var(--bg);
}

.projects-header {
    max-width: 1400px;
    margin: 0 auto 40px;
}

.projects-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    background: var(--dark-card);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-image {
    width: 100%;
    overflow: hidden;
}

.project-large .project-image {
    aspect-ratio: 16/10;
}

.project-small .project-image {
    aspect-ratio: 16/9;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.03);
}

.project-info {
    padding: 20px 24px;
}

.project-title {
    margin-bottom: 8px;
    font-size: 20px;
}

.project-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Asymmetric stagger */
.projects-grid .project-card:nth-child(2) { margin-top: 80px; }
.projects-grid .project-card:nth-child(3) { margin-top: -40px; }
.projects-grid .project-card:nth-child(4) { margin-top: 40px; }

.projects-footer {
    max-width: 1400px;
    margin: 40px auto 0;
    text-align: right;
}

/* ---------- Blog ---------- */
.blog {
    padding: 100px 80px;
    background: var(--bg-section);
}

.blog-header {
    max-width: 1400px;
    margin: 0 auto 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.blog-header .section-title {
    flex: 1;
    margin-bottom: 0;
}

.blog-header .section-link {
    margin-top: 16px;
}

.blog-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.blog-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.03);
}

.blog-date {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
}

.blog-title {
    padding: 18px 4px;
    font-size: 17px;
    font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
    position: relative;
    padding: 80px 80px 28px;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.footer-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.88);
}

[data-theme="light"] .footer-overlay {
    background: rgba(240, 240, 240, 0.92);
}

.footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--dark-border);
}

.footer-heading {
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 300;
    font-style: italic;
}

.footer-heading strong {
    font-weight: 700;
    color: var(--green);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-list a::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.3s;
}

.footer-list a:hover {
    color: var(--green);
}

.footer-list a:hover::before {
    background: var(--green);
    width: 28px;
}

/* Social column: no dashes before links */
.footer-col--social .footer-list a::before {
    display: none;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-top: 22px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- Animations / Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    h2 { font-size: 44px; }
    .header-inner { padding: 0 30px; }
    .nav { gap: 18px; }
    .nav-link { font-size: 13px; }
    .hero-content { padding-left: 40px; padding-right: 40px; }
    .about,
    .projects,
    .blog,
    .map-section,
    .footer { padding-left: 40px; padding-right: 40px; }
    .services-header,
    .services-carousel { padding-left: 40px; padding-right: 40px; }
    .offices-box { width: 280px; }
    .service-card { min-width: calc(50% - 10px); }
    .about-image img { width: 120%; }
}

@media (max-width: 768px) {
    h2 { font-size: 32px; }
    h4 { font-size: 18px; }

    .scroll-indicator { display: none; }
    .theme-toggle { right: 14px; top: auto; bottom: 20px; transform: none; }

    .nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 999;
    }

    .nav.open { display: flex; }
    .hamburger { display: flex; }

    .btn-primary {
        padding: 10px 16px;
        font-size: 12px;
    }

    .hero-content { padding: 80px 24px 30px; }
    .hero-title { font-size: 32px; }

    .stats-bar { flex-direction: column; }
    .offices-box { width: 100%; flex-direction: row; }

    .about { padding: 80px 24px 0; }
    .about-inner { grid-template-columns: 1fr; gap: 30px; }
    .about-image { margin-top: 0; }
    .about-image img { width: 100%; }

    .services { padding: 80px 0 60px; }
    .services-header,
    .services-carousel { padding-left: 24px; padding-right: 24px; }
    .service-card { min-width: 80%; }

    .map-section { padding: 80px 24px 0; }
    .map-container { height: 350px; }

    .projects { padding: 80px 24px; }
    .projects-grid { grid-template-columns: 1fr; }
    .projects-grid .project-card:nth-child(2),
    .projects-grid .project-card:nth-child(3),
    .projects-grid .project-card:nth-child(4) { margin-top: 0; }

    .blog { padding: 80px 24px; }
    .blog-grid { grid-template-columns: 1fr; }

    .footer { padding: 60px 24px 24px; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .header-inner { padding: 0 20px; }

    .stat-item { padding: 24px 20px; }
    .stat-number, .stat-plus { font-size: 36px; }
}
