/* ===========================
   Hirschblau Consulting
   Custom Stylesheet
   =========================== */

/* --- Design Tokens --- */
:root {
    --color-primary: #5f97b1;
    --color-dark: #242d36;
    --color-light: #f0f0f0;
    --color-muted: #999;
    --color-text: #333;
    --color-white: #fff;
    --font-heading: "Dosis", sans-serif;
    --font-body: "Source Sans Pro", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* --- Layout --- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Navigation --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(36, 45, 54, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-muted);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-white);
    text-decoration: none;
}

/* Hamburger button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-light);
    margin: 5px 0;
    transition:
        transform 0.3s,
        opacity 0.3s;
}

/* Hamburger animation when open */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    /*background-color: var(--color-dark);*/
    padding-top: 56px;
    background: linear-gradient(
        180deg,
        var(--color-dark) 0%,
        var(--color-dark) 10%,
        #2a3d4d 100%
    );
}

.hero-logo {
    text-align: center;
    font-family: var(--font-heading);
    animation: fadeIn 1s ease-out both;
}

.hero-logo .hirschblau {
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--color-primary);
    line-height: 1.6;
}

.hero-logo .consulting {
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: #ccc;
    margin-top: -0.5em;
    line-height: 1.1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --- Sections --- */
.section {
    padding: 4rem 0;
}

.section--light {
    background: var(--color-white);
    color: var(--color-text);
}

.section--dark {
    background: var(--color-dark);
    color: var(--color-light);
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.section--dark .section__title {
    color: var(--color-light);
}

.section--light .section__title {
    color: var(--color-text);
}

/* --- About --- */
.about-text p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.7;
}

/* --- Service Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 1.5rem;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-light);
}

/* --- Portfolio Grid --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.project {
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    padding: 8px;
    filter: grayscale(30%);
    opacity: 0.8;
    transition:
        filter 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.project-image:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
}

.project-info {
    padding: 0.75rem 0;
}

.project-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
}

.project-name a {
    color: var(--color-text);
}

.project-name a:hover {
    color: var(--color-primary);
}

.project-location {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.project-description a {
    color: var(--color-primary);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 12px;
    color: var(--color-muted);
    line-height: 1.5;
}

/* --- Footer --- */
.site-footer {
    background: linear-gradient(
        160deg,
        var(--color-dark) 0%,
        #2a3d4d 45%,
        #3a5a6e 100%
    );
    color: rgba(255, 255, 255, 0.85);
    padding: 5rem 0 2.5rem;
    text-align: center;
}

/* CTA card */
.footer-cta {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    max-width: 560px;
    margin: 0 auto 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.8rem;
}

.footer-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    padding: 0.55rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition:
        background 0.2s,
        border-color 0.2s;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

/* Footer meta */
.footer-meta {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    font-family: var(--font-heading);
    margin-bottom: 0.75rem;
}

.footer-logo .hirschblau {
    font-size: 1.3rem;
    color: var(--color-primary);
}

.footer-logo .consulting {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.45);
    margin-left: 0.15em;
}

.site-footer .address {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.site-footer .legal {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

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

/* --- Responsive (mobile: < 768px) --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(36, 45, 54, 0.98);
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.open {
        display: flex;
        max-height: 300px;
    }

    .nav-links a {
        padding: 0.75rem 1.5rem;
        font-size: 1.15rem;
    }

    .hamburger {
        display: block;
    }

    .site-nav .container {
        justify-content: flex-end;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 0;
    }
}
