/*
Theme Name: Steleos B.V.
Description: Supersnel, modern, volledig responsive thema – werkt perfect op basis van aspect-ratio en hoogte
Version: 2.0
Author: Grok @ xAI
Text Domain: steleos
*/

:root {
    --p: #2c3e50;
    --a: #e74c3c;
    --l: #f8f9fa;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

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

/* ==============================================================
   HERO HEADER – responsive via aspect ratio & height
   ============================================================== */
.hero-header {
    background: linear-gradient(to bottom, rgba(130,130,160,0.35), rgba(0,0,0,0.35)),
                url('https://steleos.nl/wp-content/uploads/2025/12/background.png') center/cover no-repeat;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    padding: 240px 15px 200px;
    transition: padding 0.4s ease;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-logo {
    max-width: 340px;
    margin: 0 auto 45px;
    transition: all 0.4s ease;
}

.hero-header h1 {
    font-size: 2.4rem;
    font-weight: 500;
    margin: 0 0 25px;
    line-height: 1.2;
    transition: font-size 0.4s ease;
}

.hero-header p {
    font-size: 1.45rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.95;
    transition: font-size 0.4s ease;
}

.btn {
    background: var(--a);
    color: #fff;
    padding: 18px 46px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-3px);
}

/* Aspect-ratio & height-based responsiveness */

@media (max-aspect-ratio: 1/3), (max-height: 550px) {
    .hero-header       { padding: 100px 20px 80px; background-attachment: scroll; }
    .hero-logo         { max-width: 200px; margin-bottom: 25px; }
    .hero-header h1    { font-size: 1.8rem; }
    .hero-header p     { font-size: 1.1rem; }
    .btn               { padding: 14px 32px; font-size: 1rem; }
}

/* ==============================================================
   NAVIGATION – sticky + mobile hamburger
   ============================================================== */
.main-navigation {
    background: rgba(44,62,80,0.97);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.main-menu a {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.main-menu a:hover {
    background: var(--a);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
}

/* Mobile menu */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--p);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .main-menu.active { max-height: 500px; }
    .main-menu a { padding: 18px; text-align: center; }
}

/* ==============================================================
   CONTENT SECTIONS
   ============================================================== */
section {
    padding: 110px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.4rem;
    text-align: center;
    color: var(--p);
    margin-bottom: 70px;
    position: relative;
}

h2::after {
    content: '';
    width: 90px;
    height: 6px;
    background: var(--a);
    display: block;
    margin: 25px auto 0;
    border-radius: 3px;
}


/* Aspect-ratio & height-based responsiveness */

@media (max-aspect-ratio: 1/3), (max-height: 550px) {
    h2    { font-size: 2.0rem; }
    p     { font-size: 1.1rem; }
}

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

.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
	width: 100%;
}

.card:hover {
    transform: translateY(-18px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.card > div { padding: 38px; }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 28px;
    margin-top: 60px;
}

.gallery img {
    border-radius: 16px;
    height: 340px;
    object-fit: cover;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    transition: transform 0.4s;
}

.gallery img:hover { transform: scale(1.03); }

/* Aspect-ratio & height-based responsiveness */
@media (max-aspect-ratio: 1/3), (max-height: 550px) {
    .grid,
    .gallery {
        gap: 32px;
    }
    
	.card {
		width: 82%;
	}
	
    .card img {
        height: 100px;
    }
    
    .gallery img {
        height: 280px;
    }
}

/* Background alternate */
section:nth-of-type(even) { background: var(--l); }

/* Footer */
.site-footer {
    background: var(--p);
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.site-footer a {
    color: #3498db;
    text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.site-footer .copy {
    margin-top: 50px;
    font-size: 0.95rem;
    opacity: 0.8;
}
