@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');

html {
    scroll-behavior: smooth;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #D98418;
    color: #FFFFFE;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Keyboard navigation styles */
.keyboard-navigation *:focus {
    outline: 2px solid #D98418;
    outline-offset: 2px;
}

/* Improve focus visibility for interactive elements */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #D98418;
    outline-offset: 2px;
}

body {
    font-family: 'Merriweather', serif;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #FFFFFE;
    color: #373735;
}

.top-bar {
    background-color: #373735;
    padding: 5px 20px;
}

.contact-info {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.contact-info a {
    color: #FFFFFE;
    text-decoration: none;
    font-size: 0.9rem;
}

header {
    background: #e0e0e0;
    color: #373735;
    padding: 0.1rem 20px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 10px solid #FFFFFE;
    border-bottom: 10px solid #FFFFFE;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 5px 15px; /* Reduced vertical padding to keep header same height */
    border-radius: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo img {
    display: block;
    height: 90px; /* Larger logo size */
    width: auto; /* Maintain aspect ratio */
}

nav {
    margin-left: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    color: #373735;
    text-decoration: none;
}

.lang-switcher {
    margin-left: 20px;
}

.lang-switcher button {
    background: none;
    border: 1px solid #373735;
    color: #373735;
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
}

.lang-switcher button.active {
    background: #D98418;
    color: #FFFFFE;
    border-color: #D98418;
}

main {
    padding: 0;
}

#hero {
    position: relative;
    height: 48vh; /* Adjust as needed */
    color: #FFFFFE;
    overflow: hidden;
    background-color: #373735; /* Fallback background */
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
}

.hero-content {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 2;
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

#hero p {
    font-size: 1.2rem;
}

.cta-button {
    display: inline-block;
    background: #D98418;
    color: #FFFFFE;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

section {
    padding: 40px 20px;
    border-bottom: 1px solid #eee;
    background-color: #FFFFFE;
}

#diensten {
    background-color: #e0e0e0 !important;
    padding: 60px 20px;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.service-item {
    padding: 40px 20px;
    border: 2px solid #D98418;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    background-color: #D98418;
    color: #FFFFFE;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(217, 132, 24, 0.3);
    background-color: #bf6f0f;
}

#parallax-section {
    height: 400px;
    background-image: url('../media/photos/paralax.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

#parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(55, 55, 53, 0.3);
    z-index: 1;
}

/* Facade-specific parallax background */
#parallax-section.facade-parallax {
    background-image: url('../media/photos/facade_paralax.jpg');
}

/* Timber-specific parallax background */
#parallax-section.timber-parallax {
    background-image: url('../media/photos/houseskelet_paralax.jpg');
}

/* Roofs-specific parallax background */
#parallax-section.roofs-parallax {
    background-image: url('../media/photos/roofs_paralax.jpg');
}

#over-ons {
    padding: 40px 20px;
    text-align: center;
}

#over-ons h2, #over-ons p {
    color: #373735;
}

#over-ons p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-item h3 {
    color: #FFFFFE;
    margin: 0;
}

.service-item p {
    display: none; /* Hide descriptions */
}

.service-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

#contact {
    text-align: center;
    background-color: #e0e0e0;
}

#contact form {
    max-width: 600px;
    margin: 60px auto 0 auto;
    display: flex;
    flex-direction: column;
}

#contact form input,
#contact form textarea {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#contact form button {
    border: none;
}

footer {
    background: #373735;
    color: #FFFFFE;
    padding: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: #D98418;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.8;
    margin: 0;
    font-size: 0.85rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

.footer-section a:hover {
    color: #D98418;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px 20px 20px;
    text-align: center;
    background: #2a2a28;
}

.footer-bottom p {
    margin: 20px 0 0 0;
    color: #b0b0b0;
    font-size: 0.85rem;
}

.social-media-section {
    margin-top: 20px;
}

.social-divider {
    width: 100px;
    height: 1px;
    background-color: #D98418;
    margin: 20px 0 15px 0;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.social-icons svg {
    width: 28px;
    height: 28px;
}

/* Floating "I want this" button */
.floating-button {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #D98418;
    color: #FFFFFE;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    z-index: 999;
    border-radius: 5px 0 0 5px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Merriweather', serif;
    writing-mode: horizontal-tb;
}

.floating-button:hover {
    background-color: #bf6f0f;
    box-shadow: -2px 0 15px rgba(217, 132, 24, 0.4);
    transform: translateY(-50%) translateX(-5px);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px 30px 20px;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .gallery-row img {
        width: 200px;
        height: 100%;
    }
    
    .gallery-row {
        animation-duration: 28s;
    }
    
    .floating-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
} 

/* Subpage hero sections - uses same #hero as main page */

/* Facade hero with moving tiles gallery */
.facade-hero {
    position: relative;
    overflow: hidden;
}

.facade-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    align-items: center;
}

/* Timber hero with moving tiles gallery */
.timber-hero {
    position: relative;
    overflow: hidden;
}

.timber-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    align-items: center;
}

/* Roofs hero with moving tiles gallery */
.roofs-hero {
    position: relative;
    overflow: hidden;
}

.roofs-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    align-items: center;
}

.gallery-row {
    display: flex;
    gap: 2px;
    animation: scroll-horizontal 42s linear infinite;
    width: max-content;
    height: 100%;
}

.gallery-row img {
    width: 300px;
    height: 100%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(55, 55, 53, 0.7);
    z-index: 1;
}

.facade-hero .hero-content,
.timber-hero .hero-content,
.roofs-hero .hero-content {
    z-index: 2;
}

/* Content sections for service pages */
.content-section {
    padding: 60px 20px;
    background-color: #FFFFFE;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section.alt-section {
    background-color: #e0e0e0;
}

/* Subpage hero content styling - override for subpages only (when no video present) */
section#hero:not(:has(video)) .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 40px;
    bottom: auto;
    right: auto;
}

.section-intro {
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #373735;
}

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-detail-item {
    background-color: #FFFFFE;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.service-detail-item h3 {
    color: #D98418;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.service-detail-item p {
    color: #373735;
    line-height: 1.7;
    margin: 0;
}

.content-section.alt-section .service-detail-item {
    background-color: #FFFFFE;
}

@media (max-width: 768px) {
    .services-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-section {
        padding: 40px 15px;
    }
}