/*
Theme Name: Kevin Sheldrake Photography - Visual Narrative
Author: Sheldrake Creative
Description: Eine faszinierende Welt der Fotografie, Kunst и Emotionen.
Version: 6.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,700;1,700&family=Space+Grotesk:wght@300;400;700&display=swap');

:root {
    --primary: #1e272e; /* Midnight Black */
    --secondary: #ef5777; /* Sassy Pink */
    --accent: #808e9b; /* Cool Grey */
    --bg-main: #ffffff;
    --bg-dark: #1e272e;
    --white: #ffffff;
    --text-main: #1e272e;
    --text-muted: #485460;
    --border: rgba(30, 39, 46, 0.1);
    
    --sidebar-width: 320px;
    --container-width: 1100px;
    --content-width: 800px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    --section-pad: clamp(5rem, 12vw, 10rem);
}

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

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, .logo, .btn-kevin {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: break-word;
}

h1 { font-size: clamp(2.5rem, 10vw, 6.5rem); margin-bottom: 2rem; color: var(--white); }
h2 { font-size: clamp(2rem, 6vw, 4rem); margin-bottom: 3.5rem; }
h3 { font-size: 1.8rem; margin-bottom: 1.2rem; }

.italic { font-style: italic; font-family: 'Cormorant Garamond', serif; }

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

a { text-decoration: none; color: inherit; transition: var(--transition); }

/* Global Wrapper for N-B Sidebar */
.site-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Axis 1: N-B Fixed Sidebar */
.site-header {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-dark);
    color: var(--white);
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    padding: 5rem 2.5rem; /* Reduced horizontal padding for more space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255,255,255,0.05);
    overflow-x: hidden; /* Prevent any horizontal overflow */
}

.logo {
    display: inline-flex !important;
    align-items: center;
    font-size: clamp(1.2rem, 3vw, 1.8rem) !important; /* Fluid font size */
    font-weight: 700;
    color: var(--white) !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    max-width: 100%;
    white-space: normal !important; /* Allow wrapping in sidebar */
    overflow-wrap: anywhere;      /* Break extremely long words */
    line-height: 1.2;
}
.logo span { color: var(--secondary) !important; }

.main-nav { margin-top: 4rem; width: 100%; }
.main-nav ul { list-style: none; display: block; width: 100%; }
.main-nav li { margin-bottom: 2rem; width: 100%; }
.main-nav a { 
    font-size: 0.9rem; font-weight: 400; text-transform: uppercase; 
    letter-spacing: 0.2em; color: rgba(255,255,255,0.6); 
    display: block;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: break-word;
    line-height: 1.4;
}
.main-nav a:hover { color: var(--secondary); transform: translateX(5px); }

.sidebar-footer { font-size: 0.75rem; opacity: 0.3; letter-spacing: 0.1em; text-transform: uppercase; }

.nav-toggle { display: none; }

/* Main Content Area */
.site-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

/* Axis 2: H-A Full Bleed Hero */
.hero-kevin {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-dark);
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }

/* Rule 13: Overlay Protection */
.hero-kevin::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(30, 39, 46, 0.8) 0%, transparent 100%);
    z-index: 2;
}

.hero-content { position: relative; z-index: 3; max-width: 900px; padding: 0 4rem; }

.btn-kevin {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(239, 87, 119, 0.3);
}
.btn-kevin:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(239, 87, 119, 0.4); }

/* Axis 3: F-C Accordion (FAQ/Services) */
.accordion-section { padding: var(--section-pad) 0; background: var(--bg-main); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-header { 
    padding: 3rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    font-family: 'Cormorant Garamond'; font-size: 2.5rem; font-weight: 700;
}
.accordion-header::after { content: '+'; font-size: 2rem; color: var(--secondary); transition: 0.4s; }
.accordion-item.active .accordion-header::after { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: 0.6s; font-size: 1.1rem; color: var(--text-muted); }
.accordion-item.active .accordion-content { max-height: 300px; padding-bottom: 3rem; }

/* Axis 5: U-D Photo Strip (Gallery) */
.photo-strip { 
    display: flex; width: 100%; height: 500px; overflow: hidden;
    margin: 4rem 0;
}
.strip-img { flex: 1; height: 100%; object-fit: cover; transition: 1s cubic-bezier(0.23, 1, 0.32, 1); filter: grayscale(1) contrast(1.2); }
.strip-img:hover { flex: 4; filter: grayscale(0) contrast(1); }

/* Axis 4: C-C Overlay Cards & 21: 3x3 Grid */
.posts-section { padding: var(--section-pad) 0; background: var(--bg-main); }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.post-card-kevin { 
    position: relative; height: 500px; overflow: hidden;
}
.post-card-kevin .thumb { height: 100%; }
.post-card-kevin .thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
.post-card-kevin:hover .thumb img { transform: scale(1.1); filter: brightness(0.6); }

.post-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(30, 39, 46, 0.9) 10%, transparent 60%);
    padding: 3rem; display: flex; flex-direction: column; justify-content: flex-end;
    z-index: 2; color: #ffffff;
}
.post-card-overlay .cat { color: var(--secondary); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; margin-bottom: 1rem; }
.post-card-overlay h3 { font-size: 1.8rem; margin-bottom: 0; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

/* Rule 8: Golden Standard Pagination */
.pagination { display: flex; justify-content: center; gap: 1.5rem; margin-top: 6rem; }
.pagination .page-numbers { 
    font-size: 1.2rem; font-family: 'Cormorant Garamond'; font-weight: 700;
    border-bottom: 2px solid transparent; padding: 0.5rem 0; transition: 0.3s;
}
.pagination .page-numbers.current { color: var(--secondary); border-bottom-color: var(--secondary); }

/* Axis 6: FT-B Two-column Footer */
.site-footer { padding: 10rem 0 5rem; background: var(--bg-main); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 6rem; }
.footer-logo { font-size: 2.5rem; font-weight: 700; margin-bottom: 2rem; color: var(--primary); }
.footer-logo span { color: var(--secondary); }
.footer-desc { color: var(--text-muted); max-width: 500px; line-height: 1.8; }

.footer-nav ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-nav a { font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--text-muted); }
.footer-nav a:hover { color: var(--secondary); }

.footer-contact { margin-top: 4rem; display: flex; gap: 4rem; font-size: 0.9rem; color: var(--text-muted); font-weight: 700; }

@media (max-width: 1024px) {
    /* Axis 3.4 Sidebar Reset Rule */
    .site-wrapper { display: block; }
    .site-header { 
        width: 100%; height: auto; position: sticky; top: 0; 
        padding: 2rem 4rem; flex-direction: row; align-items: center; 
        border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .main-nav, .sidebar-footer { display: none; }
    .nav-toggle { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
    .nav-toggle span { width: 30px; height: 2px; background: var(--white); }

    .site-main { margin-left: 0; width: 100% !important; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .footer-desc { margin: 0 auto; }
    .footer-nav ul { justify-items: center; }
    .footer-contact { justify-content: center; }
}

@media (max-width: 768px) {
    .posts-grid { grid-template-columns: 1fr; }
    .photo-strip { height: 300px; }
    .hero-kevin { height: 70vh; }
    
    /* Mobile Menu Drawer */
    body.menu-open .main-nav { 
        display: flex; position: fixed; inset: 0; background: var(--bg-dark); 
        z-index: 2000; align-items: center; justify-content: center;
    }
    body.menu-open .main-nav ul { flex-direction: column; text-align: center; gap: 3rem; }
    body.menu-open .main-nav a { font-size: 1.8rem; color: var(--white); }
}
