/* ==========================================================================
   Beximco — page-level components
   Layered on top of /styles/site.css (tokens + homepage components).
   Used by About, Services, Pricing, Insights, Team, Careers, Contact and the
   service / article detail pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page hero
   -------------------------------------------------------------------------- */

.page-hero {
    padding-top: clamp(32px, 4.4vw, 72px);
    padding-bottom: clamp(24px, 3vw, 44px);
}

.page-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(20px, 3vw, 56px);
    align-items: end;
}

.page-title {
    font-size: var(--size-h1);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 22ch;
}

.page-intro {
    max-width: 48ch;
    color: var(--muted);
    font-size: clamp(16px, 1.15vw, 18px);
}

.breadcrumb {
    margin-bottom: clamp(14px, 1.8vw, 22px);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: var(--size-sm);
    color: var(--muted);
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb li + li::before {
    content: "/";
    opacity: 0.45;
}

.breadcrumb a {
    color: var(--muted);
    transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   Generic page sections
   -------------------------------------------------------------------------- */

.page-section {
    padding-block: clamp(28px, 3.6vw, 60px);
}

.page-section--tight {
    padding-block: clamp(18px, 2.2vw, 34px);
}

.page-section--last {
    padding-bottom: clamp(40px, 5vw, 88px);
}

.eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: var(--size-xs);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.prose {
    max-width: 64ch;
    color: var(--muted);
}

.prose p + p {
    margin-top: 18px;
}

.prose h2 {
    margin-top: 34px;
    margin-bottom: 12px;
    color: var(--ink);
    font-size: var(--size-h3);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.prose h2:first-child {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(22px, 3.6vw, 64px);
    align-items: start;
}

.split-media {
    border-radius: var(--radius-media);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #ecebe7;
}

.split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 22px);
}

.value-card {
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2.2vw, 28px);
    border-radius: var(--radius-card);
    background-color: var(--surface);
}

.value-index {
    color: var(--muted);
    font-size: var(--size-sm);
    font-variant-numeric: tabular-nums;
}

.value-name {
    margin-top: clamp(28px, 3.4vw, 48px);
    font-size: var(--size-h3);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.value-copy {
    margin-top: 10px;
    color: var(--muted);
    font-size: var(--size-sm);
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 26px);
}

.member-card {
    border-radius: var(--radius-card);
    overflow: hidden;
    background-color: var(--surface);
}

.member-media {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #ecebe7;
}

.member-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-body {
    padding: 18px 20px 22px;
}

.member-name {
    font-size: var(--size-h3);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.member-role {
    margin-top: 2px;
    color: var(--muted);
    font-size: var(--size-sm);
}

/* --------------------------------------------------------------------------
   Careers
   -------------------------------------------------------------------------- */

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 22px);
}

.benefit-card {
    padding: clamp(20px, 2.2vw, 28px);
    border-radius: var(--radius-card);
    background-color: var(--surface);
}

.benefit-name {
    font-size: var(--size-h3);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.benefit-copy {
    margin-top: 10px;
    color: var(--muted);
    font-size: var(--size-sm);
}

.quote-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(20px, 3.4vw, 56px);
    align-items: center;
}

.quote-text {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.quote-author {
    margin-top: 18px;
    color: var(--on-dark-muted);
    font-size: var(--size-sm);
}

.job-list {
    border-top: 1px solid var(--line);
}

.job-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 120px 130px;
    gap: 12px 24px;
    align-items: center;
    padding-block: clamp(18px, 2vw, 26px);
    border-bottom: 1px solid var(--line);
}

.job-name {
    font-size: var(--size-h3);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.job-copy {
    max-width: 54ch;
    margin-top: 6px;
    color: var(--muted);
    font-size: var(--size-sm);
}

.job-meta {
    color: var(--muted);
    font-size: var(--size-sm);
}

.job-row .btn {
    justify-self: start;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 22px);
    align-items: stretch;
}

.plan-card {
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2.4vw, 34px);
    border-radius: var(--radius-card);
    background-color: var(--surface);
}

.plan-card--dark {
    background-color: var(--dark);
    color: var(--on-dark);
}

.plan-name {
    font-size: var(--size-h3);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.plan-price {
    margin-top: 12px;
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.plan-price small {
    font-size: var(--size-sm);
    font-weight: 400;
    letter-spacing: 0;
}

.plan-copy {
    margin-top: 12px;
    color: var(--muted);
    font-size: var(--size-sm);
}

.plan-card--dark .plan-copy {
    color: var(--on-dark-muted);
}

.plan-list-title {
    margin-top: 26px;
    font-size: var(--size-sm);
    font-weight: 600;
}

.plan-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    font-size: var(--size-sm);
}

.plan-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
}

.plan-card--dark .plan-list li {
    color: var(--on-dark-muted);
}

.plan-list li::before {
    content: "";
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.07);
}

.plan-card--dark .plan-list li::before {
    background-color: rgba(255, 255, 255, 0.16);
}

.plan-cta {
    margin-top: auto;
    padding-top: clamp(24px, 2.6vw, 34px);
}

.plan-cta .btn {
    width: 100%;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Service detail
   -------------------------------------------------------------------------- */

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(22px, 3.6vw, 64px);
    align-items: end;
}

.bullet-list {
    display: grid;
    gap: 10px;
    margin-top: clamp(18px, 2vw, 26px);
}

.bullet-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: var(--size-sm);
}

.bullet-list li::before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: start;
}

.sticky-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-card {
    padding: clamp(20px, 2.4vw, 30px);
    border-radius: var(--radius-card);
    background-color: var(--surface);
}

.form-title {
    font-size: var(--size-h3);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.form-copy {
    margin-top: 8px;
    color: var(--muted);
    font-size: var(--size-sm);
}

.form-grid {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-size: var(--size-sm);
    font-weight: 500;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background-color: var(--page);
    color: var(--ink);
    font: inherit;
    font-size: var(--size-sm);
    transition: border-color 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--ink);
}

.field textarea {
    min-height: 118px;
    resize: vertical;
}

.form-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: var(--size-xs);
}

.form-status {
    margin-top: 10px;
    min-height: 1.2em;
    color: var(--muted);
    font-size: var(--size-sm);
}

.form-status.is-error {
    color: #a1331f;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 22px);
}

.contact-card {
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2.2vw, 28px);
    border-radius: var(--radius-card);
    background-color: var(--surface);
}

.contact-title {
    font-size: var(--size-h3);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.contact-copy {
    margin-top: 10px;
    color: var(--muted);
    font-size: var(--size-sm);
}

.contact-value {
    margin-top: auto;
    padding-top: 20px;
    font-size: var(--size-sm);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--line-strong);
}

a.contact-value:hover {
    text-decoration-color: currentColor;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 22px);
}

.office-card {
    padding: clamp(20px, 2.2vw, 28px);
    border-radius: var(--radius-card);
    background-color: var(--surface);
}

.office-name {
    font-size: var(--size-h3);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.office-copy {
    margin-top: 10px;
    color: var(--muted);
    font-size: var(--size-sm);
}

.office-address {
    margin-top: 14px;
    font-size: var(--size-sm);
}

/* --------------------------------------------------------------------------
   Insights / article
   -------------------------------------------------------------------------- */

.article-head {
    max-width: min(100%, 74rem);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: clamp(16px, 2vw, 24px);
    color: var(--muted);
    font-size: var(--size-sm);
}

.article-tag {
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
}

.article-media {
    margin-top: clamp(22px, 3vw, 40px);
    border-radius: var(--radius-media);
    overflow: hidden;
    aspect-ratio: 16 / 7;
    background: #ecebe7;
}

.article-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    max-width: 66ch;
    margin-top: clamp(24px, 3vw, 40px);
    color: var(--muted);
    font-size: clamp(16px, 1.1vw, 17px);
    line-height: 1.72;
}

.article-body p + p {
    margin-top: 20px;
}

.newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: clamp(20px, 3vw, 56px);
    align-items: center;
}

.newsletter-title {
    font-size: var(--size-h2);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.2;
    max-width: 24ch;
}

.newsletter-copy {
    margin-top: 12px;
    color: var(--on-dark-muted);
    font-size: var(--size-sm);
    max-width: 44ch;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.newsletter-form input {
    flex: 1 1 240px;
    min-width: 0;
    padding: 12px 18px;
    border: 1px solid var(--line-invert);
    border-radius: var(--radius-pill);
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--on-dark);
    font: inherit;
    font-size: var(--size-sm);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(20px, 2.4vw, 32px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
    .page-hero-inner,
    .split,
    .detail-hero,
    .detail-grid,
    .quote-panel,
    .newsletter {
        grid-template-columns: minmax(0, 1fr);
    }

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

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

    .sticky-aside {
        position: static;
    }

    .job-row {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 8px;
    }

    .job-row .btn {
        grid-column: 1 / -1;
        margin-top: 4px;
    }
}

@media (max-width: 640px) {
    .plan-grid,
    .benefit-grid,
    .contact-grid,
    .office-grid,
    .team-grid,
    .value-grid,
    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-media {
        aspect-ratio: 4 / 3;
    }
}

/* --------------------------------------------------------------------------
   Linked cards
   -------------------------------------------------------------------------- */

.post-card > a {
    display: block;
    height: 100%;
}

.post-card > a:hover .post-title,
.post-title a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

/* Breadcrumb inside dark panels stays legible */
.panel .breadcrumb,
.panel .breadcrumb a {
    color: var(--on-dark-muted);
}

/* --------------------------------------------------------------------------
   Ghost buttons are white-on-dark by design. On light surfaces they need
   dark ink so the label stays readable.
   -------------------------------------------------------------------------- */

.page-section .btn--ghost,
.page-hero .btn--ghost {
    border: 1px solid var(--line-strong);
    color: var(--ink);
}

.page-section .btn--ghost:hover,
.page-hero .btn--ghost:hover {
    border-color: var(--ink);
    background-color: rgba(0, 0, 0, 0.04);
}

.panel .btn--ghost {
    border: 1px solid var(--line-invert);
    color: var(--on-dark);
}

.panel .btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.06);
}

/* Media inside linked post cards follows the card radius */
.post-card .post-media {
    border-radius: var(--radius-media);
    overflow: hidden;
}

/* Native select keeps a safe area for its arrow on the inline-end side */
.field select {
    padding-inline-end: 44px;
    background-color: var(--surface);
}
