/* =========================================================
   Standup Clean — main stylesheet
   ========================================================= */

:root {
    --color-brand: #203761;        /* navy — from the logo swoosh */
    --color-brand-dark: #16273f;   /* darker navy for gradients */
    --color-accent: #f74f15;       /* orange — from the wordmark */
    --color-accent-dark: #d63f0a;
    --color-dark: #1a2230;
    --color-text: #2d333d;
    --color-muted: #5f6671;
    --color-light: #f4f6f9;
    --color-white: #ffffff;
    --max-width: 1100px;
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 4rem;
    --radius: 6px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Reset / base --- */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-brand); }
h1, h2, h3 { line-height: 1.2; color: var(--color-dark); margin: 0 0 0.5em; }

/* --- Header --- */
.site-header {
    text-align: center;
    padding: var(--space-m) var(--space-s) var(--space-s);
    border-bottom: 1px solid #e3e9eb;
}
.site-header__logo img { margin: 0 auto; }
.site-header__tagline {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin: var(--space-s) 0;
}
.site-header__tagline span { font-size: 0.85rem; }

/* --- Navigation --- */
.site-nav__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-s);
    margin: var(--space-s) 0 0;
    padding: 0;
}
.site-nav__list a {
    text-decoration: none;
    font-weight: 600;
    color: var(--color-dark);
    padding: 0.4rem 0.2rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s;
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item a {
    border-bottom-color: var(--color-accent);
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    color: var(--color-white);
    padding: var(--space-l) var(--space-s);
    text-align: center;
}
.hero__content { position: relative; z-index: 1; }
.hero__title { color: var(--color-white); font-size: clamp(2.5rem, 6vw, 4rem); margin: 0; }
.hero__subtitle { font-size: 1.15rem; opacity: 0.95; margin-top: var(--space-s); }

/* --- Services --- */
.services { padding: var(--space-l) var(--space-s); }
.services__inner { max-width: var(--max-width); margin: 0 auto; }
.services__heading { text-align: center; font-size: 1.8rem; margin-bottom: var(--space-m); }
.services__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-s);
}
.services__list li {
    background: var(--color-light);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--color-accent);
    font-weight: 500;
}

/* --- Contact band --- */
.contact-band {
    background: var(--color-brand);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-l) var(--space-s);
}
.contact-band h2 { color: var(--color-white); }
.contact-band a { color: var(--color-accent); }
.contact-band__phone { font-size: 1.6rem; font-weight: 700; margin: var(--space-s) 0; }
.contact-band__phone a { text-decoration: none; }

/* --- Photo grid (Praxis page) --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-s);
    max-width: var(--max-width);
    margin: var(--space-l) auto;
    padding: 0 var(--space-s);
}
.photo-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* --- Page intro --- */
.page-intro {
    max-width: var(--max-width);
    margin: var(--space-l) auto var(--space-m);
    padding: 0 var(--space-s);
    text-align: center;
}
.page-intro h1 {
    font-size: 2.2rem;
    display: inline-block;
    padding-bottom: 0.4rem;
    border-bottom: 4px solid var(--color-brand);
}
.page-intro p { color: var(--color-muted); font-size: 1.1rem; margin-top: var(--space-s); }

/* --- Team cards --- */
.team {
    max-width: var(--max-width);
    margin: 0 auto var(--space-l);
    padding: 0 var(--space-s);
}
.team__member {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: var(--space-m);
    align-items: center;
    padding: var(--space-m);
    margin-bottom: var(--space-m);
    background: #fafbfc;
    border: 1px solid #e7ecf2;
    border-radius: 10px;
}
.team__member img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-brand);
    justify-self: center;
}
.team__name {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    color: var(--color-brand);
}
.team__role {
    color: var(--color-accent);
    font-weight: 700;
    margin: 0 0 var(--space-s);
}
.team__quals {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.team__quals li {
    background: #eef1f7;
    border: 1px solid #d6deeb;
    color: var(--color-brand);
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
}

/* --- Generic page --- */
.page-content {
    max-width: 800px;
    margin: var(--space-l) auto;
    padding: 0 var(--space-s);
}

/* --- Legal / Impressum --- */
.legal h2 {
    font-size: 1.3rem;
    margin-top: var(--space-m);
    color: var(--color-brand);
}
.legal p { margin-bottom: var(--space-s); }

/* --- Footer --- */
.site-footer {
    background: var(--color-light);
    padding: var(--space-m) var(--space-s);
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-muted);
}
.site-footer__copy { font-size: 0.85rem; margin-top: var(--space-s); }

/* --- Responsive --- */
@media (max-width: 700px) {
    .photo-grid { grid-template-columns: 1fr; }
    .team__member { grid-template-columns: 1fr; text-align: center; }
    .team__quals { justify-content: center; }
}

/* --- Print / PDF export --- */
@media print {
    /* Force background colors & images to print (navy bands, orange accents) */
    *, *::before, *::after {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    /* Keep cards and list items from splitting across pages */
    .team__member,
    .services__list li,
    .photo-grid img,
    .legal h2 {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    /* Start each main page section cleanly */
    .page-intro { page-break-before: auto; }
    /* Trim excessive vertical space so pages aren't half-empty */
    .hero, .services, .contact-band { padding-top: 2rem; padding-bottom: 2rem; }
    /* Avoid orphaned headings */
    h1, h2 { page-break-after: avoid; }
    /* Hide nothing essential; ensure links are readable in print */
    a { color: inherit; text-decoration: underline; }
}
