* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

/* Hide iOS video controls and play button */
video::-webkit-media-controls {
    display: none !important;
}
video::-webkit-media-controls-panel {
    display: none !important;
}
video::-webkit-media-controls-play-button {
    display: none !important;
}
video::-webkit-media-controls-start-playback-button {
    display: none !important;
}
video {
    pointer-events: none;
}

/* Page fade in — only content, never navigation */
@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.hero, main, .projects-section, .about-section, .contact-section, footer {
    animation: pageFadeIn 0.8s ease-out;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* CSS Fallbacks for animations - elements visible by default */
.reveal-text,
.reveal-element {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.navigation.scrolled {
    background: rgba(10, 10, 10, 0.9);
    padding: 20px 60px;
}

.logo {
    text-decoration: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    height: 40px;
}

.nav-logo-svg {
    height: 32px;
    width: auto;
    color: #ffffff;
}

.logo:hover .nav-logo-svg {
    opacity: 0.85;
}

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

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.6;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    z-index: 1002;
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay — kicks in early so nav never gets cramped */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
        z-index: 1001;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu a {
        font-size: 28px;
        font-weight: 300;
        letter-spacing: 2px;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 2s ease, transform 10s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.15);
}

/* Fallback for single image (no slideshow) */
.hero-bg img:only-child,
.hero-bg video:only-child {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 1000px;
    padding: 0 40px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(60px, 8vw, 140px);
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 40px;
    letter-spacing: -3px;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 1px;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: #ffffff;
    margin-top: 20px;
    opacity: 0.6;
}

/* Selected Work Section */
.selected-work {
    padding: 80px 60px 60px;
    background: #0a0a0a;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

/* Tighter spacing on project detail pages (gallery follows directly) */
.project-gallery .section-header,
.project-gallery + .section-header {
    margin-bottom: 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.section-description {
    font-size: 17px;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto;
    opacity: 0.8;
    font-weight: 300;
    text-align: center;
}

.projects-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 80px;
    margin-bottom: 80px;
}

.project-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(0.3);
}

.project-item:hover .project-image {
    transform: scale(1.1);
    filter: grayscale(0);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transform: translateY(0);
    opacity: 1;
    transition: all 0.6s ease;
}

/* Desktop: hover effect */
@media (hover: hover) {
    .project-info {
        transform: translateY(20px);
        opacity: 0;
    }
    .project-item:hover .project-info {
        transform: translateY(0);
        opacity: 1;
    }
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
}

.project-type {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all-projects {
    text-align: center;
    margin-top: 80px;
}

.view-all-btn {
    display: inline-block;
    padding: 20px 60px;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.view-all-btn:hover {
    background: #ffffff;
    color: #0a0a0a;
    transform: translateY(-5px);
}

/* About Section */
.about-section {
    padding: 120px 60px;
    background: #111111;
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 4vw, 60px);
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.team-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    filter: grayscale(0.2);
}

/* Contact Section */
.contact-section {
    padding: 120px 60px;
    background: #0a0a0a;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: -2px;
}

.contact-text {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 60px;
    opacity: 0.9;
    font-weight: 300;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.contact-address,
.contact-details {
    text-align: left;
}

.contact-address p,
.contact-details p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.contact-details a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-details a:hover {
    opacity: 0.7;
}

/* Project Gallery */
.project-gallery {
    padding: 40px 40px 120px;
    background: #0a0a0a;
}

.gallery-grid {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 4/3;
}

/* Single image gallery — match description width, centered */
.gallery-item:only-child {
    grid-column: 1 / -1;
    max-width: 720px;
    margin: 0 auto;
    aspect-ratio: auto;
    width: 100%;
}

.gallery-item:only-child img,
.gallery-item:only-child video {
    height: auto;
    object-fit: contain;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(0.2);
    cursor: pointer;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.03);
    filter: grayscale(0);
}

/* Play icon overlay for videos in gallery */
/* Play icon removed - videos now autoplay */

/* Project Navigation */
.project-navigation {
    padding: 80px 60px;
    background: #111111;
    text-align: center;
}

.project-nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.project-nav-btn {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    padding: 15px 30px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.project-nav-btn:hover {
    background: #ffffff;
    color: #0a0a0a;
}

.back-to-projects {
    font-size: 18px;
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 80px 60px 40px;
    background: #000000;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-info p {
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #333;
    opacity: 0.5;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .navigation {
        padding: 20px 30px;
    }
    
    .navigation.scrolled {
        padding: 20px 30px;
    }
    
    .nav-menu a {
        font-size: 28px;
    }
    
    .hero-content {
        padding: 0 30px;
    }
    
    .selected-work,
    .about-section,
    .contact-section,
    .project-gallery {
        padding: 80px 30px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        margin-bottom: 60px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .contact-address,
    .contact-details {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .project-nav-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    body {
        cursor: auto;
    }
}

@media (max-width: 480px) {
    .navigation {
        padding: 15px 20px;
    }
    
    .navigation.scrolled {
        padding: 15px 20px;
    }
    
    .logo {
        height: 32px;
    }
    
    .nav-logo-svg {
        height: 24px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .selected-work,
    .about-section,
    .contact-section,
    .project-gallery {
        padding: 60px 20px;
    }
    
    .footer {
        padding: 60px 20px 30px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-item {
        min-height: 250px;
    }
}

/* ===== WebP Picture Element Support ===== */
.gallery-item picture,
.project-item picture {
    width: 100%;
    height: 100%;
    display: block;
}

.gallery-item picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(0.2);
    cursor: pointer;
}

.gallery-item:hover picture img {
    transform: scale(1.03);
    filter: grayscale(0);
}

.project-item picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(0.3);
}

.project-item:hover picture img {
    transform: scale(1.1);
    filter: grayscale(0);
}

/* Hero background image (replaces CSS background-image) */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Hero slide for picture elements */
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Lazy load fade-in */
img[loading="lazy"] {
    transition: opacity 0.4s ease;
}

/* Content-visibility for below-fold optimization */
.project-gallery,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-item {
    cursor: pointer;
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

.gallery-item img {
    pointer-events: auto !important;
}

/* ===== MOBILE REVEAL ANIMATIONS (IntersectionObserver) ===== */
.mobile-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.mobile-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero elements on mobile - always visible with fade */
.hero-title.mobile-reveal,
.hero-subtitle.mobile-reveal,
.scroll-indicator.mobile-reveal {
    opacity: 0;
    transform: translateY(20px);
}

.hero-title.revealed,
.hero-subtitle.revealed,
.scroll-indicator.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Project info - ALWAYS visible on mobile */
@media (max-width: 768px) {
    .project-info {
        opacity: 1 !important;
        transform: none !important;
    }
    .project-title,
    .project-type {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== Services Section (home page cards) ===== */
.services-section {
    padding: 100px 60px 40px;
    background: #0a0a0a;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 50px 40px;
    background: #111111;
    border: 1px solid #222;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    min-height: 280px;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: #ffffff;
    background: #141414;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.service-card p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.85;
    font-weight: 300;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    align-self: flex-start;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-card {
        min-height: auto;
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 80px 30px 20px;
    }
}

/* ===== Services Page (palvelut.html) ===== */
.services-page {
    padding: 180px 60px 100px;
    background: #0a0a0a;
}

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

.services-detail-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-detail-card {
    padding: 50px 40px;
    background: #111111;
    border: 1px solid #222;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.service-detail-card:hover {
    border-color: #444;
    background: #141414;
}

.service-detail-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.service-detail-card p {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.85;
    font-weight: 300;
    margin-bottom: 24px;
}

.service-detail-card .service-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 4px;
    transition: opacity 0.3s ease;
}

.service-detail-card .service-link:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .services-page {
        padding: 140px 30px 80px;
    }
    .services-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-detail-card {
        padding: 40px 30px;
    }
}

/* ===== Service detail pages (palvelut / korjausrakentaminen / visualisointi) =====
   Full-bleed hero matching the home page pattern: 100vh, background media,
   dark overlay, title centered on top. */
.service-hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #0a0a0a;
}

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

.service-hero-bg > picture,
.service-hero-bg > video {
    display: block;
    width: 100%;
    height: 100%;
}

.service-hero-bg img,
.service-hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: grayscale(0.15);
}

/* Service hero slideshow — crossfade + Ken Burns, mirrors .hero-slide */
.service-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 2s ease, transform 10s ease;
}

.service-hero-slide.active {
    opacity: 1;
    transform: scale(1.15);
}

/* Single slide fallback (e.g. just one image chosen): static, no fade-in needed */
.service-hero-bg > .service-hero-slide:only-child {
    opacity: 1;
    transform: none;
    transition: none;
}

.service-hero-bg:empty {
    display: none;
}

.service-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    padding: 0 60px;
}

@media (max-width: 768px) {
    .service-hero-content {
        padding: 0 30px;
    }
}

.service-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(44px, 7vw, 100px);
    font-weight: 400;
    line-height: 1.0;
    margin: 0 auto 30px;
    letter-spacing: -2.5px;
}

.service-hero .service-tagline {
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.5;
    max-width: 720px;
    margin: 0 auto 40px;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.service-hero .service-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.service-content {
    padding: 80px 60px;
    background: #111111;
}

.service-content-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.service-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.service-content p {
    font-size: 17px;
    line-height: 1.75;
    margin: 0 auto 24px;
    opacity: 0.9;
    font-weight: 300;
    max-width: 800px;
    text-align: center;
}

.service-list {
    list-style: none;
    margin: 40px auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    text-align: left;
}

.service-list li {
    padding: 24px 28px;
    background: #0a0a0a;
    border-left: 2px solid #ffffff;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.service-pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 50px auto;
    max-width: 1100px;
}

.pricing-card {
    padding: 40px 30px;
    background: #0a0a0a;
    border: 1px solid #222;
    text-align: center;
}

.pricing-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 14px;
}

.pricing-card .price {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.pricing-card .price-meta {
    font-size: 13px;
    opacity: 0.7;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.pricing-card p.pricing-desc {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.8;
    margin: 0;
}

/* Service page gallery (used by visualization.html for portfolio samples) */
.service-gallery {
    padding: 40px 40px 100px;
    background: #111111;
}

.service-gallery .gallery-grid {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.service-gallery .gallery-grid:empty {
    display: none;
}

.service-gallery .gallery-grid:empty + * {
    margin-top: 0;
}

@media (max-width: 768px) {
    .service-gallery {
        padding: 20px 20px 80px;
    }
    .service-gallery .gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Service stats counter (used on renovation page) */
.service-stats {
    background: #0a0a0a;
    padding: 70px 40px;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.service-stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.service-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 500;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
}

.service-stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
    letter-spacing: 0.03em;
    line-height: 1.4;
    max-width: 220px;
}

@media (max-width: 768px) {
    .service-stats {
        padding: 50px 20px;
    }
    .service-stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
}

/* Service references (used on renovation page) */
.service-references .service-content-inner {
    text-align: left;
}

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

.service-refs-cat-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 500;
    color: #ffffff;
    margin: 60px 0 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
    text-align: left;
}

.service-references .service-refs-cat-title:first-of-type {
    margin-top: 0;
}

.service-refs {
    font-size: 15px;
    line-height: 1.7;
    color: #cfcfcf;
    text-align: left;
}

.service-refs ul,
.service-refs ol {
    margin: 0;
    padding-left: 1.4em;
}

.service-refs li {
    margin: 0.45em 0;
}

.service-refs h3,
.service-refs h4 {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    margin: 24px 0 10px;
}

.service-refs h3 { font-size: 20px; }
.service-refs h4 { font-size: 17px; }

.service-refs strong { color: #ffffff; font-weight: 600; }
.service-refs em { font-style: italic; }
.service-refs p { margin: 0.6em 0; }

@media (max-width: 768px) {
    .service-refs-cat-title {
        margin-top: 40px;
    }
}

.service-cta {
    text-align: center;
    padding: 100px 60px;
    background: #0a0a0a;
}

.service-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 400;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.service-cta p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.85;
    font-weight: 300;
}

.service-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-cta .cta-btn {
    display: inline-block;
    padding: 18px 40px;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-cta .cta-btn:hover {
    background: #ffffff;
    color: #0a0a0a;
}

.service-cta .cta-btn.primary {
    background: #ffffff;
    color: #0a0a0a;
}

.service-cta .cta-btn.primary:hover {
    background: transparent;
    color: #ffffff;
}

@media (max-width: 768px) {
    .service-hero {
        padding: 140px 30px 60px;
    }
    .service-content {
        padding: 60px 30px;
    }
    .service-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .service-pricing {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .service-cta {
        padding: 70px 30px;
    }
}

/* ===== Navigation Dropdown ===== */
.nav-menu .has-dropdown {
    position: relative;
}

.nav-menu .has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 8px;
    vertical-align: middle;
    opacity: 0.7;
}

.nav-menu .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 0;
    min-width: 240px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    margin-top: 16px;
    z-index: 1001;
}

.nav-menu .has-dropdown:hover .dropdown,
.nav-menu .has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-menu .dropdown li {
    padding: 0;
}

.nav-menu .dropdown a {
    display: block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    white-space: nowrap;
    color: #ffffff;
    text-align: center;
}

.nav-menu .dropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
    opacity: 1;
}

@media (max-width: 1024px) {
    .nav-menu .has-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
    }
    .nav-menu .has-dropdown > a {
        display: inline-block;
        text-align: center;
    }
    .nav-menu .has-dropdown > a::after {
        display: none;
    }
    .nav-menu .dropdown {
        position: static;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        border: none;
        padding: 0;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        /* Cancel the desktop dropdown's transform transition so subitems don't
           slide left when the parent li is hovered/tapped on touch devices. */
        transition: none;
    }
    .nav-menu .has-dropdown:hover .dropdown,
    .nav-menu .has-dropdown:focus-within .dropdown {
        transform: none;
    }
    .nav-menu .dropdown li {
        width: auto;
    }
    /* Subitems: only background highlight on tap — no opacity transition / motion */
    .nav-menu .dropdown a {
        font-size: 18px;
        font-weight: 300;
        letter-spacing: 1px;
        text-align: center;
        padding: 10px 22px;
        opacity: 0.75;
        border-radius: 4px;
        transition: background 0.2s ease;
    }
    .nav-menu .dropdown a:hover,
    .nav-menu .dropdown a:active,
    .nav-menu .dropdown a:focus {
        background: rgba(255, 255, 255, 0.1);
        opacity: 1;
    }
}

/* Language Switcher */
.lang-switch {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-switch a {
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lang-switch a:hover {
    opacity: 1;
}

@media (max-width: 1024px) {
    .lang-switch {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}
