.card-title {
    font-weight: 700;              
    margin-bottom: 0.35rem;  
}

.text-secondary {
    line-height: 1.25;       
}

/* Hero section layout only */
.hero-section {
    padding: 1rem 0;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1rem;
    display: grid;
    gap: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-0);
    box-sizing: border-box;
}

.hero-container:hover {
    box-shadow: var(--shadow-lg);
    transform: none;
}

@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.hero-proof {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-card-list {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.hero-card-list:hover {
    box-shadow: var(--shadow-lg);
    transform: none;
}

.hero-card {
    width: 100%;
    text-align: left;
    padding: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: block;
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.hero-card:hover {
    background: var(--surface-3); /* slight color change */
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px); /* subtle lift */
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Services section layout only */
#services-wrap {
    padding: 1rem;
    border-radius: var(--radius-lg);
}

#services-wrap:hover {
    box-shadow: var(--shadow-lg);
    transform: none;
}

.service-card {
    transition: var(--transition);
    margin: 0.5rem;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: none;
    background: var(--surface-3);
}

/* About section layout only */
.about-container {
    margin-top: 1rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    display: grid;
    gap: 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--surface-0);
}

@media (min-width: 900px) {
    .about-container {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        align-items: center;
        gap: 2rem;
    }
}

.about-copy h2 {
    margin-top: 0;
}

.about-copy p {
    margin-bottom: 0;
}

.about-copy .about-partnership {
    margin-top: 1.2rem;
}

.about-cta {
    justify-self: end;
    width: 100%;
    max-width: 460px;
}

.logo-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    overflow: hidden;
    flex-wrap: nowrap;
    text-decoration: none;
    color: var(--color-text);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.logo-card:hover {
    border-color: rgba(19, 102, 214, 0.45);
    background: var(--surface-3);
    box-shadow: var(--shadow-lg);
}

.logo-card:focus-visible {
    outline: 2px solid rgba(19, 102, 214, 0.85);
    outline-offset: 2px;
    border-color: rgba(19, 102, 214, 0.6);
    box-shadow: var(--shadow-lg);
}

.logo-media-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 1 44%;
    min-width: 0;
}

/* Light/dark logo switching */
.logo-light {
    display: block;
}

[data-theme="dark"] .logo-light {
    display: none;
}

.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 600;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.logo-media {
    width: min(100%, 320px);
    max-width: 100%;
    height: auto;
    max-height: 84px;
    object-fit: contain;
    display: block;
}

.logo-media.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-media.logo-dark {
    display: block;
}

[data-theme="dark"] .logo-media.logo-light {
    display: none;
}

@media (max-width: 768px) {
    .about-container {
        padding: 1.35rem;
        gap: 1rem;
    }

    .about-cta {
        justify-self: start;
        max-width: 100%;
    }

    .logo-card {
        gap: 0.85rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-media-wrap {
        flex-basis: 42%;
    }

    .logo-media {
        width: min(44vw, 190px);
        max-height: 56px;
    }
}

/* How section layout only */
.how-grid {
    margin-top: 1.5rem;
}

/* Contact section layout only */
.contact-box {
    padding: 1rem;
    border-radius: var(--radius-lg);
}

.contact-response {
    margin: 0.35rem 0 0;
    font-weight: 600;
    color: var(--color-text);
}

.trust-strip {
    margin: 0.85rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
}

.trust-strip li {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-1);
}

.contact-buttons {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.small-text {
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* Header base */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    display: block;
}

/* Layout */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    gap: 0.75rem;
    line-height: 1;
    position: relative;
}

/* Brand */
.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
    flex: 1 1 auto;
    min-width: 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
}

.brand-text {
    font-size: 1.6rem;
    font-weight: 600;
    white-space: nowrap;
    font-family: 'Cal Sans', sans-serif;
    min-width: 0;
}

/* Desktop nav */
.desktop-nav {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 951px) {
    .desktop-nav {
        display: flex;
    }
}

/* Nav pill */
.nav-pill {
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem;
    border-radius: var(--radius-lg);
    background: var(--surface-1);
    border: 1px solid var(--border-color);
}

.nav-btn {
    font-size: 0.9rem;
    padding: 0.45rem 1rem;
    background: transparent;
    cursor: pointer;
    color: var(--color-text);
    transition: var(--transition);
    border: none;
    outline: none;
    border-radius: var(--radius-lg);
}

.nav-btn:hover {
    background: var(--surface-4);
}

.nav-btn:focus-visible {
    outline: 2px solid rgba(19, 102, 214, 0.9);
    outline-offset: 2px;
}

.nav-btn.active {
    background: var(--surface-4);
    border: 1px solid transparent;
    color: var(--color-primary);
}

/* Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Locale switch */
.locale-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 400;
    line-height: 1;
}

.locale-switch a {
    color: var(--color-text);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.locale-switch a:hover {
    opacity: 1;
    font-weight: 450;
}

.locale-switch a.active {
    opacity: 1;
    font-weight: 700;
}

.locale-switch .divider {
    opacity: 0.5;
}

@keyframes borderShimmerSweep {
    0% {
        background-position: 0% 50%;
        opacity: 0.25;
    }
    50% {
        opacity: 1;
    }
    100% {
        background-position: 200% 50%;
        opacity: 0;
    }
}

.section-shimmer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.section-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 35%,
        rgba(19, 102, 214, 0.2) 45%,
        rgba(19, 102, 214, 0.9) 50%,
        rgba(19, 102, 214, 0.2) 55%,
        transparent 65%,
        transparent 100%
    ) border-box;
    background-size: 220% 220%;
    background-repeat: no-repeat;
    pointer-events: none;
    animation: borderShimmerSweep 1.45s ease-out 1 forwards;
}

.site-footer {
    padding-top: 1rem;
}

.footer-inner {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1rem;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: baseline;
}

.footer-main strong {
    font-size: 0.96rem;
}

.footer-main span,
.footer-legal {
    font-size: 0.84rem;
}

/* Keep the brand visible on very narrow phones */
@media (max-width: 520px) {
    .header-inner {
        gap: 0.5rem;
        padding: 0.875rem 0.75rem;
    }

    .header-brand {
        gap: 0.5rem;
    }

    .brand-logo {
        width: clamp(32px, 8vw, 36px);
        height: clamp(32px, 8vw, 36px);
    }

    .brand-text {
        display: inline;
        font-size: clamp(0.92rem, 4.1vw, 1.2rem);
        letter-spacing: -0.02em;
    }

    .header-controls {
        gap: 0.5rem;
    }

    .locale-switch {
        gap: 0.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 380px) {
    .header-inner {
        gap: 0.4rem;
        padding: 0.8rem 0.65rem;
    }

    .brand-text {
        font-size: clamp(0.82rem, 3.9vw, 1rem);
    }

    .header-controls {
        gap: 0.4rem;
    }

    .locale-switch {
        font-size: 0.82rem;
    }
}
