/* Home.css - the public home page: top strip, left side (logo, heading, login box), right side (enquiry card), footer.
   Uses: nothing. Used by: Views/Home/Index.cshtml only.
   Body is a column (strip, middle, footer). Below 900px the two columns stack; below 767px the Existing Clients box and top strip are hidden. */

/* Colours/sizes defined once; use as var(--navy) etc. */
:root {
    --navy-bg: #0D1A28;
    --navy: #1E2B3C;
    --strip: #2C3A4A;
    --orange: #FF4D00;
    --orange-hover: #e64500;
    --dark-grey: #4A5568;
    --mid-grey: #718096;
    --border: #E2E8F0;
    --bg-light: #F3F4F6;
    --white: #FFFFFF;
    --font: system-ui,-apple-system,'Segoe UI',Helvetica,Arial,sans-serif;
    --r-sm: 4px;
    --r-md: 6px;
    --r-lg: 8px;
    --r-xl: 12px;
    --sh-card: 0 8px 32px rgba(30,43,60,.15);
}

/* Reset: border-box sizing, no default margin or padding. */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Page as tall as the window so the layout can fill it. */
html, body {
    height: 100%;
}

/* Column layout (strip, middle, footer); footer stays at the bottom. */
body {
    font-family: var(--font);
    color: var(--navy);
    background: var(--navy-bg);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Links take their surroundings' colour, no underline. */
a {
    color: inherit;
    text-decoration: none;
}

/* Images never wider than their box. */
img {
    display: block;
    max-width: 100%;
}

/* Thin bar at the top. */
.topstrip {
    background: var(--strip);
    color: rgba(255,255,255,.65);
    font-size: 12px;
    flex-shrink: 0;
}

/* Inner row: centred, max 1280px, wraps on narrow screens. */
.topstrip .in {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 34px;
    flex-wrap: wrap;
}

/* Links in the strip. */
.topstrip a {
    color: rgba(255,255,255,.75);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.topstrip a:hover {
    color: #fff;
}

/* Pushes the "A product by" item to the right. */
.topstrip .sep {
    margin-left: auto;
    color: rgba(255,255,255,.55);
}

.topstrip .sep strong {
    color: rgba(255,255,255,.85);
}

/* Middle: two columns (1.05 : 0.95), fills the free height. */
.split {
    flex: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    min-height: 0;
}

/* Left half: dark, white text, content centred vertically. */
.left {
    position: relative;
    overflow: hidden;
    background: var(--navy-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 60px;
}

/* Layer behind the left content (placeholder for a background picture). */
.left-bg {
    position: absolute;
    inset: 0;
    background: var(--navy-bg);
    z-index: 0;
}

/* Left content, above the background, max 560px. */
.left-in {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

/* Logo size. */
.hero-logo {
    width: 250px;
    max-width: 70vw;
    margin-bottom: 32px;
}

/* Line above the headline; <em> is orange bold italic. */
.hero-tagline {
    font-size: 16px;
    color: rgba(255,255,255,.82);
    margin-bottom: 22px;
}

.hero-tagline em {
    color: var(--orange);
    font-style: italic;
    font-weight: 700;
}

/* Big headline. */
.hero-h1 {
    font-size: 34px;
    line-height: 1.18;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-h1 .accent {
    color: var(--orange);
}

/* Paragraph under the headline. */
.hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,.7);
    max-width: 480px;
    margin-bottom: 30px;
}

/* "Existing Clients" card: faint white box, thin border. */
.existing-box {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--r-xl);
    padding: 22px;
    max-width: 480px;
}

.existing-box .eb-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(255,255,255,.6);
    margin-bottom: 13px;
    font-weight: 700;
}

/* Help text under the login button. */
.eb-note {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    margin-top: 14px;
    line-height: 1.5;
}

.eb-note a {
    color: #fff;
    text-decoration: underline;
}

/* Shared button shape (a different .btn than Site.css, which only the login page loads). */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: var(--r-md);
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .16s;
    white-space: nowrap;
    width: 100%;
}

/* Orange version. */
.btn-primary {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

.btn-primary:hover {
    background: var(--orange-hover);
    border-color: var(--orange-hover);
}

/* Right half: lighter navy, card centred; overflow hidden clips the circles below. */
.right {
    background: var(--navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 60px;
    position: relative;
    overflow: hidden;
}

/* Decorative circles in two corners (hidden on phones). */
.right::before {
    content: '';
    position: absolute;
    right: -110px;
    top: -110px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 38px solid rgba(255,77,0,.09);
}

.right::after {
    content: '';
    position: absolute;
    left: -70px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 30px solid rgba(255,255,255,.04);
}

/* White enquiry card with shadow, max 460px, centred, above the circles. */
.form-card {
    position: relative;
    z-index: 2;
    background: var(--white);
    color: var(--navy);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-card);
    padding: 32px 30px;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
}

.form-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-card .fc-sub {
    font-size: 13px;
    color: var(--mid-grey);
    margin-bottom: 22px;
}

/* One label + box pair. */
.field {
    margin-bottom: 15px;
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 5px;
}

/* Text boxes: 42px, light grey, thin border. */
.field input {
    width: 100%;
    height: 42px;
    border: .5px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg-light);
    padding: 0 12px;
    font-size: 14px;
    color: var(--navy);
    transition: border-color .15s,box-shadow .15s,background .15s;
}

.field input::placeholder {
    color: #a9b2bd;
}

/* Cursor in the box: orange border and soft glow. */
.field input:focus {
    outline: none;
    border-color: var(--orange);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,77,0,.1);
}

/* Privacy note under the button. */
.form-note {
    font-size: 11px;
    color: var(--mid-grey);
    margin-top: 12px;
    text-align: center;
    line-height: 1.5;
}

/* Bottom bar. */
.footer {
    flex-shrink: 0;
    background: var(--navy-bg);
    color: rgba(255,255,255,.55);
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer .in {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer a {
    color: rgba(255,255,255,.7);
}

.footer a:hover {
    color: #fff;
}

/* Pushed to the right edge. */
.footer .fsep {
    margin-left: auto;
    color: rgba(255,255,255,.4);
}

.footer .fdiv {
    color: rgba(255,255,255,.25);
}

/* Tablets / small laptops (up to 900px wide or 600px tall): columns stack, page scrolls. */
@media(max-width:900px),(max-height:600px) {
    html, body {
        height: auto;
        min-height: 100%;
    }
    .split {
        display: block;
        flex: none;
    }
    .left, .right {
        padding: 48px 32px;
        min-height: 0;
        justify-content: flex-start;
    }
    .hero-h1 {
        font-size: 30px;
    }
    .left-in, .existing-box, .form-card {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
    .left-in {
        text-align: left;
    }
}

/* Phones: hide Existing Clients box and top strip (client system is desktop only), bigger tap targets (16px font stops phone zoom), footer in a centred column. */
@media(max-width:767px),(max-height:500px) {
    .existing-box {
        display: none;
    }
    .topstrip {
        display: none;
    }
    .left, .right {
        padding: 40px 20px;
    }
    .left {
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .hero-logo {
        width: 200px;
        margin: 0 auto 28px;
    }
    .hero-tagline {
        font-size: 15px;
        margin-bottom: 16px;
    }
    .hero-h1 {
        font-size: 26px;
        margin-bottom: 12px;
    }
    .hero-sub {
        font-size: 14px;
        line-height: 1.55;
        margin-bottom: 0;
    }
    .right::before, .right::after {
        display: none;
    }
    .form-card {
        padding: 24px 20px;
        border-radius: var(--r-lg);
        box-shadow: 0 4px 18px rgba(0,0,0,.25);
    }
    .form-card h3 {
        font-size: 18px;
    }
    .form-card .fc-sub {
        margin-bottom: 20px;
    }
    .field {
        margin-bottom: 14px;
    }
    .field input {
        height: 48px;
        font-size: 16px;
    }
    .btn {
        min-height: 48px;
        font-size: 16px;
    }
    .form-note {
        margin-top: 14px;
    }
    .footer .in {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 20px;
    }
    .footer .fdiv {
        display: none;
    }
    .footer .fsep {
        margin-left: 0;
        margin-top: 4px;
    }
}

/* Very small phones: less padding, smaller headline. */
@media(max-width:520px),(max-height:400px) {
    .left, .right {
        padding: 32px 16px;
    }
    .hero-h1 {
        font-size: 24px;
    }
}
