/* ========== HERO SECTIONS ========== */
/* Homepage split hero (headline left, description right). */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
    text-align: left;
    padding: 72px 0 8px;
}

.hero-left {
    min-width: 0;
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--blue-authority);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero .hero-title {
    font-size: clamp(32px, 3.6vw, 46px);
    font-weight: 600;
    margin: 0;
}

.hero .hero-title .up {
    font-size: 1.18em;
    font-weight: 700;
}

/* one-line spacer: pushes the description to start beside the headline's 2nd line */
.hero-line-pad {
    display: block;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(38px, 4.25vw, 54px);
    line-height: 1.2;
    height: 1.2em;
}

.hero-right {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.hero .hero-subtitle {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.hero-cta {
    display: flex;
    gap: 26px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.hero-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--dusty-rose-action);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
    cursor: pointer;
}

.hero-link:hover {
    color: var(--rose-strong);
}

/* The page's main conversion action: a solid button, the secondary stays a link. */
.hero-link.primary {
    display: inline-flex;
    align-items: center;
    padding: 13px 24px;
    border-radius: 10px;
    background: var(--dusty-rose-action);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px -8px rgba(181, 101, 118, 0.7);
    transition: background 0.2s, transform 0.2s;
}

.hero-link.primary:hover {
    background: var(--rose-strong);
    color: #fff;
    transform: translateY(-1px);
}

.hero-link.secondary {
    color: var(--blue-authority);
}

.hero-link.secondary:hover {
    color: var(--dusty-rose-action);
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 44px 0 4px;
    }

    .hero-right {
        max-width: none;
    }

    .hero-line-pad {
        display: none;
    }
}

.page-hero {
    text-align: center;
    padding: 40px 0 48px;
    margin-bottom: 64px;
    position: relative;
}

.page-hero:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #B56576 50%, transparent 100%);
}

.page-hero .hero-title {
    font-size: 32px;
    margin-bottom: 16px;
}

.page-hero .hero-subtitle {
    font-size: 17px;
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero body paragraphs (intro / short-answer boxes) are max-width capped;
   centre the block so it aligns with the centered hero title, not left-anchored. */
.page-hero .sol-intro,
.page-hero .hub-intro,
.page-hero .hub-answer,
.page-hero .ai-answer {
    margin-left: auto;
    margin-right: auto;
}

.page-hero .hero-cta {
    justify-content: center;
    margin-top: 24px;
}

/* ========== SUB-TABS ========== */
.sub-tabs {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.sub-tab-btn {
    padding: 0;
    background: none;
    color: var(--dusty-rose-action);
    border: none;
    font-size: 15px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.sub-tab-btn:hover {
    opacity: 0.8;
}

.sub-tab-btn.active {
    opacity: 1;
    font-weight: 600;
}

.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
}

.sub-tab-content h2 {
    display: none;
}

/* ========== SERVICE TABS ========== */
.service-tabs {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.service-tab-btn {
    padding: 0;
    background: none;
    color: var(--dusty-rose-action);
    border: none;
    font-size: 15px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.service-tab-btn:hover {
    opacity: 0.8;
}

.service-tab-btn.active {
    opacity: 1;
    font-weight: 600;
}

.service-content {
    display: none;
}

.service-content.active {
    display: block;
}

.service-content p {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* ========== FEATURE CARDS ========== */
.feature-card {
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--dusty-rose-action);
    stroke-width: 1.5;
    fill: none;
}

.feature-card h5 {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.feature-card p {
    font-size: 14px;
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
}

/* ========== BUTTONS ========== */
.btn {
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
}

.btn-primary {
    background: var(--dusty-rose-action);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background: #9f4d60;
}

.btn-secondary {
    background: transparent;
    color: var(--blue-authority);
    border: 1px solid var(--border-blue);
}

.btn-secondary:hover {
    background: rgba(35, 50, 107, 0.05);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* ========== PLATFORMS ========== */
.platform-card {
    padding: 24px;
    background: var(--bg-white);
    border-radius: 6px;
    border: 1px solid var(--border-blue);
}

.platform-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--blue-authority);
}

.platform-logo-container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.platform-logo {
    max-height: 36px;
    max-width: 130px;
    opacity: 0.75;
}

.platform-services {
    list-style: none;
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========== CONTACT FORM ========== */
.contact-form-wrapper {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-blue);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    border: 1px solid var(--border-blue);
    border-radius: 6px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dusty-rose-action);
    background: var(--bg-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--dusty-rose-action);
}

/* ========== CONTACT INFO ========== */
.contact-info {
    padding-top: 8px;
}

.contact-info h3 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--blue-authority);
}

.contact-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--blue-authority);
}

.contact-detail {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.6;
}

.contact-detail strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
}

.contact-detail a {
    color: var(--dusty-rose-action);
    transition: color 0.2s;
}

.contact-detail a:hover {
    color: var(--blue-authority);
}

.social-links {
    margin-top: 40px;
}

.social-link {
    display: inline-block;
    margin-right: 20px;
    font-size: 14px;
    color: var(--text-gray);
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--dusty-rose-action);
}

/* ========== FOOTER (E — body grey, full width, no sidebar margin) ========== */
.footer-e {
    background: #DADDE4;
    margin-top: 64px;
}

.footer-content {
    max-width: none;
    margin: 0;
    padding: 48px clamp(24px, 5vw, 72px) 28px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 44px;
}

.footer-section .fbrand {
    display: block;
    width: 130px;
    height: 115px;
    margin-bottom: 10px;
}

.footer-section h4 {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section p {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 9px;
}

.footer-section a {
    font-size: 14px;
    color: #1a1a1a;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--dusty-rose-action);
}

/* Social: no tile (rose fill overlapped the glyph on hover) — plain icon, rose on hover */
.social {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.social a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: transparent;
    color: #1a1a1a;
    transition: color 0.2s;
}

.social a:hover {
    background: transparent;
    color: var(--dusty-rose-action);
}

.social svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.footer-bottom {
    border-top: 1px solid var(--hairline);
    max-width: none;
    margin: 0;
    padding: 18px clamp(24px, 5vw, 72px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: #1a1a1a;
    margin: 0;
}

.footer-bottom .legal {
    margin-left: auto;
    display: flex;
    gap: 18px;
}

.footer-bottom .legal a {
    font-size: 13px;
    color: #1a1a1a;
}

.footer-bottom .legal a:hover {
    color: var(--dusty-rose-action);
}

@media (max-width: 860px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        padding: 40px 24px;
    }

    .footer-bottom {
        padding: 18px 24px;
    }
}

/* ── Card tint variants (merged from option-a/b/c/d.css) ───────────── */
.option-a {
    background: var(--bg-white);
    border: 1px solid var(--border-blue);
}

.option-b {
    background: #F5F5F5;
}

.option-c {
    background: rgba(181, 101, 118, 0.08);
}

.option-d {
    background: var(--tint-navy);
}

/* ── Form validation & fallback ────────────────────────────────────── */
.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.field-error {
    display: block;
    color: #DC2626;
    font-size: 12px;
    margin-top: 4px;
}

.form-fallback {
    background: #FEF3C7;
    border: 1px solid #D97706;
    color: #92400E;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.form-fallback a {
    color: #92400E;
    font-weight: 600;
}

/* ===================================================================
   HOMEPAGE SECTIONS (ported from the approved footer-E prototype)
   Scoped so shared .feature-card / .feature-cards-grid on other pages
   stay untouched.
   =================================================================== */

.ft-reassure {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-gray);
    letter-spacing: 0.3px;
}

/* Immersive company card — full width, rose, ambient gradient animation */
.about {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 52px;
}

.about-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 18px;
    padding: clamp(36px, 4.5vw, 64px) clamp(32px, 5vw, 72px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    /* surface drawn in VectorCraft on --tint-rose (tools/art/about_card_bg.py) */
    background: var(--tint-rose) url(/logos/about-card-bg.svg?v=20261010) center / cover no-repeat;
    animation: aboutRise 0.8s ease both;
}

/* the moving sheen of the original card, as a soft layer over the vector surface */
.about-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(248, 235, 238, 0) 0%, rgba(239, 215, 221, 0.7) 50%, rgba(248, 235, 238, 0) 100%);
    background-size: 220% 220%;
    animation: aboutSheen 16s ease-in-out infinite;
    pointer-events: none;
}
@keyframes aboutSheen {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.about-content,
.about-visual {
    position: relative;
}
.about-content {
    max-width: 540px;
}

.about-eyebrow {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--dusty-rose-action);
    margin-bottom: 12px;
}

.about-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(24px, 2.6vw, 32px);
    color: var(--blue-authority);
    margin: 0 0 14px;
    line-height: 1.2;
}

.about-content p {
    font-size: 16px;
    color: #3d4250;
    line-height: 1.75;
    margin: 0 0 22px;
    max-width: 52ch;
}

.about-link {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--dusty-rose-action);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
}

.about-link:hover {
    color: var(--rose-strong);
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-visual svg,
.about-visual img {
    width: 100%;
    max-width: 320px;
    height: auto;
}

@keyframes aboutRise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .about-card { animation: aboutRise 0.4s ease both; }
    .about-card::before { animation: none; }
}

@media (max-width: 860px) {
    .about-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .about-content { max-width: none; }
}

/* Section heading (homepage) */
.section-head {
    margin-top: 52px;
}

.section-head h2 {
    font-family: 'Syne', sans-serif;
    font-size: 27px;
    color: var(--blue-authority);
    margin: 0 0 6px;
}

.section-head p {
    color: var(--text-gray);
    margin: 0;
    max-width: 760px;
    line-height: 1.8;
}

.section-head a {
    color: var(--dusty-rose-action);
    font-weight: 600;
}

/* Trust strip — enterprise cloud logos */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px 36px;
    margin: 16px 0 4px;
}

.trust-strip .trust-lbl {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
}

.trust-strip img {
    height: 26px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.65;
}

/* Outcome cards — soft rose fill, no hover, 3 across */
.outcomes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 24px;
}

/* navy tint: the pink stays on the about-card only */
.outcomes .feature-card {
    background: var(--tint-navy);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.outcomes .feature-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
}

.outcomes .feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--dusty-rose-action);
    stroke-width: 1.5;
    fill: none;
}

.outcomes .feature-card h5 {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.outcomes .feature-card p {
    font-size: 14px;
    color: #3d4250;
    line-height: 1.6;
    margin: 0;
}

.svc-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dusty-rose-action);
}

.svc-more svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.svc-more:hover {
    color: var(--rose-strong);
}

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

/* Frameless text-link CTA rows */
.cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 24px;
}

/* Outcome card titles in navy; shorter cards on phones so six do not scroll forever */
.outcomes .feature-card h5 { color: var(--blue-authority); }

@media (max-width: 860px) {
    .outcomes { gap: 14px; }
    .outcomes .feature-card { padding: 20px 20px 18px; }
    .outcomes .feature-icon { width: 36px; height: 36px; margin-bottom: 10px; }
    .outcomes .feature-card p { margin-bottom: 10px; }
}

/* Closing CTA: centred, its primary link is the same solid button as the hero */
.page-hero .hero-cta { justify-content: center; }

/* ========== CLIENT CAROUSEL (home) ==========
   One copy of each mark. Centred when the row fits; on narrower screens
   js/client-carousel.js glides it end to end and back. */
.client-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin: 56px 0 0;
    padding-bottom: 72px;
}

.client-carousel .trust-lbl {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
}

.cc-viewport {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.cc-viewport.cc-moving { justify-content: flex-start; }

.cc-track {
    display: flex;
    flex: none;
    align-items: center;
    gap: 72px;
    padding: 0 24px;
}

.cc-track img {
    display: block;
    flex: none;
    width: auto;
    max-width: none;
}

/* heights matched on each mark's main word, as on the portfolio page */
.cc-track .tc-dopas { height: 22px; }
.cc-track .tc-ggx { height: 46px; }
.cc-track .tc-atrade { height: 22px; }
/* Alpha Prime and Earth Scientific ship white marks only: each sits on its own brand colour */
.cc-track .tc-alpha { height: 44px; padding: 5px 10px; border-radius: 7px; background: #14161C; box-sizing: content-box; }
.cc-track .tc-earth { height: 28px; padding: 7px 12px; border-radius: 7px; background: #223039; box-sizing: content-box; }

/* the agents count, set as a wordmark so it sits in the row like the other marks */
.cc-track .tc-stat { display: flex; flex: none; align-items: center; gap: 10px; white-space: nowrap; color: var(--blue-authority); }
.tc-stat b { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -1px; }
.tc-stat b i { font-style: normal; color: var(--dusty-rose-action); margin-right: 1px; }
.tc-stat span { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 10.5px; line-height: 1.25; letter-spacing: 0.9px; text-transform: uppercase; padding-left: 10px; border-left: 2px solid var(--dusty-rose-action); }

.client-carousel .tc-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--dusty-rose-action);
}

@media (prefers-reduced-motion: reduce) {
    .cc-viewport.cc-moving { overflow-x: auto; }
}

@media (max-width: 860px) {
    .client-carousel { padding-bottom: 48px; }
    .cc-track { gap: 40px; }
}
