/*
Theme Name: Black Flamingo Corporate
Theme URI: https://www.black-flamingo.eu
Author: Black Flamingo e.U.
Author URI: https://www.black-flamingo.eu
Description: A refined one-page corporate theme for Black Flamingo e.U. — a Salzburg-based holding company for premium cosmetics brands. Features warm color palette, luxury typography (Playfair Display + Jost), responsive hero banner with image support, brand portfolio showcase, and full Customizer integration for content management without code.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: black-flamingo
Tags: one-column, custom-logo, featured-images, translation-ready
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
*/

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* === VARIABLES === */
:root {
    --c-black: #1c1b18;
    --c-dark: #2a2820;
    --c-footer: #141310;
    --c-charcoal: #4a4842;
    --c-grey-dark: #5a5850;
    --c-grey: #8a8780;
    --c-grey-mid: #6b6862;
    --c-grey-light: #b5b2ab;
    --c-line: #c8c5be;
    --c-sand: #e4e2dc;
    --c-line-dark: #dbd8d2;
    --c-warm-bg: #f5f4f2;
    --c-warm-white: #faf9f7;
    --c-white: #ffffff;
    --c-footer-text: #3a3830;
    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    --t-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --t-fast: 0.2s ease;
    --max-width: 1100px;
}

/* === BASE === */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--c-black);
    background: var(--c-footer);
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -0.01em; }
p { font-size: clamp(0.9rem, 1.1vw, 1.05rem); color: var(--c-charcoal); }

/* === NAVIGATION === */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    background: var(--c-warm-bg);
    transition: all var(--t-smooth);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 88px;
    transition: min-height var(--t-smooth);
}

.site-nav.scrolled {
    background: rgba(245, 244, 242, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.site-nav.scrolled .nav-inner {
    min-height: 72px;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img,
.nav-logo svg { height: 64px; width: auto; transition: height var(--t-smooth); }
.site-nav.scrolled .nav-logo img,
.site-nav.scrolled .nav-logo svg { height: 52px; }

.nav-logo-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-black);
}

.nav-links { display: flex; gap: 28px; list-style: none; }

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-grey);
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--c-black);
    transition: width var(--t-smooth);
}

.nav-links a:hover { color: var(--c-black); }
.nav-links a:hover::after { width: 100%; }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--c-black);
    transition: all var(--t-fast);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === HERO SECTION === */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #e8e6e1;
    margin-top: 88px;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 48px;
    max-width: 700px;
}

.hero-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-title em {
    font-style: italic;
    font-weight: 300;
}

.hero-description {
    max-width: 480px;
    margin: 0 auto;
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-line {
    width: 36px;
    height: 1px;
    background: var(--c-line);
    margin: 36px auto 0;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero-scroll {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 20px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.1s;
}

.hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 24px;
    background: currentColor;
    margin: 8px auto 0;
    opacity: 0.4;
    animation: scrollPulse 2s ease-in-out infinite;
}

/* === SHARED SECTION === */
.section {
    padding: 80px 48px;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-grey-light);
    margin-bottom: 8px;
}

.section-title {
    color: var(--c-black);
    margin-bottom: 36px;
}

/* === ABOUT SECTION === */
.about-section { background: var(--c-warm-bg); }

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
    align-items: start;
}

.about-text p {
    font-size: 0.85rem;
    color: var(--c-charcoal);
    margin-bottom: 14px;
    line-height: 1.75;
}

.about-details { display: flex; flex-direction: column; gap: 0; padding-top: 4px; }

.about-detail-item {
    border-top: 1px solid var(--c-line-dark);
    padding-top: 12px;
    margin-bottom: 20px;
}

.about-detail-label {
    font-size: 0.56rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-grey-light);
    margin-bottom: 3px;
}

.about-detail-value {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--c-black);
}

/* === WHAT WE DO SECTION === */
.wwd-section {
    background: var(--c-black);
    color: var(--c-warm-white);
}

.wwd-section .section-label { color: var(--c-grey-mid); }
.wwd-section .section-title { color: var(--c-warm-white); }

.wwd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
}

.wwd-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--c-footer-text);
    margin-bottom: 14px;
}

.wwd-title {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-warm-white);
    margin-bottom: 12px;
}

.wwd-text {
    font-size: 0.8rem;
    color: var(--c-grey);
    line-height: 1.7;
}

/* === BRANDS SECTION === */
.brands-section { background: var(--c-white); }

.brands-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 24px 0;
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    transition: background var(--t-smooth);
}

.brand-card:first-child {
    border-right: 1px solid var(--c-sand);
}

.brand-card:hover { background: var(--c-warm-bg); }

.brand-logo {
    max-width: 160px;
    max-height: 56px;
    margin-bottom: 20px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity var(--t-smooth);
}

.brand-card:hover .brand-logo { opacity: 1; }

.brand-logo-placeholder {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--c-black);
    margin-bottom: 20px;
}

.brand-description {
    font-size: 0.8rem;
    color: var(--c-grey);
    line-height: 1.7;
    max-width: 280px;
    margin-bottom: 20px;
}

.brand-link {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-black);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.brand-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--c-line);
    transition: background var(--t-smooth);
}

.brand-link:hover::after { background: var(--c-black); }

.brand-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--t-smooth);
}

.brand-link:hover svg { transform: translateX(3px); }

/* === CONTACT SECTION === */
.contact-section {
    background: var(--c-black);
    color: var(--c-warm-white);
}

.contact-section .section-label { color: var(--c-grey-mid); }
.contact-section .section-title { color: var(--c-warm-white); }

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
}

.contact-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-group { margin-bottom: 18px; }

.contact-label {
    font-size: 0.56rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-grey-dark);
    margin-bottom: 5px;
}

.contact-value {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--c-line-dark);
    line-height: 1.65;
}

.contact-value a { color: var(--c-line-dark); }
.contact-value a:hover { color: var(--c-warm-white); }

/* === FOOTER === */
.site-footer {
    background: var(--c-footer);
    padding: 56px 48px 32px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
}

.footer-logo img {
    height: 48px;
    width: auto;
    opacity: 0.35;
    filter: brightness(2.5);
}

.footer-tagline {
    text-align: center;
    margin-bottom: 32px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--c-grey);
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-grey);
    transition: color var(--t-fast);
}

.footer-links a:hover { color: var(--c-grey-light); }

.footer-line {
    width: 50px;
    height: 1px;
    background: var(--c-charcoal);
    margin: 0 auto 28px;
}

.footer-copy {
    text-align: center;
    font-size: 0.7rem;
    color: var(--c-grey-dark);
    letter-spacing: 0.03em;
}

/* === LEGAL PAGES === */
.legal-page {
    padding: 140px 48px 100px;
    max-width: 800px;
    margin: 0 auto;
    background: var(--c-white);
}

.legal-page-wrap {
    background: var(--c-white);
}

.legal-page h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 48px;
    color: var(--c-black);
}

.legal-page h2 {
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--c-black);
    font-weight: 400;
}

.legal-page p {
    margin-bottom: 14px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.legal-page a { color: var(--c-grey); text-decoration: underline; }
.legal-page a:hover { color: var(--c-black); }

/* === 404 PAGE === */
.page-404 {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 48px 100px;
}

.page-404 h1 { font-size: 5rem; color: var(--c-line); margin-bottom: 16px; }
.page-404 p { margin-bottom: 24px; }
.page-404 a { border-bottom: 1px solid var(--c-line); padding-bottom: 2px; }
.page-404 a:hover { border-bottom-color: var(--c-black); }

/* === COOKIE NOTICE === */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--c-dark);
    color: var(--c-warm-white);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform var(--t-smooth);
    font-size: 0.85rem;
}

.cookie-notice.visible { transform: translateY(0); }
.cookie-notice p { color: var(--c-grey-light); font-size: 0.8rem; }
.cookie-notice a { color: var(--c-warm-white); text-decoration: underline; }

.cookie-btn {
    background: var(--c-white);
    color: var(--c-black);
    border: none;
    padding: 8px 20px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--t-fast);
}

.cookie-btn:hover { background: var(--c-warm-bg); }

/* === ANIMATIONS === */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.3); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .wwd-grid { grid-template-columns: 1fr; gap: 36px; }
    .brands-grid { grid-template-columns: 1fr; }
    .brand-card:first-child { border-right: none; border-bottom: 1px solid var(--c-sand); }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-right { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .site-nav { padding: 0; }
    .nav-inner { padding: 0 24px; min-height: 72px; }
    .site-nav.scrolled .nav-inner { min-height: 60px; }
    .nav-logo img, .nav-logo svg { height: 48px; }
    .site-nav.scrolled .nav-logo img, .site-nav.scrolled .nav-logo svg { height: 40px; }
    .hero-section { margin-top: 72px; }

    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--c-white);
        padding: 80px 36px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform var(--t-smooth);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
    }

    .nav-links.open { transform: translateX(0); }
    .nav-links a { font-size: 0.85rem; color: var(--c-black); }

    .section { padding: 60px 24px; }
    .hero-content { padding: 60px 24px; }
    .brand-card { padding: 32px 20px; }

    .footer-links { gap: 20px; }

    .cookie-notice {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .hero-section { min-height: 80vh; }
    .contact-right { grid-template-columns: 1fr; }
    .footer-links { gap: 16px; }
}

/* === WORDPRESS ADMIN BAR === */
body.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .site-nav { top: 46px; }
}

/* === SCREEN READER === */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* === WP ALIGNMENT === */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter { display: block; margin: 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
