/*
Theme Name: Masswerk
Theme URI: https://masswerk.site
Author: Masswerk GmbH
Author URI: https://masswerk.site
Description: A dark, luxurious WordPress theme for Masswerk GmbH — Architekturbüro für individuelle Bauplanung. Features a cinematic hero, project portfolio, services grid, team and contact sections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: masswerk
Tags: architecture, dark, portfolio, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* ============================================================
   Base / Reset
============================================================ */
:root {
    --bg: #0b0b0d;
    --bg-alt: #131316;
    --bg-card: #18181c;
    --border: #26262c;
    --text: #e8e6e1;
    --text-dim: #9a978f;
    --gold: #c9a961;
    --gold-soft: #d8bd7e;
    --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
    --container: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--gold-soft); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; letter-spacing: .005em; color: #f5f2ec; }
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.5rem; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ============================================================
   Header / Navigation
============================================================ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 24px 0;
    background: rgba(11,11,13,0);
    transition: background .35s ease, padding .35s ease, border-color .35s ease;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(11,11,13,.92);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.site-brand { font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: .04em; color: #fff; }
.site-brand span { color: var(--gold); }
.main-nav ul { display: flex; gap: 36px; list-style: none; }
.main-nav a {
    color: var(--text); font-size: .85rem; text-transform: uppercase;
    letter-spacing: .15em; position: relative; padding: 4px 0;
}
.main-nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 0; height: 1px; background: var(--gold); transition: width .3s ease;
}
.main-nav a:hover::after { width: 100%; }
.menu-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* ============================================================
   Hero
============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
    padding-top: 100px;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(11,11,13,.4) 0%, rgba(11,11,13,.85) 100%),
        url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?w=1920&q=80') center/cover no-repeat;
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-eyebrow {
    display: inline-block; color: var(--gold);
    font-size: .8rem; letter-spacing: .35em; text-transform: uppercase;
    margin-bottom: 24px;
    padding-left: 60px; position: relative;
}
.hero-eyebrow::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 48px; height: 1px; background: var(--gold);
}
.hero h1 { margin-bottom: 28px; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero-tagline {
    font-family: var(--font-serif); font-size: 1.4rem; font-style: italic;
    color: var(--text-dim); max-width: 620px; margin-bottom: 48px;
}
.btn {
    display: inline-block;
    padding: 16px 36px;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    font-size: .8rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    transition: all .3s ease;
    cursor: pointer;
}
.btn:hover { background: var(--gold); color: var(--bg); }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   Sections
============================================================ */
.section { padding: 140px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 80px; max-width: 720px; }
.section-eyebrow {
    color: var(--gold); font-size: .75rem; letter-spacing: .35em;
    text-transform: uppercase; margin-bottom: 16px; display: block;
}
.section-head p { color: var(--text-dim); font-size: 1.05rem; margin-top: 20px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.about-text p { color: var(--text-dim); margin-bottom: 20px; font-size: 1.05rem; }
.about-text p:first-of-type::first-letter {
    font-family: var(--font-serif); font-size: 4rem;
    float: left; line-height: .9; padding: 8px 12px 0 0; color: var(--gold);
}
.about-img { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.05); }
.about-img::after {
    content: ""; position: absolute; inset: 12px; border: 1px solid var(--gold);
    pointer-events: none; transform: translate(18px,18px);
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.stat-num { font-family: var(--font-serif); font-size: 3rem; color: var(--gold); display: block; }
.stat-label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.service-card { background: var(--bg); padding: 48px 36px; transition: background .3s ease; position: relative; }
.service-card:hover { background: var(--bg-card); }
.service-num { font-family: var(--font-serif); color: var(--gold); font-size: .9rem; letter-spacing: .2em; margin-bottom: 24px; display: block; }
.service-card h3 { margin-bottom: 16px; color: #fff; }
.service-card p { color: var(--text-dim); font-size: .95rem; }
.service-card::before {
    content: ""; position: absolute; bottom: 0; left: 0; height: 2px; width: 0;
    background: var(--gold); transition: width .35s ease;
}
.service-card:hover::before { width: 100%; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.project-card { position: relative; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; filter: brightness(.75); }
.project-card:hover img { transform: scale(1.06); }
.project-overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 32px;
    background: linear-gradient(0deg, rgba(11,11,13,.95) 0%, rgba(11,11,13,0) 100%);
}
.project-meta { color: var(--gold); font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; margin-bottom: 8px; }
.project-card h3 { color: #fff; font-size: 1.75rem; }
.project-card .arrow {
    position: absolute; top: 24px; right: 24px;
    width: 44px; height: 44px; border: 1px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); opacity: 0; transform: translate(-8px,8px);
    transition: all .3s ease;
}
.project-card:hover .arrow { opacity: 1; transform: translate(0,0); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.team-card { text-align: center; }
.team-photo {
    aspect-ratio: 3/4; overflow: hidden; margin-bottom: 24px; position: relative;
    background: var(--bg-card);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) contrast(1.1); transition: filter .4s ease; }
.team-card:hover .team-photo img { filter: grayscale(0) contrast(1); }
.team-card h3 { color: #fff; margin-bottom: 6px; }
.team-role { color: var(--gold); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info ul { list-style: none; }
.contact-info li { padding: 24px 0; border-bottom: 1px solid var(--border); display: flex; gap: 24px; align-items: flex-start; }
.contact-info li:last-child { border-bottom: none; }
.contact-icon { color: var(--gold); flex-shrink: 0; width: 24px; height: 24px; }
.contact-label { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: 4px; }
.contact-value { color: var(--text); font-size: 1.05rem; }
.contact-value a { color: var(--text); }
.contact-value a:hover { color: var(--gold); }
.contact-form { display: grid; gap: 20px; }
.contact-form input, .contact-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color .3s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-dim); letter-spacing: .05em; }

/* ============================================================
   Footer
============================================================ */
.site-footer {
    background: #050506;
    padding: 80px 0 32px;
    border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.footer-brand { font-family: var(--font-serif); font-size: 1.75rem; color: #fff; margin-bottom: 16px; display: block; }
.footer-brand span { color: var(--gold); }
.footer-col h4 {
    font-family: var(--font-sans); font-size: .75rem; letter-spacing: .25em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 24px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--text-dim); font-size: .95rem; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { color: var(--text-dim); font-size: .95rem; }
.footer-bottom {
    padding-top: 32px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    color: var(--text-dim); font-size: .85rem;
}

/* ============================================================
   Reveal animation
============================================================ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 960px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
    .services-grid, .team-grid, .projects-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .section { padding: 90px 0; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-alt); padding: 24px; border-top: 1px solid var(--border); }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 20px; }
    .menu-toggle { display: block; }
    .services-grid, .team-grid, .projects-grid, .footer-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   WordPress core classes
============================================================ */
.alignleft { float: left; margin: 0 24px 24px 0; }
.alignright { float: right; margin: 0 0 24px 24px; }
.aligncenter { display: block; margin: 0 auto 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--text-dim); text-align: center; margin-top: 8px; }
.screen-reader-text {
    position: absolute !important; clip: rect(1px,1px,1px,1px);
    width: 1px; height: 1px; overflow: hidden;
}
.sticky, .gallery-caption, .bypostauthor { display: block; }
