/* ===== CSS Variables ===== */
:root {
    --primary-color: #2d5016;
    --primary-dark: #1a3009;
    --primary-light: #4a7c2a;
    --secondary-color: #8b6f47;
    --accent-color: #c9a961;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #888888;
    --bg-light: #fafafa;
    --bg-dark: #111111;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    padding-left: max(60px, env(safe-area-inset-left));
    padding-right: max(60px, env(safe-area-inset-right));
}

ul {
    margin: 0 10px 10px 30px;
}

strong {
    font-weight: bold;
}

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

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 4rem;
    font-weight: 200;
}

h2 {
    font-size: 2.8rem;
    font-weight: 300;
}

h3 {
    font-size: 1.4rem;
    font-weight: 400;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 300;
}

.lead {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-gray);
}

/* ===== Focus Indicators for Accessibility ===== */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

/* Specific focus styles for different elements */
.nav-menu a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

.filter-btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.service-card:focus-visible,
.gallery-item:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: -3px;
}

.mobile-toggle:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 35px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--text-dark);
    font-size: 0.85rem;
    font-weight: 400;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--text-dark);
    color: var(--text-light);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    border-color: var(--primary-color);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
    z-index: 2000;
    transition: all 0.4s ease;
}

body.menu-open .navbar {
    height: 100%;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 0;
    transition: all 0.4s ease;
}

.nav-right {
    display: flex;
    align-items: center;
}

.navbar.scrolled .nav-wrapper {
    padding: 10px 0;
}

.logo {
    position: relative;
    z-index: 1002;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.logo img {
    height: 130px;
    width: auto;
    transition: all 0.4s ease;
    filter: brightness(0) invert(1);
    position: relative;
}

.navbar.scrolled .logo img {
    height: 55px;
    filter: brightness(1) invert(0);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 300;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.5px;
}

.navbar.scrolled .nav-menu a {
    color: var(--text-dark);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-light);
    transition: var(--transition);
}

.navbar.scrolled .nav-menu a::after {
    background: var(--text-dark);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Navigation Social Icons */
.nav-social {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 25px;
}

.nav-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    transition: var(--transition);
}

.navbar.scrolled .nav-social .social-link {
    background-color: var(--bg-light);
    color: var(--text-gray);
}

.nav-social .social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.nav-social .social-link svg {
    width: 18px;
    height: 18px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    left: 2px;
}

.mobile-toggle span:nth-child(1) {
    top: 0;
}

.mobile-toggle span:nth-child(2) {
    top: 10px;
}

.mobile-toggle span:nth-child(3) {
    top: 20px;
}

/* Hamburger to X animation */
.mobile-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

.navbar.scrolled .mobile-toggle span {
    background-color: var(--text-dark);
}

/* When menu is open, always use light color for X */
.mobile-toggle.active span {
    background-color: var(--text-light);
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    color: var(--text-light);
    margin-top: 0;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.slider-dot.active {
    background-color: rgba(255, 255, 255, 0.9);
    width: 30px;
    border-radius: 5px;
}

.hero-content {
    z-index: 2;
    /*max-width: 700px;*/
    padding: 0 60px;
    margin-top: 180px;
}

.hero-title {
    font-size: 4.75rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
    font-weight: 200;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
    font-weight: 300;
    letter-spacing: 0;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 50px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-phone {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-light) !important;
    font-size: 1rem !important;
    padding: 16px 40px !important;
    font-weight: 500 !important;
}

.btn-phone::before {
    background: var(--primary-dark) !important;
}

/* ===== Section Styles ===== */
section {
    padding: 120px 0;
}

.section-light {
    background-color: var(--bg-white);
}

.section-dark {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.section-header {
    text-align: left;
    margin-bottom: 100px;
}

.section-label {
    display: inline-block;
    padding: 6px 20px;
    background-color: transparent;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.section-dark .section-label {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

.section-header h2 {
    margin-bottom: 30px;
}

.section-description {
    max-width: 700px;
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.9;
}

.section-dark .section-description {
    color: var(--text-gray);
}

/* ===== Team Hero Section ===== */
.team-hero {
    height: 70vh;
    min-height: 500px;
    /* Optimized: 16.6 MB → 524 KB WebP (96.8% smaller!) */
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url('assets/uploads/team/team.webp') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text-light);
    text-align: center;
}

.team-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 40px;
}

.team-hero-content h2 {
    font-size: 3.5rem;
    font-weight: 200;
    margin-bottom: 30px;
    color: var(--text-light);
    letter-spacing: -1px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.team-hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
}

/* ===== Parallax Section ===== */
.parallax-section {
    height: 70vh;
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    padding: 0 40px;
}

.parallax-content h2 {
    font-size: 3.5rem;
    font-weight: 200;
    margin-bottom: 30px;
    color: var(--text-light);
    letter-spacing: -1px;
}

.parallax-content p {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== About Section ===== */
.about-minimal {
    max-width: 1000px;
}

.about-intro h2 {
    max-width: 600px;
}

.about-intro .lead {
    max-width: 600px;
    margin-top: 30px;
    margin-bottom: 60px;
}

/* Stats Grid */
.about-stats-minimal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 200;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: var(--bg-white);
    overflow: hidden;
    transition: var(--transition);
    border: none;
    display: block;
    position: relative;
}

.service-card:hover {
    transform: scale(0.98);
}

.service-image {
    height: 500px;
    overflow: hidden;
    position: relative;
}

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

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

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay h3 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: var(--text-light);
}

.service-overlay p {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ===== Planning Section ===== */
.planning-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 100px;
    align-items: start;
}

.planning-step {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.step-number {
    font-size: 5rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1;
    min-width: 100px;
}

.step-content h3 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 300;
}

.planning-image img {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Machinery Section ===== */
.machinery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.machinery-item {
    text-align: left;
}

.machinery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.machinery-item:hover img {
    border-color: var(--text-dark);
    transform: translateY(-2px);
}

.machinery-item h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 300;
}

.machinery-item p {
    color: var(--text-gray);
}

/* ===== Gallery Section ===== */
.gallery-filters {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-btn {
    padding: 10px 25px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 400;
    color: var(--text-gray);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-dark .filter-btn {
    background-color: transparent;
    color: var(--text-gray);
    border-color: var(--border-color);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--text-dark);
    color: var(--text-light);
    border-color: var(--text-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 450px;
    transition: var(--transition);
    border: none;
}

.gallery-item:hover {
    transform: scale(0.98);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--text-light);
    padding: 35px;
    transform: translateY(0);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.gallery-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 300;
}

.gallery-item {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-item.hidden {
    display: none;
}

/* ===== Partners Section ===== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-logo {
    background-color: var(--bg-white);
    padding: 50px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    border: 1px solid var(--border-color);
}

.partner-logo:hover {
    border-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== Contact Section ===== */
.contact-fullwidth {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 120px 0;
    overflow: hidden;
}

.contact-fullwidth .container {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    padding-left: 20px;
}

.contact-map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contact-map-background #map {
    width: 100%;
    height: 100%;
    min-height: 80vh;
    filter: saturate(1) brightness(1);
}

/* Ensure Leaflet tiles load properly */
.contact-map-background .leaflet-container {
    height: 100%;
    min-height: 80vh;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 75%
    );
    z-index: 1;
}

.contact-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.98);
    padding: 40px 35px;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.contact-simple {
    max-width: 100%;
}

.contact-logo-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.contact-logo {
    height: 70px;
    width: auto;
    opacity: 0.9;
}

.contact-info-minimal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 35px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-gray);
}

.contact-detail p {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-dark);
    margin: 0;
}

.contact-detail a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-detail a:hover {
    color: var(--primary-color);
}

.contact-card .section-header {
    margin-bottom: 40px;
}

.contact-cta {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Custom Leaflet Marker Styling */
.leaflet-marker-icon {
    filter: hue-rotate(90deg) saturate(150%);
}

/* Custom Popup Styling */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(45, 80, 22, 0.2);
}

.leaflet-popup-content {
    margin: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.leaflet-popup-content h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 400;
}

.leaflet-popup-content p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.leaflet-popup-tip {
    box-shadow: 0 3px 14px rgba(45, 80, 22, 0.2);
}

/* ===== Service Hero (Subpages) ===== */
.service-hero {
    position: relative;
    height: 70vh;
    min-height: 550px;
    margin-top: 100px;
}

.service-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
}

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

.service-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    color: var(--text-light);
}

.service-hero h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    font-weight: 200;
    letter-spacing: -1px;
}

.back-link {
    display: inline-block;
    color: var(--text-light);
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
}

/* ===== Service Content (Subpages) ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 100px;
}

.content-main h2 {
    color: var(--text-dark);
    margin-top: 50px;
    margin-bottom: 25px;
    font-weight: 300;
}

.content-main h3 {
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 400;
}

.feature-list {
    margin-top: 50px;
    padding: 50px;
    background-color: var(--bg-light);
    border-left: 1px solid var(--text-dark);
}

.feature-list h3 {
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 300;
}

.feature-list ul {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 15px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 300;
}

.feature-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-dark);
    font-weight: 400;
}

/* ===== Sidebar ===== */
.content-sidebar {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.sidebar-card {
    background-color: var(--bg-light);
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.sidebar-card h3 {
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 300;
}

.benefit-list,
.material-list {
    list-style: none;
    padding: 0;
}

.benefit-list li,
.material-list li {
    padding: 12px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-gray);
    font-weight: 300;
}

.benefit-list li::before,
.material-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-dark);
    font-weight: 400;
}

.sidebar-cta {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 50px;
    text-align: center;
    border: 1px solid var(--text-dark);
}

.sidebar-cta h3 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 300;
}

.sidebar-cta p {
    margin-bottom: 30px;
    opacity: 0.8;
    font-weight: 300;
}

.sidebar-cta .btn {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-color: var(--text-light);
}

.sidebar-cta .btn::before {
    background-color: var(--primary-color);
}

.sidebar-cta .btn:hover {
    border-color: var(--primary-color);
}

/* ===== Service Gallery (Subpages) ===== */
.service-gallery {
    padding: 80px 0;
}

.service-gallery h2 {
    margin-bottom: 50px;
    text-align: center;
}

/* ===== Related Services ===== */
.related-services {
    padding: 100px 0;
}

.related-services h2 {
    text-align: left;
    margin-bottom: 60px;
    color: var(--text-dark);
    font-weight: 300;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.related-card {
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.related-card:hover {
    border-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.related-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.related-card h3 {
    padding: 30px;
    color: var(--text-dark);
    text-align: left;
    font-weight: 300;
}

/* ===== About Details Section ===== */
.about-details {
    margin-top: 80px;
}

.about-text-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.about-text-block h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.about-text-block p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===== Maschinenpark Section ===== */
.maschinenpark .section-description {
    max-width: 900px;
}

/* ===== Materialien Section ===== */
.materialien-content {
    max-width: 1100px;
}

.materialien-fragen {
    margin-bottom: 40px;
}

.materialien-intro {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.materialien-beratung p {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.9;
}

/* ===== Planung Section ===== */
.planung-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.planung-block h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.planung-block p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===== Scrollytelling Section ===== */
.scrollytelling-section {
    background-color: var(--bg-light);
    padding: 120px 0 0 0;
    position: relative;
}

.scrollytelling-container {
    display: flex;
    position: relative;
    width: 100%;
}

/* Sticky Visual */
.scrolly-sticky {
    position: sticky;
    top: 0;
    left: 0;
    width: 45%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    overflow: hidden;
    align-self: flex-start;
    z-index: 1001;
}

.scrolly-visual {
    position: relative;
    width: 100%;
    height: 100%;
}

.scrolly-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.scrolly-image.active {
    opacity: 1;
    z-index: 1;
}

.scrolly-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scrolling Content */
.scrolly-content {
    width: 55%;
    background-color: var(--bg-white);
    padding: 90px 80px 120px 80px;
}

.scrolly-block {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    opacity: 0.3;
    transition: opacity 0.6s ease;
}

.scrolly-block:first-child {
    justify-content: flex-start;
    padding-top: 0;
}

.scrolly-block.active {
    opacity: 1;
}

/* Partner block - normal scrolling */
.scrolly-block[data-section="partner"] {
    min-height: auto;
    position: relative;
    opacity: 1 !important;
    padding: 80px 0 40px 0;
}

.scrolly-block[data-section="partner"] .scrolly-text {
    position: relative;
}

.scrolly-block[data-section="partner"] .horizontal-scroll-wrapper {
    position: relative;
}

.scrolly-block .section-label {
    margin-bottom: 25px;
}

.scrolly-block h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.scrolly-text {
    max-width: 600px;
}

.scrolly-text p {
    margin-bottom: 25px;
}

.scrolly-text .lead {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.scrolly-text .materialien-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.scrolly-partners {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.partner-list {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ===== Partner Logos Grid ===== */
.horizontal-scroll-wrapper {
    margin-top: 40px;
    width: 100%;
}

.horizontal-scroll-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.partner-logo-item {
    width: 100%;
    height: 120px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: var(--transition);
}

.partner-logo-item:hover {
    border-color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.footer-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-gray);
}

.footer-right {
    display: flex;
    gap: 40px;
}

.footer-right a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: var(--transition);
}

.footer-right a:hover {
    color: var(--text-dark);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Touch Device Optimization ===== */
@media (hover: none) {
    /* Service Cards always show overlay on touch devices */
    .service-overlay {
        opacity: 1 !important;
        position: relative;
        background: white;
        color: var(--text-dark);
        padding: 30px;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    }

    .service-overlay h3 {
        color: var(--text-dark);
    }

    .service-overlay p {
        color: var(--text-gray);
    }

    .service-image {
        height: 350px;
    }

    /* Gallery items always show overlay on touch devices */
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
        padding-left: max(40px, env(safe-area-inset-left));
        padding-right: max(40px, env(safe-area-inset-right));
    }

    .content-grid,
    .planning-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-card {
        padding: 50px 40px;
        max-width: 550px;
    }

    .about-stats-minimal {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .about-stats-minimal .stat-number {
        font-size: 2.5rem;
    }

    .contact-info-minimal {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    .about-text-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .planung-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .scrollytelling-section {
        padding: 80px 0 0 0;
    }

    .scrollytelling-container {
        flex-direction: column;
    }

    .scrolly-sticky {
        position: relative;
        width: 100%;
        height: 60vh;
    }

    .scrolly-content {
        width: 100%;
        padding: 40px 50px 80px 50px;
    }

    .scrolly-block {
        min-height: auto;
        padding: 60px 0;
    }

    .scrolly-block:first-child {
        padding-top: 20px;
    }

    .scrolly-block[data-section="partner"] {
        min-height: auto;
        opacity: 1 !important;
        padding: 60px 0 30px 0;
    }

    .horizontal-scroll-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .content-sidebar {
        position: static;
    }

    .section-header {
        margin-bottom: 80px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        justify-content: center;
        text-align: center;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-phone,
    .btn-primary {
        width: 100%;
        text-align: center;
    }

    /* Hide team-hero on mobile to avoid duplicate with scrollytelling */
    .team-hero {
        display: none;
    }

    .parallax-section {
        background-attachment: scroll;
        height: 60vh;
        min-height: 400px;
    }

    .parallax-content h2 {
        font-size: 2.5rem;
    }

    .parallax-content p {
        font-size: 1.1rem;
    }

    .service-hero h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 30px;
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    .mobile-toggle {
        display: flex;
    }

    /* Fullscreen Overlay Menu */
    .nav-menu {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: var(--primary-color);
        padding: 0;
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    /* Position close button to the right when menu is open */
    .mobile-toggle {
        position: fixed;
        top: 35px;
        right: 30px;
    }

    .mobile-toggle.active {
        position: fixed;
        top: 35px;
        right: 30px;
    }

    .navbar.scrolled .nav-menu {
        inset: 0;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.4s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.25s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.3s;
    }

    .nav-menu a {
        color: var(--text-light) !important;
        font-size: 2rem;
        font-weight: 300;
        letter-spacing: 2px;
        padding: 20px 40px;
        display: block;
        position: relative;
    }

    .navbar.scrolled .nav-menu a {
        color: var(--text-light) !important;
    }

    .nav-menu a::after {
        background: var(--text-light);
        height: 2px;
        bottom: 15px;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    /* Show nav social at bottom of mobile menu */
    .nav-social {
        position: fixed;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 20px;
        margin-left: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s ease 0.3s;
        z-index: 1001;
    }

    body.menu-open .nav-social {
        opacity: 1;
        visibility: visible;
    }

    .nav-social .social-link {
        width: 44px;
        height: 44px;
        background-color: rgba(255, 255, 255, 0.15);
        color: var(--text-light);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .services-grid,
    .gallery-grid,
    .partners-grid,
    .machinery-grid,
    .related-grid,
    .partner-grid {
        grid-template-columns: 1fr;
    }

    .contact-fullwidth {
        min-height: auto;
        padding: 80px 0;
    }

    .contact-card {
        padding: 40px 25px;
        max-width: 100%;
        margin: 0 20px;
    }

    .contact-overlay {
        background: rgba(255, 255, 255, 0.92);
    }

    .about-stats-minimal {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        text-align: center;
    }

    .about-stats-minimal .stat-item {
        text-align: center;
    }

    .about-stats-minimal .stat-number {
        font-size: 2rem;
    }

    .about-stats-minimal .stat-label {
        font-size: 0.65rem;
    }

    .contact-info-minimal {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text-grid,
    .planung-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .materialien-intro {
        font-size: 1.1rem;
    }

    .scrollytelling-section {
        padding: 60px 0 0 0;
    }

    .scrollytelling-container {
        flex-direction: column;
    }

    .scrolly-sticky {
        position: relative;
        width: 100%;
        height: 50vh;
        min-height: 400px;
    }

    .scrolly-content {
        width: 100%;
        padding: 30px 25px 60px 25px;
    }

    .scrolly-block {
        min-height: auto;
        padding: 50px 0;
    }

    .scrolly-block:first-child {
        padding-top: 15px;
    }

    .scrolly-block[data-section="partner"] {
        min-height: auto;
        opacity: 1 !important;
        padding: 50px 0 25px 0;
    }

    .horizontal-scroll-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .partner-logo-item {
        height: 80px;
        padding: 12px;
    }

    .scrolly-block h2 {
        font-size: 2rem;
    }

    .scrolly-text .lead {
        font-size: 1.1rem;
    }

    .horizontal-scroll-wrapper {
        margin-top: 40px;
    }

    .horizontal-scroll-container {
        grid-template-rows: 1fr;
        gap: 20px;
    }

    .partner-logo-item {
        width: 140px;
        height: 90px;
        padding: 15px;
    }

    section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 60px;
    }

    .planning-step {
        flex-direction: column;
        gap: 20px;
    }

    .step-number {
        font-size: 3.5rem;
    }

    .footer-minimal {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 20px;
    }

    .stat-number {
        font-size: 3rem;
    }

    /* Filter Buttons - horizontal scroll */
    .gallery-filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        margin-bottom: 40px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .logo img {
        height: 90px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .service-hero h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.85rem;
    }

    .section-label {
        font-size: 0.75rem;
        padding: 6px 18px;
    }
}
