.hero-banner {
    /* Deliberately edge-to-edge — no max-width cap and no border/radius/
       shadow, unlike every other section on this page (navbar/content
       cards/footer), which all stay inside --site-max-width on purpose. A
       hero banner reads as an accidental "boxed card" the moment it stops
       short of both viewport edges; a full-bleed image is what it's meant
       to look like. */
    width: 100%;
    /* Scales with the viewport instead of a fixed height, clamped so it
       never gets too cramped or too tall regardless of the uploaded
       image's own dimensions. background-size: cover below crops (rather
       than distorts) whatever doesn't match this box's ratio. */
    height: clamp(220px, 25vw, 480px);
    margin: 0 auto 20px;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.partners-showcase {
    /* Edge-to-edge like .hero-banner/.footer-banner — no max-width cap and
       no card chrome (border/radius/background), so this doesn't read as
       another box nested inside the page. */
    width: 100%;
    margin: 0;
    padding: 32px 20px;
    background: transparent;
}

.partners-showcase-title {
    margin: 0 0 24px;
    color: var(--text-heading-accent, #fef3c7);
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: -.01em;
}

.partners-showcase-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px 56px;
}

.partner-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .18s ease;
}

.partner-logo-card:hover {
    transform: translateY(-2px);
}

.partner-logo-card img {
    height: 84px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.6);
    opacity: .75;
    transition: filter .25s ease, opacity .25s ease;
}

.partner-logo-card:hover img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

.reviews-showcase {
    /* Edge-to-edge like .hero-banner/.partners-showcase — no max-width cap
       and no card chrome (border/radius/background), so this doesn't read
       as another box nested inside the page. */
    width: 100%;
    margin: 0;
    padding: 32px 20px;
    background: transparent;
}

.reviews-showcase-title {
    margin: 0 0 24px;
    color: var(--text-heading-accent, #fef3c7);
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: -.01em;
}

.reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 24px;
}

.reviews-summary-score {
    color: var(--text-heading-accent, #fef3c7);
    font-size: 1.4rem;
    font-weight: 700;
}

.review-stars--lg {
    font-size: 1.1rem;
}

.reviews-summary-count {
    color: var(--text-muted, #a8a29e);
    font-size: .82rem;
}

.reviews-login-cta {
    margin: 0 0 28px;
    color: var(--text-muted, #a8a29e);
    font-size: .85rem;
    text-align: center;
}

.reviews-login-cta a {
    color: var(--brand-primary, #eab308);
    font-weight: 600;
}

.review-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 480px;
    margin: 0 auto 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(214, 183, 93, .2);
}

.review-stars-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 4px;
}

.review-stars-input input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.review-stars-input label {
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--text-faint, #78716c);
    transition: color .15s ease;
}

.review-stars-input input:checked ~ label,
.review-stars-input label:hover,
.review-stars-input label:hover ~ label {
    color: var(--brand-primary, #eab308);
}

.review-form-textarea {
    width: 100%;
    min-height: 90px;
    padding: 10px 14px;
    background: var(--bg-surface, #1a1a1a);
    border: 1px solid rgba(214, 183, 93, .35);
    border-radius: 8px;
    color: var(--text-heading-accent, #fef3c7);
    font-family: inherit;
    font-size: .88rem;
    resize: vertical;
}

.reviews-grid {
    /* Fixed 3-up instead of auto-fill: now that .reviews-showcase is
       edge-to-edge (no --site-max-width cap), auto-fill(260px) would pack
       5-6+ thin columns across a wide viewport instead of a steady 3. */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--bg-surface, #1a1a1a);
    border: 1px solid rgba(214, 183, 93, .25);
    border-radius: 12px;
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .35);
}

.review-card-name {
    margin: 0;
    color: var(--text-heading-accent, #fef3c7);
    font-size: .9rem;
    font-weight: 600;
}

.review-stars {
    margin-top: 2px;
    color: var(--brand-primary, #eab308);
    font-size: .8rem;
}

.review-stars .fa-regular {
    color: var(--text-faint, #78716c);
}

.review-card-comment {
    margin: 0;
    color: var(--text-body, #d6d3d1);
    font-size: .85rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.review-card-response {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(var(--brand-primary-rgb, 234, 179, 8), .08);
    border-left: 2px solid var(--brand-primary, #eab308);
    border-radius: 0 8px 8px 0;
}

.review-card-response-label {
    margin: 0 0 4px;
    color: var(--brand-primary, #eab308);
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.review-card-response p:last-child {
    margin: 0;
    color: var(--text-body, #d6d3d1);
    font-size: .82rem;
    line-height: 1.5;
}

.footer-banner {
    /* Edge-to-edge like .hero-banner now, rather than staying inside the
       shared content column. */
    width: 100%;
    height: 100px;
    margin: 24px auto 0;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.featured-services {
    display: grid;
    /* auto-fit instead of a fixed column count: the number of cards is
       admin-configurable (0-10, see FeaturedServiceController), so the grid
       needs to reflow cleanly at any count instead of assuming exactly 3. */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.news-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-column-title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    color: var(--text-heading-accent, #fef3c7);
    font-size: .95rem;
    border-bottom: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .25);
}

.news-post-card {
    padding: 16px;
    margin-bottom: 14px;
    background: rgba(var(--overlay-rgb, 255, 255, 255), .02);
    border: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .18);
    border-radius: 10px;
}

.news-post-title {
    margin: 0 0 6px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-heading-accent, #fef3c7);
}

.news-post-date {
    display: block;
    margin-bottom: 8px;
    color: var(--text-meta-accent, #d6b75d);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.news-post-excerpt {
    margin: 0;
    color: var(--text-muted, #a8a29e);
    font-size: .82rem;
    line-height: 1.5;
}

.portfolio-year-title {
    margin: 0 0 20px;
    padding-bottom: 10px;
    color: var(--brand-primary, #eab308);
    font-size: 1.3rem;
    letter-spacing: -.01em;
    border-bottom: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .25);
}

.portfolio-work {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(var(--overlay-rgb, 255, 255, 255), .02);
    border: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .18);
    border-radius: 14px;
}

.portfolio-work-header {
    margin-bottom: 18px;
}

.portfolio-work-title {
    margin: 0 0 8px;
    color: var(--text-heading-accent, #fef3c7);
    font-size: 1.05rem;
}

.portfolio-work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
    color: var(--text-meta-accent, #d6b75d);
    font-size: .78rem;
    font-weight: 600;
}

.portfolio-work-meta i {
    margin-right: 4px;
}

.portfolio-work-description {
    margin: 0;
    color: var(--text-muted, #a8a29e);
    font-size: .85rem;
    line-height: 1.6;
}

.portfolio-cascade {
    columns: 3 220px;
    column-gap: 14px;
}

.portfolio-photo {
    margin: 0 0 14px;
    break-inside: avoid;
    overflow: hidden;
    background: rgba(var(--bg-surface-alt-rgb, 23, 23, 23), .96);
    border: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .18);
    border-radius: 10px;
}

.portfolio-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.portfolio-photo figcaption {
    padding: 8px 10px;
    color: var(--text-body, #d6d3d1);
    font-size: .75rem;
    line-height: 1.4;
}

.featured-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 20px;
    background: rgba(var(--overlay-rgb, 255, 255, 255), .02);
    border: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .18);
    border-radius: 12px;
    transition: border-color .18s ease, transform .18s ease;
    overflow: hidden;
}

.featured-service-card:hover {
    border-color: rgba(var(--brand-primary-rgb, 234, 179, 8), .4);
    transform: translateY(-2px);
}

.featured-service-card--has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.featured-service-card--has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, .88) 100%);
}

.featured-service-icon,
.featured-service-title,
.featured-service-text {
    position: relative;
}

.featured-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--brand-primary, #eab308);
    background: rgba(var(--brand-primary-rgb, 234, 179, 8), .12);
    border-radius: 10px;
    font-size: 1.05rem;
}

.featured-service-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading-accent, #fef3c7);
}

.featured-service-text {
    margin: 0;
    color: var(--text-muted, #a8a29e);
    font-size: .85rem;
}

.recruitment-block {
    /* Edge-to-edge like .hero-slideshow/.promo-highlight-card — no box
       chrome (border/radius), just the same brand-colored top/bottom
       frame. background-color/image below are the block's real content
       backdrop, not a card fallback, so they stay. */
    position: relative;
    margin-bottom: 24px;
    padding: 36px 32px;
    background-color: rgba(var(--bg-surface-alt-rgb, 23, 23, 23), .96);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .35);
    border-bottom: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .35);
    overflow: hidden;
}

.recruitment-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, .9) 0%, rgba(10, 10, 10, .6) 55%, rgba(10, 10, 10, .3) 100%);
}

.recruitment-block-overlay {
    position: relative;
    max-width: 520px;
}

.recruitment-block-title {
    margin: 0 0 10px;
    color: var(--text-heading-accent, #fef3c7);
    font-size: 1.35rem;
    letter-spacing: -.01em;
}

.recruitment-block-text {
    margin: 0 0 18px;
    color: var(--text-body, #d6d3d1);
    font-size: .88rem;
    line-height: 1.6;
}

.recruitment-block-actions {
    display: flex;
    justify-content: flex-end;
}

.recruitment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 16px;
    overflow: auto;
}

.field-optional {
    color: var(--text-muted, #a8a29e);
    font-weight: 400;
    font-size: .78rem;
}

.recruitment-intro {
    max-width: 640px;
}

.recruitment-intro-title {
    margin: 0 0 16px;
    color: var(--brand-primary, #eab308);
    font-size: 1.3rem;
    letter-spacing: -.01em;
}

.recruitment-intro p {
    margin: 0 0 14px;
    font-size: .9rem;
    line-height: 1.7;
    text-align: justify;
}

.promo-highlights {
    display: grid;
    /* auto-fit instead of a fixed 2-column layout: the number of promos is
       admin-configurable (1-10, see PromoHighlightController), so the grid
       needs to reflow cleanly at any count instead of assuming exactly 2. */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin: 0 -24px 32px;
}

.promo-highlight-card {
    /* No card chrome (border/radius/shadow) — same edge-to-edge treatment
       as .hero-banner/.reviews-showcase/.partners-showcase. background-color
       matches .recruitment-block's so the two blocks read as the same
       "family" of content card; the blurred ::before below still layers
       the promo's own image on top of it. */
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 460px;
    padding: 22px;
    background-color: rgba(var(--bg-surface-alt-rgb, 23, 23, 23), .96);
    overflow: hidden;
    /* Same top/bottom frame as .hero-slideshow — defines the card's edges
       without a full box border. */
    border-top: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .35);
    border-bottom: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .35);
    transition: transform .25s ease;
}

.promo-highlight-card:hover {
    transform: translateY(-4px);
}

/* The promo images are tall flyers (~0.7:1) inside a wide, near-square card.
   A blurred, oversized copy of the same image fills the card edge-to-edge
   behind the full, uncropped image on top — so no flat card background is
   ever visible and nothing in the flyer (e.g. the contact footer) gets
   cropped, unlike a plain background-size: cover would. */
.promo-highlight-card::before {
    content: '';
    position: absolute;
    inset: -24px;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(26px) brightness(.55);
    z-index: 0;
}

.promo-highlight-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.promo-highlight-label {
    position: relative;
    z-index: 2;
    padding: 7px 16px;
    color: #1c1917;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: var(--brand-primary, #eab308);
    border: none;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

.hero-slideshow {
    position: relative;
    width: 100%;
    /* aspect-ratio (tied to this element's own rendered width) instead of a
       fixed height — a fixed 320px got close to 1:1 on narrower viewports,
       reading as a rounded square instead of a wide banner strip. */
    aspect-ratio: 2.4 / 1;
    min-height: 200px;
    max-height: 380px;
    overflow: hidden;
    border-radius: 8px;
    /* Top/bottom frame only — left/right stay borderless since the mask
       below already fades those edges to nothing; a border there would cut
       across the fade and undo it. */
    border-top: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .35);
    border-bottom: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .35);
    /* Fades the slides to transparent at the left/right edges instead of
       cutting off sharply. */
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: rgba(var(--bg-surface-alt-rgb, 23, 23, 23), .96);
}

.hero-slide.active {
    /* Always paints above the outgoing slide, regardless of DOM order —
       without this, the wrap-around transition (last slide back to the
       first) had the outgoing slide stacked on top since it came later in
       the markup, making that one loop point crossfade look reversed. */
    z-index: 1;
}

/* Puzzle/mosaic reveal: dashboard.js slices each slide's image into a grid
   of .hero-slide-tile pieces instead of rendering it as one flat
   background. Each tile fades + scales + un-rotates into place on its own
   staggered delay (--tile-delay, --tile-rotate, both set inline per tile by
   JS with a shuffled order) so the image assembles like scattered puzzle
   pieces snapping together rather than a single flat crossfade. */
.hero-slide-tile {
    position: absolute;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.15) rotate(var(--tile-rotate, 0deg));
    transition: opacity .9s ease, transform .9s cubic-bezier(.34, 1.56, .64, 1);
    transition-delay: var(--tile-delay, 0ms);
}

.hero-slide.active .hero-slide-tile {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.hero-slideshow-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero-slideshow-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    background: rgba(255, 255, 255, .35);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.hero-slideshow-dot:hover {
    background: rgba(255, 255, 255, .6);
}

.hero-slideshow-dot.active {
    background: var(--brand-primary, #eab308);
    transform: scale(1.15);
}

.hero-slideshow-dot:focus-visible {
    outline: 2px solid var(--text-heading-accent, #fef3c7);
    outline-offset: 2px;
}
