/* Swiss Typography Hugo Theme
   Based on International Typographic Style (1950s)
   Typography guidelines adapted from Stadt Zürich CD
   ================================================== */

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

html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DIN', 'Bahnschrift', 'D-DIN', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: #1a1a1a;
    background: #ffffff;
    text-align: left;
}

/* Container */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Typography - Two weights only: 700 (Heavy) for headings, 400 (Medium) for body */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-align: left;
    text-transform: none; /* No all-caps */
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
}

h3 {
    font-size: 1.125rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1rem;
    text-align: left;
}

/* Lead text - slightly larger, same weight */
.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.4;
    color: #666666;
    margin-bottom: 3rem;
}

/* Meta text - smaller, same weight */
.meta {
    font-size: 0.875rem;
    font-weight: 400;
    color: #666666;
}

/* Links */
a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #e5e5e5;
    transition: border-color 0.2s ease;
}

a:hover {
    border-color: #98bf1e;
}

/* Navigation */
header {
    margin-bottom: 4rem;
}

nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    align-items: center;
}

nav a {
    font-weight: 400;
    border-bottom: none;
}

nav a.site-logo {
    display: flex;
    align-items: center;
}

nav a.site-logo img {
    height: 24px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

nav a.active {
    color: #98bf1e;
}

nav a.cta {
    font-weight: 700;
    border: 2px solid #1a1a1a;
    padding: 0.375rem 1rem;
}

nav a.cta:hover {
    border-color: #98bf1e;
    color: #98bf1e;
}

/* Accent horizontal rule - strong */
hr.accent {
    border: none;
    height: 2px;
    background: #1a1a1a;
    margin-top: 1.5rem;
}

hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 2.5rem 0;
}

/* Link Blocks - Typographic Element */
.post-list {
    list-style: none;
    margin-top: 2.5rem;
}

.post-list li {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid #98bf1e;
}

.post-list a {
    display: block;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.2;
    border-bottom: none;
}

.post-list .meta {
    display: block;
    margin-top: 0.25rem;
}

.post-list a:hover {
    color: #98bf1e;
}

/* Article */
article {
    margin-bottom: 4rem;
}

.post-header {
    margin-bottom: 2.5rem;
}

.post-header h1 {
    margin-bottom: 0.5rem;
}

.content {
    text-align: left;
}

.content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

.content blockquote {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 3px solid #98bf1e;
    font-style: normal; /* Italic only for Latin terms */
    color: #666666;
}

/* Section links - standalone links as typographic blocks */
.content p > a:only-child {
    display: block;
    font-weight: 700;
    padding-left: 1rem;
    border-left: 3px solid #98bf1e;
    border-bottom: none;
}

.content p > a:only-child:hover {
    color: #98bf1e;
}

.content ul, .content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content code {
    font-family: monospace;
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 0.125rem 0.375rem;
}

.content pre {
    background: #f5f5f5;
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.content pre code {
    background: none;
    padding: 0;
}

/* Footer */
footer {
    margin-top: 4rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-nav a {
    font-size: 0.875rem;
    border-bottom: none;
}

.footer-nav a:hover {
    color: #98bf1e;
}

/* Hero Section */
.hero {
    margin-bottom: 3rem;
}

.hero .question {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.hero .answer {
    font-size: 1.25rem;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.hero .metrics {
    margin: 2rem 0;
}

.hero .trust-bar {
    font-size: 0.875rem;
    color: #666666;
}

/* Choice Blocks */
.choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

a.choice {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 2px solid #1a1a1a;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

a.choice:hover {
    border-color: #98bf1e;
    transform: translateY(-2px);
}

.choice h2 {
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.choice p {
    color: #666666;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.choice-cta {
    font-weight: 700;
    color: #98bf1e;
}

a.choice:hover .choice-cta {
    text-decoration: underline;
}

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

/* Box Grid - reusable for 2 or 3 columns */
.boxes {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

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

.boxes-3 a.box:last-child {
    grid-column: 1;
}

.boxes-4 {
    grid-template-columns: repeat(2, 1fr);
}

a.box {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 2px solid #1a1a1a;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

a.box:hover {
    border-color: #98bf1e;
    transform: translateY(-2px);
}

.box h2 {
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.box p {
    color: #666666;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.box-cta {
    font-weight: 700;
    color: #98bf1e;
}

a.box:hover .box-cta {
    text-decoration: underline;
}

.box-robot {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0;
    border: none;
    background: transparent;
    aspect-ratio: 1;
}

.robot-image {
    max-height: 100%;
    width: auto;
}

@media (max-width: 900px) {
    .boxes-3 {
        grid-template-columns: 1fr;
    }
}

/* BARC Grid - 3x3 + 1 layout with smaller squares */
.barc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.barc-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 2px solid #1a1a1a;
    aspect-ratio: 1;
    position: relative;
}

.barc-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    height: 45px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.barc-item:hover .barc-badge {
    filter: grayscale(0%);
    opacity: 1;
}

.barc-item:last-child {
    grid-column: 1;
}

.barc-category {
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.barc-score {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.barc-desc {
    font-size: 0.75rem;
    color: #666666;
    line-height: 1.3;
}

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

/* Metrics block - reusable on results page */
.metrics {
    display: flex;
    flex-direction: column;
    background: linear-gradient(315deg, #2a2a2a 0%, #3d3d3d 100%);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.metric {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.metric-value {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
}

.metric-label {
    font-size: 0.875rem;
    color: #999999;
}

/* Certification Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

a.cert-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 2px solid #1a1a1a;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

a.cert-item:hover {
    border-color: #98bf1e;
    transform: translateY(-2px);
}

.cert-name {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.cert-type {
    font-size: 0.75rem;
    font-weight: 700;
    color: #666666;
    margin-bottom: 0.5rem;
}

.cert-desc {
    font-size: 0.75rem;
    color: #666666;
    line-height: 1.3;
    flex-grow: 1;
}

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

/* Customer Grid */
.customer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

a.customer-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 2px solid #1a1a1a;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

a.customer-item:hover {
    border-color: #98bf1e;
    transform: translateY(-2px);
}

.customer-logo {
    max-width: 120px;
    height: 32px;
    object-fit: contain;
    object-position: left;
    margin-bottom: 0.75rem;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

a.customer-item:hover .customer-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.customer-name {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.customer-industry {
    font-size: 0.75rem;
    font-weight: 700;
    color: #666666;
    margin-bottom: 0.5rem;
}

.customer-desc {
    font-size: 0.75rem;
    color: #666666;
    line-height: 1.3;
    flex-grow: 1;
}

/* Shared item CTA for grids */
.item-cta {
    font-size: 0.75rem;
    font-weight: 700;
    color: #98bf1e;
    margin-top: auto;
}

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

/* Platform Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.platform-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 2px solid #1a1a1a;
    aspect-ratio: 1;
}

.platform-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.platform-item:hover .platform-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.platform-name {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.platform-desc {
    font-size: 0.75rem;
    color: #666666;
    line-height: 1.3;
}

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

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 2px solid #1a1a1a;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: #98bf1e;
    transform: translateY(-2px);
}

.blog-card h2 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.blog-date {
    font-size: 0.75rem;
    color: #666666;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.blog-desc {
    font-size: 0.75rem;
    color: #666666;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.blog-card .box-cta {
    margin-top: auto;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

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

/* CTA Section */
.cta-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.5rem 2rem;
    align-items: start;
}

.cta-section h2 {
    margin-top: 0;
    margin-bottom: 0;
    grid-column: 1;
    grid-row: 1;
}

.cta-section p {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
}

.cta-button {
    display: inline-block;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border: 2px solid #1a1a1a;
    background: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: start;
}

.cta-button:hover {
    background: #ffffff;
    color: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .cta-section {
        flex-direction: column;
    }

    .cta-button {
        align-self: flex-start;
    }
}

/* Demo Form */
.demo-form {
    margin-top: 2rem;
}

.demo-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    max-width: 500px;
}

.demo-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #1a1a1a;
    font-family: inherit;
    font-size: 1rem;
}

.demo-form input[type="email"]:focus {
    outline: none;
    border-color: #98bf1e;
}

.demo-form button {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border: 2px solid #1a1a1a;
    background: #1a1a1a;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-form button:hover {
    background: #ffffff;
    color: #1a1a1a;
    transform: translateY(-2px);
}

.audience-selector a {
    display: inline-block;
    font-weight: 700;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 0.125rem;
}

.audience-selector a:hover {
    border-color: #98bf1e;
    color: #98bf1e;
}

/* Responsive */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    .container {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    nav {
        gap: 1rem;
    }

    .post-list li {
        flex-direction: column;
        gap: 0.25rem;
    }
}
