/*
Theme Name: Staub Architekten
Theme URI: https://staub-architekten.ch
Author: Staub Architekten
Description: Custom theme based on the design of Igual&Guggenheim for Staub Architekten. Clean, minimal architecture firm website with centered layout, sticky navigation, and custom typography.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: staub-architekten
*/

/* Custom Fonts */
@font-face {
    font-family: 'TitleFont';
    src: url('assets/fonts/titlefont.eot');
    src: url('assets/fonts/titlefont.eot?#iefix') format('embedded-opentype'),
         url('assets/fonts/titlefont.woff2') format('woff2'),
         url('assets/fonts/titlefont.woff') format('woff'),
         url('assets/fonts/titlefont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Base Styles */
html {
    text-decoration: none;
    font-family: 'Swis721 LtCn Bt', 'Open Sans', 'Arial', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Swis721 LtCn Bt', 'Open Sans', 'Arial', sans-serif;
    color: #000;
    font-size: 12px;
    background-color: #fff;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    color: #B6A771;
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
}

/* Wrapper */
#wrapper {
    max-width: 1300px;
    width: 90%;
    margin-left: 50%;
    transform: translateX(-50%);
    min-height: calc(100vh - 130px);
}

/* Title / Logo */
#title {
    width: 100%;
    background-color: white;
    z-index: 1;
    margin-bottom: 2vw;
    margin-top: 30px;
    text-align: center;
}

#title h1 {
    font-family: 'TitleFont', 'Georgia', serif;
    font-weight: 400;
    font-size: calc(10px + 3vw);
    text-align: center;
    margin-bottom: 0;
    letter-spacing: 2px;
}

@media only screen and (min-width: 1300px) {
    #title h1 {
        font-size: 80px;
    }
}

/* Navigation */
#navigationbar {
    position: sticky;
    top: 0;
    z-index: 3;
    margin-bottom: 1vw;
    background-color: white;
    width: 100%;
    text-align: center;
    padding: 0 1%;
}

#navigationbar ul {
    padding: 0;
    margin: 0;
}

#navigationbar li {
    display: inline-block;
    font-size: calc(18px + 0.5vw);
    list-style: none;
    margin-top: 1vh;
    padding-bottom: 10px;
}

#navigationbar li a {
    font-family: 'Swis721 LtCn Bt', 'Open Sans', 'Arial', sans-serif;
    font-size: calc(18px + 0.5vw);
    letter-spacing: 0.5px;
    padding: 0 10px;
}

#navigationbar li a:hover,
#navigationbar li.current-menu-item a,
#navigationbar li a.selected {
    color: #B6A771;
}

#navigationbar .nav-separator {
    color: #000;
    padding: 0 5px;
}

/* Content */
#content {
    clear: both;
    min-height: 200px;
    width: 100%;
    margin: 0 auto 20px;
}

#content a {
    text-decoration: underline;
}

#content a:hover {
    color: #B6A771;
}

/* Typography */
h2 {
    font-size: calc(10px + 0.5vw);
    text-align: center;
    margin-top: 5px;
}

h3 {
    font-size: calc(20px + 2vw);
    font-weight: normal;
    margin: 10px 0;
}

p {
    margin: 10px 0;
}

/* Homepage Hero */
.bigpic {
    max-height: 65vh;
    max-width: 100%;
    margin-left: 50%;
    transform: translateX(-50%);
    display: block;
}

/* Project Grid - matching igualguggenheim */
.b2 {
    width: 48%;
    background-color: white;
    overflow: hidden;
    margin: 0 1%;
}

.h2 {
    width: 48%;
    background-color: white;
    overflow: hidden;
    margin: 0 1%;
}

.normal {
    width: 31.33%;
    background-color: white;
    overflow: hidden;
    margin: 0 1%;
}

.l2 {
    width: 64.67%;
    background-color: white;
    overflow: hidden;
    margin: 0 1%;
}

@media only screen and (max-width: 445px) {
    .b2, .h2, .normal, .l2 {
        width: 97%;
        margin: 0 1%;
    }
}

/* Tile items */
.tile-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 2%;
}

.tile-item img {
    width: 100%;
    height: auto;
    display: block;
}

.tile-item .tile-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.9);
    padding: 8px 12px;
    font-size: calc(12px + 0.3vw);
}

/* Projects Archive */
.project-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1%;
}

.project-item {
    position: relative;
    width: 31.33%;
    margin: 0 1% 2%;
    overflow: hidden;
    background: white;
}

.project-item img {
    width: 100%;
    height: auto;
    display: block;
}

.project-item h3 {
    font-size: calc(14px + 0.3vw);
    margin: 8px 0 4px;
    font-weight: normal;
}

.project-item p {
    font-size: calc(11px + 0.2vw);
    margin: 0 0 8px;
    color: #555;
}

/* Team Page */
.team-member {
    margin-bottom: 30px;
    overflow: hidden;
}

.team-member h3 {
    font-size: calc(16px + 0.5vw);
    margin-bottom: 5px;
}

.team-member .role {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
}

.team-member .bio {
    line-height: 1.6;
}

/* Contact Page */
.contact-info {
    margin: 20px 0;
    line-height: 1.8;
    font-size: calc(14px + 0.3vw);
}

.contact-info a {
    text-decoration: underline;
}

/* Footer */
footer {
    position: relative;
    margin: 20px;
    font-size: 10px;
    color: #CCCCCC;
}

footer a {
    color: #E5E5E5;
    font-size: 11px;
}

/* Images half/full */
.half {
    margin: 0.9%;
    width: 47%;
    display: inline-block;
}

.full {
    margin: 1%;
    width: 98%;
    height: auto;
}

/* Lightbox (minimal implementation) */
.lb-image {
    max-width: inherit;
}

/* Responsive */
@media only screen and (min-width: 446px) {
    body p, body strong, body a, body h2 {
        font-size: calc(10px + 0.5vw);
    }
}

@media only screen and (max-width: 445px) {
    .project-item {
        width: 97%;
        margin: 0 1% 15px;
    }
    .project-item h3,
    .project-item p {
        text-align: center;
    }
}
