/*
Theme Name: Luxury Refined
Theme URI: https://sebask.de
Author: Sebastian Kroetzsch
Author URI: https://sebask.de
Description: Luxury & refined WordPress theme for personal branding. Features dark elegance, gold accents, and professional design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luxury-refined
Domain Path: /languages
Requires at least: 6.0
Requires PHP: 7.4
Tags: blog, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready

This theme is designed for personal branding with a luxury aesthetic.
*/

/* ===== CSS RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - refined luxury */
    --bg: #0A0A0A;
    --bg-alt: #151515;
    --surface: #1A1A1A;
    --surface-light: #242424;
    --primary: #D4AF37; /* Gold */
    --primary-light: #E6C158;
    --primary-dark: #B8941F;
    --secondary: #C0C0C0; /* Silver */
    --secondary-light: #E0E0E0;
    --secondary-dark: #A0A0A0;
    --accent: #8B7355; /* Bronze */
    --text: #F5F5F5;
    --text-muted: #BBBBBB;
    --text-strong: #FFFFFF;
    --border: 1px solid rgba(212, 175, 55, 0.25);
    --border-light: 1px solid rgba(212, 175, 55, 0.15);
    --border-heavy: 2px solid var(--primary);
    
    /* Typography - elegant & readable */
    --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Effects */
    --shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.2);
    --glow: 0 0 30px rgba(212, 175, 55, 0.3);
    
    /* Spacing */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 32px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===== BASE STYLES ===== */
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* ===== ACCESSIBILITY ===== */
:focus {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-strong);
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 300;
    line-height: 1.05;
}

h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 300;
}

h3 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
}

p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 1.1vw, 1.25rem);
    color: var(--text-muted);
}

.text-lead {
    font-size: clamp(1.25rem, 1.5vw, 1.75rem);
    line-height: 1.6;
    font-weight: 300;
    color: var(--secondary);
}

.text-small {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 4rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-light);
    transition: all var(--transition-medium);
    min-height: 80px;
}

.site-header.scrolled {
    padding: 1rem clamp(1.5rem, 4vw, 4rem);
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow-light);
}

.site-branding {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    font-weight: 400;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-fast);
}

.site-branding span {
    color: var(--secondary);
    font-weight: 300;
    position: relative;
}

.site-branding span::after {
    content: '•';
    position: absolute;
    right: -0.7em;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 0.8em;
}

.main-navigation ul {
    display: flex;
    gap: clamp(1.5rem, 2vw, 3rem);
    list-style: none;
}

.main-navigation a {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition-medium);
    position: relative;
    font-weight: 400;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: all var(--transition-medium);
    transform: translateX(-50%);
}

.main-navigation a:hover {
    color: var(--primary);
}

.main-navigation a:hover::before {
    width: 80%;
}

.main-navigation .current-menu-item > a {
    color: var(--primary);
    border-color: var(--border);
    background: rgba(212, 175, 55, 0.05);
}

.main-navigation .current-menu-item > a::before {
    width: 100%;
}

/* ===== BUTTONS ===== */
.button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    color: var(--primary);
    padding: 1.2rem 3rem;
    border: var(--border);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.button::before,
.wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(212, 175, 55, 0.1), 
        transparent);
    transition: left 0.8s;
}

.button:hover,
.wp-block-button__link:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: var(--shadow-gold);
    padding-right: 3.5rem;
}

.button:hover::before,
.wp-block-button__link:hover::before {
    left: 100%;
}

.button::after,
.wp-block-button__link::after {
    content: '→';
    transition: transform var(--transition-medium);
}

.button:hover::after,
.wp-block-button__link:hover::after {
    transform: translateX(5px);
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface);
    color: var(--secondary);
    padding: 1rem 2.5rem;
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    transition: all var(--transition-medium);
}

.button-secondary:hover {
    background: var(--surface-light);
    border-color: var(--secondary);
    color: var(--secondary-light);
}

/* ===== MAIN CONTENT ===== */
.site-main {
    padding: clamp(10rem, 18vh, 14rem) clamp(1.5rem, 4vw, 4rem) 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-section {
    margin-bottom: 10rem;
    text-align: center;
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: min(800px, 100%);
    height: 800px;
    background: radial-gradient(circle, 
        rgba(212, 175, 55, 0.03) 0%, 
        transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary), 
        transparent);
}

.hero-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 10rem;
}

.service-card {
    padding: 3rem;
    background: var(--surface);
    border: var(--border-light);
    transition: all var(--transition-medium);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.02) 0%, 
        transparent 50%);
    z-index: 0;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
    opacity: 0.9;
    transition: transform var(--transition-medium);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-strong);
    position: relative;
    padding-bottom: 1rem;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--primary);
}

.service-description {
    flex-grow: 1;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.service-link {
    align-self: flex-start;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap var(--transition-medium);
}

.service-link:hover {
    gap: 1rem;
}

/* ===== ABOUT ===== */
.about-section {
    margin-bottom: 10rem;
    padding: 5rem;
    background: var(--surface);
    border: var(--border-light);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary), 
        transparent, 
        var(--secondary));
    z-index: -1;
    opacity: 0.1;
    border-radius: inherit;
}

.about-title {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--primary);
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    border: var(--border-light);
    border-radius: var(--radius-md);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--primary);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== CONTACT ===== */
.contact-section {
    margin-bottom: 10rem;
    padding: 5rem;
    text-align: center;
    background: var(--surface);
    border: var(--border-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 500px;
    margin: 3rem auto 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 5rem clamp(1.5rem, 4vw, 4rem) 3rem;
    border-top: var(--border);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-family: var(--font-serif);
    font-weight: 400;
}

.footer-navigation ul {
    list-style: none;
}

.footer-navigation li {
    margin-bottom: 0.8rem;
}

.footer-navigation a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-navigation a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 3rem;
    border-top: var(--border-light);
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--primary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    .site-header {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
        position: relative;
        min-height: auto;
    }
    
    .site-header.scrolled {
        padding: 1.5rem;
        background: rgba(10, 10, 10, 0.95);
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .site-main {
        padding: 12rem 2rem 4rem;
    }
    
    .about-section {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 3rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .button,
    .button-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .service-card,
    .about-section,
    .contact-section {
        padding: 2rem;
    }
    
    .main-navigation a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===== DARK MODE PREFERENCE (already dark) ===== */
@media (prefers-color-scheme: light) {
    :root {
        --bg: #FAFAFA;
        --bg-alt: #F0F0F0;
        --surface: #FFFFFF;
        --surface-light: #F8F8F8;
        --text: #333333;
        --text-muted: #666666;
        --text-strong: #000000;
        --border: 1px solid rgba(212, 175, 55, 0.3);
        --border-light: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    body {
        background: linear-gradient(135deg, #FAFAFA 0%, #F0F0F0 100%);
    }
    
    .site-header {
        background: rgba(250, 250, 250, 0.95);
    }
}

/* ===== WORDPRESS CORE STYLES ===== */
.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100vw;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.wp-block-image img {
    border-radius: var(--radius-md);
}

.wp-block-quote {
    border-left: 3px solid var(--primary);
    padding-left: 2rem;
    font-style: italic;
    color: var(--text-muted);
}
/* Fix for header layout when not scrolled */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
@media (max-width: 1024px) {
    .site-header,
    .site-header-inner {
        flex-direction: column;
        gap: 1.5rem;
    }
}
