/* ============================================================
   S.T Contracts Ltd - Services Hub (/services/index.php)
   Thin H1 strip + long alternating image/text rows.
   Class prefix: st-svchub-*
   ============================================================ */

:root {
    --st-orange:       #F28823;
    --st-orange-hover: #d8731a;
    --st-orange-deep:  #c4640f;
    --st-orange-soft:  rgba(242,136,35,.10);

    --st-charcoal:   #23282d;
    --st-charcoal-2: #2c3238;

    --st-ink:    #23282d;
    --st-body:   #4a5159;
    --st-muted:  #828a93;
    --st-line:   #e7e9ec;

    --st-surface:     #ffffff;
    --st-surface-alt: #f5f6f8;

    --st-container: 1200px;
    --st-pad:       clamp(1.1rem, 4vw, 2.5rem);

    --st-radius:    14px;
    --st-radius-lg: 20px;
    --st-pill:      999px;

    --st-shadow:    0 14px 40px rgba(20,26,32,.10);
    --st-shadow-lg: 0 24px 60px rgba(20,26,32,.16);

    --st-fast: .2s ease;
    --st-ease: .35s cubic-bezier(.2,.7,.3,1);

    --st-fs-h1:   clamp(1.7rem, 1.2rem + 1.9vw, 2.4rem);
    --st-fs-row:  clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem);
    --st-fs-lead: clamp(1.02rem, .96rem + .35vw, 1.18rem);
}

* { box-sizing: border-box; }

.st-svchub-container { max-width: var(--st-container); margin-inline: auto; padding-inline: var(--st-pad); }

/* ============================================================
   HERO  (thin charcoal H1 strip + review pill)
   ============================================================ */
.st-svchub-hero {
    position: relative;
    background: var(--st-charcoal);
    border-top: 3px solid var(--st-orange);
    padding: clamp(2.25rem, 4vw, 3rem) 0;
    font-family: 'Mulish', sans-serif;
    overflow: hidden;
}
.st-svchub-hero::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 100% 0%, rgba(242,136,35,.16) 0%, transparent 55%);
}
.st-svchub-hero .st-svchub-container { position: relative; z-index: 1; }
.st-svchub-hero-eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    color: #fcc78a; margin: 0 0 .6rem;
}
.st-svchub-hero-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--st-orange); border-radius: 2px; }
.st-svchub-hero-title { font-size: var(--st-fs-h1); font-weight: 800; color: #fff; margin: 0; letter-spacing: -.02em; line-height: 1.1; }
.st-svchub-hero-text { font-size: var(--st-fs-lead); color: rgba(255,255,255,.74); margin: .65rem 0 0; max-width: 64ch; }
.st-svchub-hero-pill { margin-top: 1.25rem; }

/* ============================================================
   SERVICE ROWS  (long alternating rectangles)
   ============================================================ */
.st-svchub-rows { font-family: 'Mulish', sans-serif; }

.st-svchub-row {
    display: block;
    text-decoration: none;
    color: inherit;
}
/* alternating backgrounds */
.st-svchub-row:nth-child(odd)  { background: var(--st-surface); }
.st-svchub-row:nth-child(even) { background: var(--st-surface-alt); }

.st-svchub-row-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

/* image */
.st-svchub-row-media { position: relative; overflow: hidden; border-radius: var(--st-radius-lg); box-shadow: var(--st-shadow); }
.st-svchub-row-media img {
    width: 100%; height: 100%; min-height: 280px; max-height: 380px;
    object-fit: cover; display: block;
    transition: transform .55s var(--st-ease);
}
.st-svchub-row:hover .st-svchub-row-media img { transform: scale(1.05); }

/* text */
.st-svchub-row-eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--st-orange); margin: 0 0 .85rem;
}
.st-svchub-row-eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--st-orange); border-radius: 2px; }
.st-svchub-row-title { font-size: var(--st-fs-row); font-weight: 800; color: var(--st-ink); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 1rem; }
.st-svchub-row-text { font-size: var(--st-fs-lead); line-height: 1.7; color: var(--st-body); margin: 0 0 1.6rem; max-width: 52ch; }

.st-svchub-row-btn {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: 14px 32px;
    background: var(--st-orange); border: 2px solid var(--st-orange); border-radius: var(--st-pill);
    color: #fff; font-size: 1rem; font-weight: 800;
    box-shadow: 0 8px 22px rgba(242,136,35,.3);
    transition: background var(--st-ease), border-color var(--st-ease), transform var(--st-ease), box-shadow var(--st-ease);
}
.st-svchub-row-btn i { font-size: .8rem; transition: transform var(--st-fast); }
.st-svchub-row:hover .st-svchub-row-btn { background: var(--st-orange-hover); border-color: var(--st-orange-hover); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(242,136,35,.42); }
.st-svchub-row:hover .st-svchub-row-btn i { transform: translateX(3px); }

/* alternate: flip image to the right on even rows (desktop) */
.st-svchub-row:nth-child(even) .st-svchub-row-media { order: 2; }
.st-svchub-row:nth-child(even) .st-svchub-row-text-col { order: 1; }

/* ============================================================
   CTA  (dark band)
   ============================================================ */
.st-svchub-cta { background: var(--st-charcoal); padding: clamp(3.5rem, 5vw, 5rem) 0; font-family: 'Mulish', sans-serif; }
.st-svchub-cta-content { text-align: center; max-width: 620px; margin: 0 auto; }
.st-svchub-cta-title { font-size: var(--st-fs-row); font-weight: 800; color: #fff; margin: 0 0 1rem; letter-spacing: -.02em; }
.st-svchub-cta-text { font-size: var(--st-fs-lead); line-height: 1.6; color: rgba(255,255,255,.78); margin: 0 0 2rem; }
.st-svchub-cta-buttons { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.st-svchub-cta-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--st-orange); color: #fff; text-decoration: none;
    padding: 15px 34px; border-radius: var(--st-pill); font-weight: 800; font-size: 1rem;
    border: 2px solid var(--st-orange); box-shadow: 0 8px 22px rgba(242,136,35,.32);
    transition: background var(--st-fast), border-color var(--st-fast), transform var(--st-fast), box-shadow var(--st-fast);
}
.st-svchub-cta-primary:hover { background: var(--st-orange-hover); border-color: var(--st-orange-hover); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(242,136,35,.42); }
.st-svchub-cta-secondary {
    display: inline-flex; align-items: center; gap: .6rem;
    background: rgba(255,255,255,.1); color: #fff; text-decoration: none;
    padding: 15px 30px; border-radius: var(--st-pill); font-weight: 700; font-size: 1rem;
    border: 2px solid rgba(255,255,255,.25);
    transition: background var(--st-fast), border-color var(--st-fast), transform var(--st-fast);
}
.st-svchub-cta-secondary:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.st-svchub-cta-secondary i { color: var(--st-orange); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
    .st-svchub-row-inner { grid-template-columns: 1fr; gap: 1.75rem; padding: clamp(2.5rem, 7vw, 3.5rem) 0; }
    /* image always on top on mobile, regardless of odd/even */
    .st-svchub-row .st-svchub-row-media { order: -1 !important; }
    .st-svchub-row .st-svchub-row-text-col { order: 0 !important; }
    .st-svchub-row-media img { max-height: 280px; }
}
@media (max-width: 767px) {
    .st-svchub-row-btn { width: 100%; justify-content: center; }
    .st-svchub-cta-buttons { flex-direction: column; }
    .st-svchub-cta-primary, .st-svchub-cta-secondary { width: 100%; }
}
