@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ==========================================================================
   GH2 — "The Timesheet" redesign layer for the home + contact heroes.
   Loaded after gh oodhr.css via @section('styles') on those two pages only.
   Direction: the page reads like a beautifully kept timesheet. All times,
   dates, and amounts are set in mono; the hero carries a workday ruler;
   gold appears exactly once per page, on payday.
   ========================================================================== */

:root {
    --gh2-ink: #101f3c;          /* hero ground, one step deeper than footer */
    --gh2-ink-raise: #1a2c55;    /* chips/cards on ink */
    --gh2-navy: #2c559a;
    --gh2-sky: #5b8bd9;
    --gh2-sky-soft: #9db9e8;
    --gh2-paper: #f6f9fd;
    --gh2-line: #d9e2f2;
    --gh2-gold: #e8b34b;
    --gh2-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ---------- shared vocabulary ---------- */
.gh2-eyebrow {
    font-family: var(--gh2-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gh2-sky);
}
.gh2-mono {
    font-family: var(--gh2-mono);
    font-variant-numeric: tabular-nums;
}
.gh2-btn-gold:focus-visible,
.gh2-btn-ghost:focus-visible,
.gh2-chip:focus-visible {
    outline: 2px solid var(--gh2-sky);
    outline-offset: 3px;
}

/* ---------- hero (shared by home + contact) ---------- */
section.gh2-hero {
    background: var(--gh2-ink);
    color: #fff;
    padding: 200px 0 0;
    overflow: hidden;
}
.gh2-hero .gh2-display {
    font-family: var(--alt-font);
    font-weight: 600;
    font-size: clamp(2.9rem, 5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #f4f7fd;
    margin: 22px 0 26px;
}
.gh2-hero .gh2-display em {
    font-style: normal;
    color: var(--gh2-sky-soft);
}
.gh2-sub {
    font-size: 17px;
    line-height: 1.75;
    color: #aebbd8;
    max-width: 54ch;
    margin-bottom: 38px;
}
.gh2-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 90px;
}
.gh2-btn-gold,
.gh2-btn-ghost {
    font-family: var(--alt-font);
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    padding: 14px 30px;
    display: inline-block;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.gh2-btn-gold {
    background: var(--gh2-gold);
    color: var(--gh2-ink);
}
.gh2-btn-gold:hover {
    background: #f0c266;
    color: var(--gh2-ink);
    transform: translateY(-1px);
}
.gh2-btn-ghost {
    border: 1px solid rgba(157, 185, 232, 0.45);
    color: #dfe8f7;
}
.gh2-btn-ghost:hover {
    border-color: #dfe8f7;
    color: #fff;
    transform: translateY(-1px);
}

/* ---------- the workday ruler (signature) ---------- */
.gh2-ruler-viewport {
    overflow-x: auto;
    scrollbar-width: none;
}
.gh2-ruler-viewport::-webkit-scrollbar { display: none; }
.gh2-ruler {
    position: relative;
    min-width: 980px;
    height: 210px;
    /* hour grid: 12 spans between 06:00 and 18:00 */
    --gh2-hours: 12;
}
.gh2-ruler-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 120px;
    height: 44px;
    border-top: 1px solid rgba(157, 185, 232, 0.4);
    /* minor ticks every quarter hour, major handled by labels */
    background-image: repeating-linear-gradient(
        to right,
        rgba(157, 185, 232, 0.35) 0 1px,
        transparent 1px calc(100% / (var(--gh2-hours) * 4))
    );
    background-size: 100% 12px;
    background-repeat: no-repeat;
}
.gh2-ruler-hour {
    position: absolute;
    top: 138px;
    transform: translateX(-50%);
    font-family: var(--gh2-mono);
    font-size: 12px;
    color: rgba(157, 185, 232, 0.75);
    white-space: nowrap;
}
.gh2-ruler-hour::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -18px;
    width: 1px;
    height: 20px;
    background: rgba(157, 185, 232, 0.6);
}
/* highlighted span on the track (e.g. office hours on the contact page) */
.gh2-ruler-span {
    position: absolute;
    top: 120px;
    height: 44px;
    background: rgba(91, 139, 217, 0.13);
    border-left: 1px solid rgba(91, 139, 217, 0.6);
    border-right: 1px solid rgba(91, 139, 217, 0.6);
}

/* the "now" needle */
.gh2-needle {
    position: absolute;
    top: 96px;
    left: 62%;
    width: 1px;
    height: 70px;
    background: var(--gh2-sky);
}
.gh2-needle::after {
    content: '';
    position: absolute;
    top: -7px;
    left: -3.5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gh2-sky);
    box-shadow: 0 0 0 4px rgba(91, 139, 217, 0.25);
}
@media (prefers-reduced-motion: no-preference) {
    .gh2-needle {
        animation: gh2-drift 90s linear infinite alternate;
    }
    @keyframes gh2-drift {
        from { left: 58%; }
        to   { left: 68%; }
    }
    .gh2-chip {
        /* `translate`, not `transform`: the X-positioning transform on the
           chips must survive the entrance animation */
        opacity: 0;
        translate: 0 8px;
        animation: gh2-rise .6s ease forwards;
    }
    .gh2-chip:nth-child(1) { animation-delay: .15s; }
    .gh2-chip:nth-child(2) { animation-delay: .35s; }
    .gh2-chip:nth-child(3) { animation-delay: .55s; }
    .gh2-chip:nth-child(4) { animation-delay: .75s; }
    .gh2-chip:nth-child(5) { animation-delay: .95s; }
    @keyframes gh2-rise {
        to { opacity: 1; translate: 0 0; }
    }
}
.gh2-chips {
    position: absolute;
    inset: 0;
}
.gh2-ruler-hour--first { transform: none; }
.gh2-ruler-hour--first::before { left: 0; }
.gh2-ruler-hour--last { transform: translateX(-100%); }
.gh2-ruler-hour--last::before { left: auto; right: 0; }

/* event chips pinned to times */
.gh2-chip {
    position: absolute;
    transform: translateX(-50%);
    background: var(--gh2-ink-raise);
    border: 1px solid rgba(157, 185, 232, 0.35);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    color: #cfdcf3;
    white-space: nowrap;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 9px;
}
.gh2-chip .t {
    font-family: var(--gh2-mono);
    font-size: 12px;
    color: var(--gh2-sky-soft);
}
.gh2-chip::after {
    /* stem down to the track */
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 1px;
    background: rgba(157, 185, 232, 0.45);
}
.gh2-chip--end         { transform: translateX(-100%); }
.gh2-chip--end::after  { left: auto; right: 24px; }
.gh2-chip--above       { top: 28px; }
.gh2-chip--above::after { height: 58px; }
.gh2-chip--high        { top: 66px; }
.gh2-chip--high::after  { height: 22px; }
.gh2-chip--payday {
    border-color: rgba(232, 179, 75, 0.65);
    color: #f4dfae;
}
.gh2-chip--payday .t { color: var(--gh2-gold); }
.gh2-chip--payday::after { background: rgba(232, 179, 75, 0.55); }
.gh2-chip .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gh2-sky);
    flex: none;
}
.gh2-chip--payday .dot { background: var(--gh2-gold); }

/* ---------- features: phone collage + feature ledger list ---------- */
.gh2-ledger {
    background: #fff;
    padding: 110px 0;
}
.gh2-ledger-head {
    margin-bottom: 70px;
    max-width: 60ch;
}
.gh2-ledger-head h2 {
    font-family: var(--alt-font);
    font-weight: 600;
    font-size: clamp(2rem, 3.6vw, 3rem);
    letter-spacing: -0.02em;
    color: var(--gh2-ink);
    margin: 14px 0 0;
}
.gh2-collage {
    position: relative;
    aspect-ratio: 10 / 11.2;
}
.gh2-collage .gh2-phone {
    position: absolute;
    border-width: 7px;
    border-radius: 30px;
}
.gh2-collage .gh2-phone img { border-radius: 22px; }
.gh2-collage-p1 {
    left: 0;
    top: 10%;
    width: 36%;
    transform: rotate(-5deg);
    z-index: 1;
}
.gh2-collage-p3 {
    right: 0;
    top: 10%;
    width: 36%;
    transform: rotate(5deg);
    z-index: 2;
}
.gh2-collage-p2 {
    left: 50%;
    top: 0;
    width: 46%;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 40px 90px rgba(16, 31, 60, 0.3);
}
.gh2-featlist { padding-left: 64px; }
@media (max-width: 991px) {
    .gh2-featlist { padding-left: 0; }
}
.gh2-feat {
    display: grid;
    grid-template-columns: 175px 1fr;
    gap: 20px;
    align-items: baseline;
    padding: 16px 0;
    border-top: 1px solid var(--gh2-line);
}
.gh2-feat:last-child { border-bottom: 1px solid var(--gh2-line); }
.gh2-feat .k {
    font-family: var(--gh2-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--gh2-navy);
    white-space: nowrap;
}
.gh2-feat p {
    font-size: 15px;
    color: #5d6784;
    line-height: 1.65;
    margin: 0;
}

/* ---------- hero device composite ---------- */
.gh2-devices {
    position: relative;
    padding: 0 0 11% 7%;
}
.gh2-monitor-screen {
    background: #0b1730;
    border: 1px solid rgba(157, 185, 232, 0.3);
    border-radius: 16px;
    padding: 13px;
    box-shadow: 0 30px 70px rgba(4, 10, 24, 0.55);
}
.gh2-monitor-screen img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 7px;
}
.gh2-monitor-neck {
    width: 74px;
    height: 30px;
    margin: 0 auto;
    background: #182a52;
}
.gh2-monitor-base {
    width: 230px;
    height: 12px;
    margin: 0 auto;
    border-radius: 7px;
    background: #182a52;
}
.gh2-devices .gh2-phone {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 26%;
    border-width: 6px;
    border-radius: 26px;
    box-shadow: 0 26px 60px rgba(4, 10, 24, 0.6);
}
.gh2-devices .gh2-phone img { border-radius: 19px; }

/* ---------- product screenshot frames ---------- */
.gh2-phone {
    width: 290px;
    max-width: 100%;
    border: 9px solid var(--gh2-ink);
    border-radius: 36px;
    background: var(--gh2-ink);
    box-shadow: 0 26px 60px rgba(16, 31, 60, 0.18);
    overflow: hidden;
    justify-self: end;
}
.gh2-phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 26px;
}
.gh2-browser {
    background: #fff;
    border: 1px solid var(--gh2-line);
    border-radius: 14px;
    box-shadow: 0 34px 90px rgba(16, 31, 60, 0.16);
    overflow: hidden;
}
.gh2-browser-bar {
    display: flex;
    gap: 7px;
    padding: 13px 18px;
    background: #f0f3f9;
    border-bottom: 1px solid var(--gh2-line);
}
.gh2-browser-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ccd8ec;
}
.gh2-browser img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- admin showcase band ---------- */
.gh2-showcase {
    background: #eef3fb;
    padding: 110px 0 120px;
}
.gh2-showcase-title {
    font-family: var(--alt-font);
    font-weight: 600;
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    letter-spacing: -0.02em;
    color: var(--gh2-ink);
    margin: 14px 0 16px;
}
.gh2-showcase-sub {
    color: #5d6784;
    line-height: 1.75;
    max-width: 62ch;
    margin: 0 auto 24px;
}

/* ---------- contact page ---------- */
section.gh2-hero--short { padding-top: 180px; }
.gh2-hero--short .gh2-ruler { height: 170px; }
.gh2-contact-body {
    background: var(--gh2-paper);
    padding: 100px 0;
}
.gh2-form-card {
    background: #fff;
    border: 1px solid var(--gh2-line);
    border-radius: 18px;
    padding: 46px;
    box-shadow: 0 22px 60px rgba(16, 31, 60, 0.07);
}
.gh2-form-card label {
    font-family: var(--gh2-mono);
    font-size: 11.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8794b3;
    margin-bottom: 8px;
    display: block;
}
.gh2-form-card .form-control {
    border: 1px solid var(--gh2-line);
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 15px;
    color: var(--gh2-ink);
    margin-bottom: 24px;
    background: var(--gh2-paper);
}
.gh2-form-card .form-control:focus {
    border-color: var(--gh2-sky);
    box-shadow: 0 0 0 3px rgba(91, 139, 217, 0.18);
    background: #fff;
}
.gh2-form-card .gh2-btn-gold {
    border: 0;
    width: 100%;
    text-align: center;
}
.gh2-form-note {
    font-size: 13px;
    color: #8794b3;
    line-height: 1.6;
    margin: 18px 0 0;
}
.gh2-contact-ledger {
    padding: 6px 0 0 8px;
}
.gh2-contact-ledger .row-line {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 0;
    border-top: 1px solid var(--gh2-line);
}
.gh2-contact-ledger .row-line:last-child { border-bottom: 1px solid var(--gh2-line); }
.gh2-contact-ledger .k {
    font-family: var(--gh2-mono);
    font-size: 11.5px;
    letter-spacing: 2px;
    color: #8794b3;
}
.gh2-contact-ledger .v,
.gh2-contact-ledger .v a {
    font-family: var(--alt-font);
    font-weight: 600;
    font-size: 20px;
    color: var(--gh2-ink);
}
.gh2-contact-ledger .v a:hover { color: var(--gh2-navy); }
.gh2-contact-ledger .v.gh2-mono { font-family: var(--gh2-mono); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .gh2-hero { padding-top: 120px; }
    .gh2-cta-row { margin-bottom: 70px; }
    .gh2-devices { margin-top: 60px; }
    .gh2-collage { margin-bottom: 60px; }
    .gh2-feat { grid-template-columns: 1fr; gap: 6px; }
    .gh2-form-card { padding: 32px 24px; margin-bottom: 50px; }
}
