/* ============================================================
   S.T Contracts Ltd - Locations Hub (/locations/index.php)
   Thin H1 strip + Watford lead + alternating coloured location
   boxes that click through to individual location pages.
   Class prefix: st-lochub-*
   ============================================================ */

: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-section-y: clamp(3.75rem, 6vw, 6rem);

    --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-h2:   clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
    --st-fs-lead: clamp(1.02rem, .96rem + .35vw, 1.18rem);
}

* { box-sizing: border-box; }

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

.st-lochub-shead { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.st-lochub-shead h2 {
    font-size: var(--st-fs-h2); font-weight: 800; color: var(--st-ink);
    letter-spacing: -.02em; margin: 0 0 1rem; padding-bottom: 1rem;
    position: relative; display: inline-block;
}
.st-lochub-shead h2::after {
    content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 64px; height: 3px; background: var(--st-orange); border-radius: 2px;
}
.st-lochub-shead p { font-size: var(--st-fs-lead); line-height: 1.7; color: var(--st-body); margin: 0; }

/* ============================================================
   HERO  (thin charcoal H1 strip + review pill)
   ============================================================ */
.st-lochub-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-lochub-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-lochub-hero .st-lochub-container { position: relative; z-index: 1; }
.st-lochub-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-lochub-hero-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--st-orange); border-radius: 2px; }
.st-lochub-hero-title { font-size: var(--st-fs-h1); font-weight: 800; color: #fff; margin: 0; letter-spacing: -.02em; line-height: 1.1; }
.st-lochub-hero-text { font-size: var(--st-fs-lead); color: rgba(255,255,255,.74); margin: .65rem 0 0; max-width: 64ch; }
.st-lochub-hero-pill { margin-top: 1.25rem; }

/* ============================================================
   WATFORD LEAD  (primary base - text + image)
   ============================================================ */
.st-lochub-base { background: var(--st-surface); padding: var(--st-section-y) 0; font-family: 'Mulish', sans-serif; }
.st-lochub-base-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.st-lochub-base-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-lochub-base-eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--st-orange); border-radius: 2px; }
.st-lochub-base-title {
    font-size: var(--st-fs-h2); font-weight: 800; color: var(--st-ink);
    letter-spacing: -.02em; margin: 0 0 1.25rem; line-height: 1.15;
}
.st-lochub-base-content p { font-size: var(--st-fs-lead); line-height: 1.7; color: var(--st-body); margin: 0 0 1.25rem; }
.st-lochub-base-content p:last-of-type { margin-bottom: 1.75rem; }
.st-lochub-base-areas { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.st-lochub-base-areas li {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .95rem; background: var(--st-surface-alt);
    border: 1px solid var(--st-line); border-radius: var(--st-pill);
    font-size: .86rem; font-weight: 700; color: var(--st-ink);
}
.st-lochub-base-areas i { color: var(--st-orange); font-size: .78rem; }
.st-lochub-base-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;
    text-decoration: none; box-shadow: 0 8px 22px rgba(242,136,35,.3);
    transition: background var(--st-fast), border-color var(--st-fast), transform var(--st-fast), box-shadow var(--st-fast);
}
.st-lochub-base-btn: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-lochub-base-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--st-radius-lg); box-shadow: var(--st-shadow); }

/* ============================================================
   LOCATION BOXES  (alternating coloured, clickable)
   ============================================================ */
.st-lochub-areas { background: var(--st-surface-alt); padding: var(--st-section-y) 0; font-family: 'Mulish', sans-serif; }
.st-lochub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.5vw, 1.85rem);
}
.st-lochub-box {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    border-radius: var(--st-radius-lg);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--st-shadow);
    min-height: 340px;
    isolation: isolate;
    transition: transform var(--st-ease), box-shadow var(--st-ease);
}
.st-lochub-box:hover { transform: translateY(-6px); box-shadow: var(--st-shadow-lg); }

/* image fills the card */
.st-lochub-box-media { position: absolute; inset: 0; z-index: 0; }
.st-lochub-box-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--st-ease); }
.st-lochub-box:hover .st-lochub-box-media img { transform: scale(1.06); }

/* uniform dark scrim for consistent text clarity (not a colour-bleeding gradient) */
.st-lochub-box-media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20,23,27,.85) 0%, rgba(20,23,27,.45) 55%, rgba(20,23,27,.25) 100%);
    transition: background var(--st-ease);
}
.st-lochub-box:hover .st-lochub-box-media::after { background: linear-gradient(to top, rgba(20,23,27,.88) 0%, rgba(20,23,27,.5) 60%, rgba(20,23,27,.3) 100%); }

/* alternating coloured accent strip across the top */
.st-lochub-box::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 5px; z-index: 2;
}
.st-lochub-box:nth-child(3n+1)::before { background: var(--st-orange); }
.st-lochub-box:nth-child(3n+2)::before { background: #fff; }
.st-lochub-box:nth-child(3n+3)::before { background: var(--st-orange); }

/* text block - clean, on the scrim */
.st-lochub-box-overlay {
    position: relative; z-index: 1;
    padding: 1.75rem 1.6rem;
    display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
}
.st-lochub-box-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.9); display: inline-flex; align-items: center; gap: .45rem; }
.st-lochub-box-eyebrow i { color: var(--st-orange); }
.st-lochub-box-title { font-size: 1.55rem; font-weight: 800; color: #fff; letter-spacing: -.01em; margin: 0; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.st-lochub-box-text { font-size: .92rem; line-height: 1.55; color: rgba(255,255,255,.9); margin: .15rem 0 1.1rem; }

.st-lochub-box-btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: 11px 24px;
    background: var(--st-orange); border: 2px solid var(--st-orange); border-radius: var(--st-pill);
    color: #fff; font-size: .92rem; font-weight: 800;
    box-shadow: 0 6px 18px rgba(242,136,35,.32);
    transition: background var(--st-fast), border-color var(--st-fast), box-shadow var(--st-fast);
}
.st-lochub-box-btn i { font-size: .78rem; transition: transform var(--st-fast); }
.st-lochub-box:hover .st-lochub-box-btn { background: var(--st-orange-hover); border-color: var(--st-orange-hover); box-shadow: 0 10px 24px rgba(242,136,35,.45); }
.st-lochub-box:hover .st-lochub-box-btn i { transform: translateX(3px); }

/* ============================================================
   CTA  (dark band)
   ============================================================ */
.st-lochub-cta { background: var(--st-charcoal); padding: clamp(3.5rem, 5vw, 5rem) 0; font-family: 'Mulish', sans-serif; }
.st-lochub-cta-content { text-align: center; max-width: 620px; margin: 0 auto; }
.st-lochub-cta-title { font-size: var(--st-fs-h2); font-weight: 800; color: #fff; margin: 0 0 1rem; letter-spacing: -.02em; }
.st-lochub-cta-text { font-size: var(--st-fs-lead); line-height: 1.6; color: rgba(255,255,255,.78); margin: 0 0 2rem; }
.st-lochub-cta-buttons { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.st-lochub-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-lochub-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-lochub-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-lochub-cta-secondary:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.st-lochub-cta-secondary i { color: var(--st-orange); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .st-lochub-base-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .st-lochub-base-media { order: -1; max-width: 520px; }
    .st-lochub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .st-lochub-base-btn { width: 100%; justify-content: center; }
    .st-lochub-cta-buttons { flex-direction: column; }
    .st-lochub-cta-primary, .st-lochub-cta-secondary { width: 100%; }
}
