/* /website-design/ layout (scripts/service-page-website-design.mjs).
   Loaded only on that page; builds on tokens, buttons, service-page, reviews and contact. */

/* Headlines in title case rather than all caps on this page. */
.service-hero__title,
.contact__title,
.wd-package-detail :is(h2:not([data-editor-heading-style]),[data-editor-heading-style="h2"]),
.wd-package-detail :is(h3:not([data-editor-heading-style]),[data-editor-heading-style="h3"]),
.wd-package-detail .ld-widget-heading span {
    text-transform: none;
    letter-spacing: normal;
}

.wd-section {
    background: var(--ld-bg-solid);
}

.wd-section--alt {
    background: linear-gradient(180deg, rgba(33, 44, 62, 0.55), rgba(33, 44, 62, 0.25));
    border-block: 1px solid var(--ld-border);
}

.wd-intro {
    max-width: 46rem;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.wd-intro p:not(.wd-eyebrow) {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ld-text-muted);
}

.wd-eyebrow {
    display: inline-block;
    margin: 0 0 0.85rem;
    padding: 0.4rem 0.95rem;
    border: 1px solid rgba(78, 195, 204, 0.5);
    border-radius: var(--ld-radius-pill);
    background: rgba(78, 195, 204, 0.08);
    color: var(--ld-accent);
    font-family: var(--ld-font-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wd-intro .wd-eyebrow {
    margin-bottom: 0.85rem;
}

.wd-title {
    margin: 0 0 1rem;
    font-family: var(--ld-font-display);
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--ld-text);
    text-wrap: balance;
}

.wd-accent {
    color: var(--ld-accent);
}

.wd-center {
    margin: 2.5rem 0 0;
    text-align: center;
}

/* Image + copy rows */
.wd-split {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.wd-split__media img {
    width: 100%;
    border-radius: 16px;
}

.wd-split__content p {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ld-text-muted);
}

.wd-split__content .wd-lead {
    font-family: var(--ld-font-display);
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--ld-text);
}

.wd-accent-line {
    font-weight: 700;
    color: var(--ld-accent) !important;
}

.wd-title--statement {
    margin: 1.5rem 0 0.75rem;
}

.wd-split .ld-btn {
    margin-top: 0.75rem;
}

/* Checklists */
.wd-checklist {
    display: grid;
    gap: 0.6rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.wd-checklist li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ld-text);
}

.wd-checklist svg {
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    color: var(--ld-accent);
}

/* Benefit cards */
.wd-features {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wd-feature {
    padding: 1.75rem;
    border: 1px solid var(--ld-card-border);
    border-radius: 16px;
    background: rgba(12, 13, 27, 0.55);
}

.wd-feature__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.1rem;
    border-radius: 12px;
    background: var(--ld-accent-soft);
    color: var(--ld-accent);
}

.wd-feature__icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.wd-feature :is(h3:not([data-editor-heading-style]),[data-editor-heading-style="h3"]),
.wd-step :is(h3:not([data-editor-heading-style]),[data-editor-heading-style="h3"]) {
    margin: 0 0 0.6rem;
    font-family: var(--ld-font-display);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--ld-text);
}

.wd-feature p,
.wd-step p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ld-text-muted);
}

/* Launched websites (from the portfolio) */
.wd-projects {
    display: grid;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wd-project {
    display: block;
    color: var(--ld-text);
}

.wd-project__media {
    display: block;
    overflow: hidden;
    border: 1px solid var(--ld-card-border);
    border-radius: 14px;
    aspect-ratio: 4 / 3;
    background: var(--ld-bg-elevated);
}

.wd-project__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.wd-project:hover .wd-project__media img,
.wd-project:focus-visible .wd-project__media img {
    transform: scale(1.04);
}

.wd-project:focus-visible {
    outline: 3px solid var(--ld-accent);
    outline-offset: 4px;
    border-radius: 14px;
}

.wd-project__title {
    display: block;
    margin-top: 0.9rem;
    font-family: var(--ld-font-display);
    font-size: 1.1rem;
    font-weight: 800;
}

.wd-project__meta {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.875rem;
    color: var(--ld-text-muted);
}

/* Pricing cards */
.wd-anchor {
    position: relative;
    top: calc(-1 * var(--ld-section-gap));
    scroll-margin-top: calc(var(--ld-header-offset) + 1.25rem);
}

.wd-plans {
    display: grid;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: stretch;
}

.wd-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border: 1px solid var(--ld-card-border);
    border-radius: 18px;
    background: var(--ld-bg-elevated);
}

.wd-plan--featured {
    border: 2px solid var(--ld-accent);
    background:
        radial-gradient(circle at 50% 0%, rgba(78, 195, 204, 0.16), transparent 60%),
        var(--ld-bg-elevated);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.wd-plan__badge {
    position: absolute;
    top: 0;
    left: 50%;
    margin: 0;
    padding: 0.35rem 1rem;
    border-radius: var(--ld-radius-pill);
    background: var(--ld-accent);
    color: var(--ld-bg-solid);
    font-family: var(--ld-font-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.wd-plan__title {
    margin: 0 0 0.6rem;
    font-family: var(--ld-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ld-text);
}

.wd-plan__intro {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ld-text-muted);
}

.wd-plan__price {
    display: grid;
    gap: 0.2rem;
    margin: 0 0 1.25rem;
    padding: 1rem 0;
    border-block: 1px solid var(--ld-border);
}

.wd-plan__price strong {
    font-family: var(--ld-font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--ld-accent);
}

.wd-plan__price span {
    font-size: 0.875rem;
    color: var(--ld-text-muted);
}

.wd-plan .wd-checklist {
    margin-bottom: 1.75rem;
}

.wd-plan .wd-checklist li {
    font-size: 0.95rem;
}

.wd-plan__cta {
    align-self: stretch;
    margin-top: auto;
}

/* Package write-ups keep their own layout; tighten the gap after the cards. */
body.page-inner main > .wd-pricing + .wd-package-detail {
    padding-top: 1rem;
}

/* Reviews reuse the homepage review cards. */
.wd-review-grid {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Process */
.wd-steps {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wd-step {
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
    border: 1px solid var(--ld-card-border);
    border-radius: 16px;
    background: var(--ld-bg-elevated);
}

.wd-step__num {
    display: block;
    margin-bottom: 0.75rem;
    font-family: var(--ld-font-display);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ld-accent);
}

/* Team */
.wd-people {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3rem;
}

.wd-person {
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    margin: 0;
    text-align: center;
}

.wd-person img {
    width: 9rem;
    height: 9rem;
    border: 3px solid var(--ld-accent);
    border-radius: 50%;
    object-fit: cover;
}

.wd-person figcaption {
    display: grid;
    gap: 0.15rem;
}

.wd-person strong {
    font-family: var(--ld-font-display);
    font-size: 1.15rem;
    color: var(--ld-text);
}

.wd-person span {
    font-size: 0.9rem;
    color: var(--ld-accent);
}

@media (min-width: 640px) {
    .wd-projects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .wd-split {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: clamp(2.5rem, 5vw, 4.5rem);
    }

    .wd-features,
    .wd-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .wd-features,
    .wd-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .wd-projects,
    .wd-review-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wd-plans {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wd-plan--featured {
        margin-top: -1rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 767px) {
    .wd-intro {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wd-project__media img {
        transition: none;
    }

    .wd-project:hover .wd-project__media img,
    .wd-project:focus-visible .wd-project__media img {
        transform: none;
    }
}
