/* ================================================================
   BAUTECHNIK STAUB AG — shared.css
   Header, Footer, Nav — imported by all sub-pages
   ================================================================ */

:root {
    --navy:        #1a1a4e;
    --navy-mid:    #2e2e8a;
    --navy-light:  #3d3daa;
    --gold:        #c8a96e;
    --gold-light:  #e0c99a;
    --off-white:   #f7f5f0;
    --white:       #ffffff;
    --text-dark:   #1c1c2e;
    --text-mid:    #4a4a6a;
    --text-light:  #8888aa;
    --border:      #e4e2dd;

    --shadow-sm:   0 2px 8px rgba(26,26,78,0.06), 0 1px 3px rgba(26,26,78,0.04);
    --shadow-md:   0 8px 24px rgba(26,26,78,0.10), 0 2px 8px rgba(26,26,78,0.06);
    --shadow-lg:   0 20px 48px rgba(26,26,78,0.14), 0 4px 16px rgba(26,26,78,0.08);

    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --transition:  0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* ---- PAGE HERO BANNER ---- */
.page-hero {
    width: 100%;
    padding: 140px 24px 70px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content:'';
    position:absolute; inset:0;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
    pointer-events:none; opacity:.6;
}
.page-hero-label {
    font-family:'DM Sans',sans-serif;
    font-size:.78rem; font-weight:500;
    letter-spacing:.18em; text-transform:uppercase;
    color:var(--gold);
    border:1px solid rgba(200,169,110,.35);
    padding:5px 14px; border-radius:100px;
    display:inline-block; margin-bottom:18px;
    position:relative;
}
.page-hero h1 {
    font-family:'Playfair Display',serif;
    font-size: clamp(2rem,5vw,3.5rem);
    color:var(--white); font-weight:700;
    letter-spacing:-0.03em; position:relative;
}
.page-hero h1 em { color:var(--gold); font-style:italic; }

/* ---- SECTION TITLE ---- */
.title {
    font-family:'Playfair Display',serif;
    font-size: clamp(1.8rem,4vw,2.4rem);
    font-weight:700; text-align:center;
    color:var(--navy);
    position:relative; display:inline-block;
    margin: 60px 0 16px;
}
.title::after {
    content:""; display:block;
    width:52px; height:3px;
    background:linear-gradient(90deg,var(--gold),var(--gold-light));
    margin:10px auto 0; border-radius:2px;
}

/* ---- HEADER (always white on sub-pages) ---- */
header {
    position:fixed; top:0; left:0;
    width:100%; padding:10px 60px;
    z-index:1000;
    background:rgba(255,255,255,0.97);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    box-shadow:var(--shadow-md);
    transition: padding var(--transition), box-shadow var(--transition);
}
.scrolled { padding:6px 60px; box-shadow:var(--shadow-lg); }

.nav-container {
    width:100%; display:flex;
    align-items:center; justify-content:space-between;
}

.LogoHeader {
    max-width:200px; width:100%; height:auto; opacity:1;
}

.navbar ul {
    display:flex; flex-wrap:nowrap;
    list-style:none; gap:4px; align-items:center;
}

.linkNav {
    text-decoration:none; color:var(--text-dark);
    font-size:.95rem; font-weight:500;
    padding:8px 14px; border-radius:var(--radius-sm);
    position:relative; white-space:nowrap;
    letter-spacing:.01em;
    transition: color var(--transition), background var(--transition);
}
.linkNav::after {
    content:''; position:absolute;
    bottom:4px; left:14px; right:14px;
    height:2px; background:var(--gold);
    border-radius:1px; transform:scaleX(0);
    transition: transform var(--transition);
    transform-origin:center;
}
.linkNav:hover::after,
.linkNav.clicked::after { transform:scaleX(1); }
.linkNav:hover { color:var(--navy); background:var(--off-white); }
.linkNav.clicked { color:var(--navy); font-weight:600; }

/* ---- HAMBURGER ---- */
.hamburger {
    display:none; cursor:pointer;
    flex-direction:column; gap:5px;
    padding:4px; z-index:10;
}
.hamburger div {
    width:26px; height:2px;
    background:var(--navy); border-radius:2px;
    transition: transform .3s ease, opacity .3s ease;
}
.hamburger.active div:nth-child(1) { transform:rotate(45deg) translateY(7px); }
.hamburger.active div:nth-child(2) { opacity:0; }
.hamburger.active div:nth-child(3) { transform:rotate(-45deg) translateY(-7px); }

/* ---- FOOTER ---- */
footer { background:var(--navy); margin-top:80px; }

.footerContainer {
    padding:56px 60px 40px;
    max-width:1200px; margin:0 auto;
}
.footer-top {
    display:flex; justify-content:space-between;
    align-items:flex-start; flex-wrap:wrap; gap:40px;
}
.footer-brand { display:flex; flex-direction:column; gap:12px; max-width:240px; }
.footer-logo { max-width:160px; filter:brightness(0) invert(1); opacity:.9; }
.footer-tagline { font-size:.85rem; color:rgba(255,255,255,.5); line-height:1.5; }

.footerNav ul { list-style:none; display:flex; flex-direction:column; gap:12px; }
.footerNav ul li a {
    text-decoration:none; color:rgba(255,255,255,.6);
    font-size:.95rem; transition:color var(--transition);
}
.footerNav ul li a:hover { color:var(--gold); }

.socialIcons { display:flex; gap:12px; align-items:center; }
.socialIcons a {
    width:40px; height:40px; border-radius:50%;
    background:rgba(255,255,255,.1);
    display:flex; align-items:center; justify-content:center;
    text-decoration:none;
    transition: background var(--transition), transform var(--transition);
}
.socialIcons a:hover { background:var(--gold); transform:translateY(-2px); }
.socialIcons a i { font-size:1.1rem; color:var(--white); }

.footerBottom {
    background:rgba(0,0,0,.25); padding:18px 60px;
    text-align:center; display:flex;
    flex-wrap:wrap; justify-content:center;
    align-items:center; gap:12px;
}
.footerBottom p { color:rgba(255,255,255,.5); font-size:.85rem; }
.designer { font-size:.75rem; opacity:.4; letter-spacing:.12em; text-transform:uppercase; }

/* ---- RESPONSIVE ≤900px ---- */
@media (max-width:900px) {
    header { padding:12px 20px; }
    .scrolled { padding:8px 20px; }
    .hamburger { display:flex; }

    .navbar {
        position:absolute; top:100%; left:0;
        width:100%;
        background:rgba(255,255,255,.98);
        backdrop-filter:blur(12px);
        -webkit-backdrop-filter:blur(12px);
        padding:28px 0;
        clip-path:inset(0 0 100% 0);
        transition:clip-path .38s cubic-bezier(.4,0,.2,1);
        box-shadow:0 16px 40px rgba(0,0,0,.1);
        pointer-events:none;
    }
    .navbar.active { clip-path:inset(0 0 0% 0); pointer-events:auto; }

    .navbar ul { flex-direction:column; gap:4px; align-items:center; }
    .linkNav { font-size:1.05rem; padding:12px 24px; }

    .footerContainer { padding:40px 24px 28px; }
    .footer-top { flex-direction:column; align-items:center; text-align:center; }
    .footerBottom { padding:18px 24px; }
}
@media (max-width:600px) {
    .page-hero { padding:120px 20px 48px; }
}
