@charset "UTF-8";

/* ==========================================================================
   The Swiss Quality Consulting GmbH — Global Stylesheet
   Brand: Swiss flag — red #D52B1E on white, squared geometry, generous space.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --swiss-red: #D52B1E;
    --swiss-red-dark: #B11F14;
    --swiss-red-soft: #FBEDEB;
    --swiss-white: #FFFFFF;

    /* Neutrals */
    --off-white: #F5F6F8;
    --text-dark: #14181C;
    --text-muted: #55606A;
    --text-subtle: #78838D;
    --border-color: #E2E8F0;
    --border-strong: #CBD5E1;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(20, 24, 28, 0.05);
    --shadow-md: 0 2px 6px rgba(20, 24, 28, 0.06), 0 8px 24px rgba(20, 24, 28, 0.05);
    --shadow-red: 0 4px 16px rgba(213, 43, 30, 0.10);

    /* Rhythm */
    --radius: 6px;
    --radius-lg: 10px;
    --container: 1060px;

    /* Type */
    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-base);
    font-size: 16px;
    color: var(--text-dark);
    background-color: var(--off-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, table {
    margin: 0;
}

h1, h2, h3, h4 {
    line-height: 1.25;
    text-wrap: balance;
}

img, iframe {
    max-width: 100%;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--swiss-red);
}

strong {
    font-weight: 700;
    color: var(--text-dark);
}

/* Visible keyboard focus on every interactive element */
a:focus-visible,
button:focus-visible,
iframe:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--swiss-red);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Skip link for keyboard and screen-reader users */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--swiss-red);
    color: var(--swiss-white);
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   3. Swiss top bar
   -------------------------------------------------------------------------- */
.swiss-top-bar {
    background-color: var(--swiss-red);
    color: var(--swiss-white);
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.swiss-cross-icon {
    display: inline-block;
    flex: none;
    width: 14px;
    height: 14px;
    background: var(--swiss-white);
    clip-path: polygon(35% 0%, 65% 0%, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0% 65%, 0% 35%, 35% 35%);
}

/* --------------------------------------------------------------------------
   4. Navigation
   -------------------------------------------------------------------------- */
nav {
    background-color: var(--swiss-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius);
    position: relative;
    transition: color 0.18s ease, background-color 0.18s ease;
}

nav a:hover {
    color: var(--swiss-red);
    background-color: var(--swiss-red-soft);
}

nav a.active {
    color: var(--swiss-red);
}

nav a.active::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.1rem;
    height: 2px;
    background-color: var(--swiss-red);
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   5. Page header
   -------------------------------------------------------------------------- */
header {
    background-color: var(--swiss-white);
    padding: 3rem 1.5rem 2.75rem;
    text-align: center;
    border-bottom: 3px solid var(--swiss-red);
}

.logo {
    font-size: clamp(1.5rem, 4.5vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    line-height: 1.1;
}

.logo span {
    color: var(--swiss-red);
}

/* Logo mark — sizing lives here instead of a repeated inline style on each page */
.logo .swiss-cross-icon {
    background: var(--swiss-red);
    width: 24px;
    height: 24px;
}

header h1 {
    font-size: clamp(1.35rem, 3.2vw, 1.75rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
}

/* Header subtitle — replaces the repeated inline style on every page */
.header-sub {
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 62ch;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   6. Layout
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 3rem 1.5rem 1rem;
}

section {
    margin-bottom: 3.5rem;
}

section:last-child {
    margin-bottom: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
    background-color: var(--off-white);
    padding: 0 1.25rem;
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--swiss-red);
    z-index: 0;
}

/* --------------------------------------------------------------------------
   7. Hero banner
   -------------------------------------------------------------------------- */
.hero-banner {
    background-color: var(--swiss-white);
    border: 2px solid var(--swiss-red);
    padding: 2.25rem 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: var(--shadow-red);
}

.hero-banner h3 {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    color: var(--swiss-red);
    margin-bottom: 0.85rem;
    font-weight: 800;
}

.hero-banner p {
    max-width: 68ch;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. Buttons & calls to action
   -------------------------------------------------------------------------- */
.btn-cta {
    display: inline-block;
    background-color: var(--swiss-red);
    color: var(--swiss-white);
    padding: 0.85rem 1.75rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius);
    margin-top: 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.btn-cta:hover {
    background-color: var(--swiss-red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-red);
}

.btn-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta.btn-secondary {
    background-color: transparent;
    color: var(--swiss-red);
    border: 2px solid var(--swiss-red);
    box-shadow: none;
}

.btn-cta.btn-secondary:hover {
    background-color: var(--swiss-red);
    color: var(--swiss-white);
}

/*  Prominent CTA line that is deliberately not a hyperlink.
    Used where the next step is to contact us by email or phone,
    which are published as plain text by policy. */
.cta-line {
    display: block;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
    color: var(--swiss-red);
}

.cta-line + .cta-detail {
    margin-top: 0.35rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Grids & cards
   -------------------------------------------------------------------------- */
/* Column counts are explicit so the class name matches the rendered layout
   and card rows stay balanced; they collapse at the breakpoints in section 19. */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.card {
    background: var(--swiss-white);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--swiss-red);
    padding: 1.65rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.card p {
    color: var(--text-muted);
}

.contact-box {
    background: var(--swiss-white);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--swiss-red);
    padding: 2.25rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.contact-box h3 {
    margin-bottom: 0.5rem;
    color: var(--swiss-red);
    font-size: 1.2rem;
}

.contact-box p {
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. Badges (index.php)
   -------------------------------------------------------------------------- */
.badge-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.badge {
    background-color: var(--off-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
}

/* --------------------------------------------------------------------------
   11. Sectors served (index.php)  — previously unstyled
   -------------------------------------------------------------------------- */
.sectors {
    background: var(--swiss-white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--swiss-red);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin-bottom: 3.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.sectors h3 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-subtle);
    font-weight: 700;
    margin-bottom: 1rem;
}

.sectors-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.sector-tag {
    display: inline-block;
    background-color: var(--swiss-red-soft);
    color: var(--swiss-red-dark);
    border: 1px solid rgba(213, 43, 30, 0.22);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   12. Highlight boxes (careers.php, impact.php)  — .impact-box previously unstyled
   -------------------------------------------------------------------------- */
.impact-box,
.partner-box {
    background-color: var(--swiss-white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--swiss-red);
    padding: 1.75rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.impact-box h3,
.partner-box h3 {
    color: var(--swiss-red);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.impact-box p,
.partner-box p {
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. Policy cards (careers.php)  — previously unstyled
   -------------------------------------------------------------------------- */
.policy-card {
    background: var(--swiss-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.65rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.policy-card h3 {
    font-size: 1.08rem;
    color: var(--swiss-red);
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

.policy-card p {
    color: var(--text-muted);
}

/* Conclusion variant — replaces the inline style previously used */
.policy-card.policy-conclusion {
    border-left: 4px solid var(--swiss-red);
    background-color: var(--swiss-red-soft);
    border-color: rgba(213, 43, 30, 0.18);
}

.policy-card.policy-conclusion p {
    color: var(--text-dark);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   14. Lists
   -------------------------------------------------------------------------- */
.list-styled,
.policy-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.list-styled li,
.policy-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.list-styled li:last-child,
.policy-list li:last-child {
    margin-bottom: 0;
}

.list-styled li::before,
.policy-list li::before {
    content: "•";
    color: var(--swiss-red);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    position: absolute;
    left: 0.15rem;
    top: 0.35rem;
}

/* --------------------------------------------------------------------------
   15. Tables (podcast.php)
   -------------------------------------------------------------------------- */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
}

.format-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    background: var(--swiss-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.format-table th,
.format-table td {
    padding: 0.95rem 1.15rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.format-table th {
    background-color: var(--off-white);
    color: var(--swiss-red);
    font-weight: 700;
    width: 30%;
    white-space: nowrap;
}

.format-table td {
    color: var(--text-muted);
}

.format-table tr:last-child th,
.format-table tr:last-child td {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   16. Media embeds (testimonials.php)
   -------------------------------------------------------------------------- */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background-color: #000;
    box-shadow: var(--shadow-sm);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   17. Quotes & roles (testimonials.php)
   -------------------------------------------------------------------------- */
blockquote {
    font-style: italic;
    color: var(--text-muted);
    border-left: 3px solid var(--swiss-red);
    padding-left: 1rem;
    margin-top: 0.75rem;
}

.role {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--swiss-red);
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
footer {
    text-align: center;
    padding: 2.75rem 1.5rem;
    font-size: 0.88rem;
    color: var(--swiss-white);
    background-color: var(--swiss-red);
    margin-top: 3.5rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer p:last-child {
    margin-bottom: 0;
}

footer a {
    color: var(--swiss-white);
}

.footer-contact {
    font-size: 0.82rem;
    opacity: 0.92;
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    body {
        font-size: 15.5px;
    }

    .swiss-top-bar {
        font-size: 0.7rem;
        letter-spacing: 0.05em;
        padding: 0.55rem 0.85rem;
    }

    nav {
        padding: 0.5rem 0.75rem;
        gap: 0.15rem 0.25rem;
    }

    nav a {
        font-size: 0.88rem;
        padding: 0.4rem 0.6rem;
    }

    nav a.active::after {
        left: 0.6rem;
        right: 0.6rem;
    }

    header {
        padding: 2.25rem 1.25rem 2rem;
    }

    .container {
        padding: 2.25rem 1.25rem 1rem;
    }

    section {
        margin-bottom: 2.75rem;
    }

    .hero-banner {
        padding: 1.75rem 1.35rem;
        margin-bottom: 2.25rem;
    }

    .card,
    .policy-card,
    .impact-box,
    .partner-box {
        padding: 1.35rem;
    }

    .contact-box {
        padding: 1.75rem 1.35rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-2,
    .grid-3 {
        gap: 1.15rem;
    }

    .format-table th,
    .format-table td {
        padding: 0.8rem 0.9rem;
    }
}

@media (max-width: 600px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .swiss-top-bar .swiss-cross-icon {
        display: none;
    }

    /* Stack the mark above the wordmark rather than letting the name
       wrap awkwardly around it. */
    .logo {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 1.45rem;
    }

    nav a {
        font-size: 0.84rem;
        padding: 0.35rem 0.5rem;
    }

    .sectors {
        padding: 1.25rem 1rem;
    }

    footer {
        padding: 2.25rem 1.15rem;
    }
}

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */
@media print {
    nav,
    .swiss-top-bar,
    .video-container {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }

    .card,
    .policy-card,
    .hero-banner,
    .contact-box {
        box-shadow: none;
        break-inside: avoid;
    }
}

/* --------------------------------------------------------------------------
   21. Card & block modifiers (replace the last per-page inline styles)
   -------------------------------------------------------------------------- */

/* Full-width statement card — no red top rule, used for long-form prose */
.card.card-plain {
    border-top: 1px solid var(--border-color);
}

/* Lead-in card that introduces the grid beneath it */
.card.card-lead {
    margin-bottom: 1.5rem;
}

/* Closing card that follows a grid */
.card.card-close {
    margin-top: 1.5rem;
    text-align: center;
}

/* Card that spans every column of its grid */
.card.card-wide {
    grid-column: 1 / -1;
}

/* Company name line inside a contact box */
.contact-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}
